PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.

by Paul Lindgreen -
Number of replies: 2
Picture of Particularly helpful Moodlers

I receive the following php warning semi regularly in our php error log:

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.


We do not use the profiler and the dll is not in our installation. Investigating further in our IIS webserver logs revealed this error seems to be originating from the cron job, this is the message from the IIS log:

php[3152]
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.
 (c:\php\php.exe  -f e:\moodle\m23\admin\cli\cron.php )


Is there a Scheduled Task that I should disable?


====environment=========

moodle 3.1.5 windows 2008r2, IIS7.5

Average of ratings: -
In reply to Paul Lindgreen

Re: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.

by Bret Miller -
Picture of Particularly helpful Moodlers

It's a guess, your php.ini may enable the xhprof extension and since the dll doesn't exist, you get a warning. If you comment it out of php.ini, that should end the warning.

In reply to Bret Miller

Re: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_xhprof.dll' - The specified module could not be found.

by Paul Lindgreen -
Picture of Particularly helpful Moodlers

You nailed it !


Thanks a million.