Forums

[resolved] fixing the: Fatal error: Call to undefined function bcmod() in widget area (1 post)

  1. lancerkind
    Member
    Posted 3 years ago #

    I was seeing the above Fatal error when I visit the widget editor due to the MailPress widget for "comments subscribers per post". Since it was adding into the Dashboard, I corrected the problem in Dashboard.php by changing the calls to bcmod from:
    $c = sprintf("%02X", bcmod($p, '255')) . sprintf("%02X", bcmod($y, '255')) . sprintf("%02X", bcmod($x, '255'));
    to:
    $c = sprintf("%02X", fmod($p, '255')*255) . sprintf("%02X", fmod($y, '255')*255) . sprintf("%02X", fmod($x, '255')*255);

    There is likely a different way to address this by installing a bcmod library, but I didn't know how to do that. So I did math!

    Here are my server stats:
    OSX 2.5.5
    $ php -v
    PHP 5.2.6 (cli) (built: Jul 17 2008 23:04:49)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

    [sig moderated]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.