warning: array_reverse() expects parameter 1 to be array, null given in /home/wwwroot/aaaaa/public_html/sites/all/modules/xhprof/XHProfRunsFile.inc on line 120.
warning: Invalid argument supplied for foreach() in /home/wwwroot/aaaaa/public_html/sites/all/modules/xhprof/XHProfRunsFile.inc on line 98.
warning: Invalid argument supplied for foreach() in /home/wwwroot/aaaaa/public_html/sites/all/modules/xhprof/xhprof.module on line 257.
So after installing xhprof:
- check your /etc/php.d/xhprof.ini or /etc/php.ini;
- set the xhprof.output_dircorrectly;
- make sure the folder permissions allow your webserver user to write there.
看看 php.ini 中 output_dir 的目录,对于php来讲有没有访问权限
[xhprof]
extension=/www/wdlinux/apache_php-5.5.38/lib/php/extensions/no-debug-non-zts-20121212/xhprof.so
xhprof.output_dir=/home/wwwroot/aaaaa/public_html/xhprof
White screen, when enabling xhprof-module
Hello,
My setup:
windows 7,
xampp-win32-1.8.3-4-VC11,
php 5.5.11,
xhprof dll fromhttp://windows.php.net/downloads/pecl/releases/xhprof/0.10.6/particually: php_xhprof-0.10.6-5.5-ts-vc11-x86
fresh drupal 7.28 without any contributed modules except drupals xhprof-module
I get a white screen, when I am enabling profiling with drupals xhprof-module. I get no php error messages, but "Error messages to display" are enabled in backend and I hadset "display_errors" and "display_startup_errors" to on in php.ini. All message I got from browser is "This webpage is not available". When I am clicking in chrome on the button more I got the following message:
"The connection to localhost was interrupted.
Check your Internet connection
Check any cables and reboot any routers, modems, or other network devices you may be using.
..."
It seems that, apache crashes and reboot??? Because I can disable drupals xhprof-module in the backend of my site, when I have still opend the backend site. After disabling drupals xhprof-module, the site is running again.
If you ask for, I can post last error log of apache. Unfortunately I do not have much knowledge about network, server and so on...
Note: Xhprof is basically working fine. I have tested the example-code from here:http://www.php.net/manual/de/xhprof.examples.php.
Any ideas to solve the problem on windows? Because it worked fine on my ubuntu...
Many greetings
Sabrina