Legacy support, updated
Fix “Call to undefined function bcmod()” in PHP
The bcmod() function is provided by PHP’s BCMath extension. The error appears when BCMath is not compiled in or loaded by the PHP runtime serving the request.
Verify BCMath in the failing runtime
A true result for both checks confirms that BCMath and bcmod() are available to that PHP process. If the website still fails, compare the command-line and web PHP configurations.
PHP runtime check
php -r 'var_dump(PHP_VERSION, extension_loaded("bcmath"), function_exists("bcmod"));'
Enable the extension
- Confirm the PHP version assigned to the website.
- Enable the version-matched BCMath module through the hosting panel, operating-system package manager, or container build.
- Restart the PHP or web service that handles the site.
- Run the check again, then retry the feature that raised the error.
Keep the product generation clear
A path such as admin/map_iframe.php belongs to the old standalone MDS 2 application. Million Dollar Script 3.0 is a WordPress plugin with a different architecture. Follow the requirements for the exact release you are running rather than applying old file edits to a current plugin.