Skip to content
FREE & OPEN SOURCE Million Dollar Script is a free WordPress plugin for sponsor walls, campaign grids, fundraiser boards, and premium add-on workflows.

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.

Applies to
PHP and legacy Million Dollar Script 2 installations
Reviewed
First published

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

  1. Confirm the PHP version assigned to the website.
  2. Enable the version-matched BCMath module through the hosting panel, operating-system package manager, or container build.
  3. Restart the PHP or web service that handles the site.
  4. 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.