Following videos on youtube for quickstart. Get to point to set xhprof variables with command:
drush vset --always-set devel_xhprof_enabled 1
I get the error:
Fatal error: Class 'XHProfRuns_Default' not found in /home/quickstart/websites/test.dev/sites/all/modules/devel/devel.module on line 1008
Call Stack:
0.0009 394228 1. {main}() /home/quickstart/drush/drush.php:0
0.3175 22717664 2. _drupal_shutdown_function() /home/quickstart/websites/test.dev/includes/bootstrap.inc:0
0.3176 22717696 3. call_user_func_array() /home/quickstart/websites/test.dev/includes/bootstrap.inc:2990
0.3176 22717888 4. devel_shutdown() /home/quickstart/websites/test.dev/includes/bootstrap.inc:0
0.3176 22718620 5. devel_shutdown_xhprof() /home/quickstart/websites/test.dev/sites/all/modules/devel/devel.module:921
Any ideas?
Comments
Comment #1
JSCSJSCS CreditAttribution: JSCSJSCS commentedWhen I tried to set the variables with the drupal interface, I go this:
Warning: include_once(/home/quickstart/websites/logs/xhprof/xhprof_lib/utils/xhprof_lib.php): failed to open stream: No such file or directory in devel_xhprof_enable() (line 546 of /home/quickstart/websites/test.dev/sites/all/modules/devel/devel.module).
Warning: include_once(): Failed opening '/home/quickstart/websites/logs/xhprof/xhprof_lib/utils/xhprof_lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in devel_xhprof_enable() (line 546 of /home/quickstart/websites/test.dev/sites/all/modules/devel/devel.module).
Warning: include_once(/home/quickstart/websites/logs/xhprof/xhprof_lib/utils/xhprof_runs.php): failed to open stream: No such file or directory in devel_xhprof_enable() (line 547 of /home/quickstart/websites/test.dev/sites/all/modules/devel/devel.module).
Warning: include_once(): Failed opening '/home/quickstart/websites/logs/xhprof/xhprof_lib/utils/xhprof_runs.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in devel_xhprof_enable() (line 547 of /home/quickstart/websites/test.dev/sites/all/modules/devel/devel.module).
Comment #2
bcmiller0 CreditAttribution: bcmiller0 commentedsounds like your XHPROF Directory: , setting in devel is incorrect.
Comment #3
bcmiller0 CreditAttribution: bcmiller0 commentedin other works the devel_xhprof_directory must point to wherever your xhprof source code is so it can access the libs, from teh xhprof/xhprof_lib directory .
there are 3 devel_xhprof settings, you can see them from the gui as well.
devel_xhprof_directory: "/mnt/xhprof"
devel_xhprof_enabled: 1
devel_xhprof_url: "http://10.10.210.201/xhprof"
Comment #4
chrowe CreditAttribution: chrowe commentedI am running QS v1.0
I got this same error after running the first drush vset command recommended by the screencast http://www.youtube.com/watch?v=Xjgwhn_SnZc
I just ran the other 2 commands and it worked the first time. When I dried to reproduce this issues I had some other issues and could not get XHPreof to work.
It recommends running 3 commands:
Maybe changing the order of the drush vset commands would help but now I can't reproduce the issue.
I also tried entering
Comment #5
MixologicIt might be nice if the xhprof form for xhprof directory and XHProf URL were required if the checkbox is enabled. I was switching between environments and flipped on xhprof and didnt see that I forgot to fill in those fields, and finally ended up here. Perhaps a warning or something?
Comment #6
mike stewart CreditAttribution: mike stewart commentedrelated?: #1574590: v2 xprof not loading, causes drush to fail
#1202136: Xhprof: "Make" Package Missing?
Comment #7
christowm CreditAttribution: christowm commentedI ran into the same problem. Here is how I was able to solve it.
If you unpack the tar archive in some other directory then make sure to use your specific path. Once I took those steps I was able to get everything else to work.
Comment #8
MichaelCole CreditAttribution: MichaelCole commentedThanks for the fix christowm!
Comment #9
elvis2 CreditAttribution: elvis2 commentedTo solve this problem I had to make sure that my file permissions and ownership were proper for profiler and xhprof directories.
Comment #10
sidharthapThanks @elvis, it works for me.
Comment #11
DarrellDuane CreditAttribution: DarrellDuane commentedFor a quick way to resolve this issue if your site is entirely down because of this error (as mine was since I'm using HHVM instead of PHP) from the shell: