Hey there,

Thanks for a great module. Unfortunately, for a site like ours that's hosted on Acquia, where XHProf the extension is enabled by default on our dev servers (thought a server-side include that we can't control), a namespace collision occurs resulting in "cannot redeclare function" fatal errors. For instance xhprof_array_set and xhprof_array_unset are all function mames that the core XHProf library calls. This renders the module unusable since it becomes impossible to configure the module or view its reports.

Any suggestions what to do in this case?

Thanks in advance!

CommentFileSizeAuthor
#1 Selection_090.png76.25 KBElijah Lynn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Elijah Lynn’s picture

FileSize
76.25 KB

Same issue just installing XHProf locally on my stack and then installing this module. I currently have it configure for Devel but wanted to see if this module offered a bit more!

Thanks!

msonnabaum’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

This is likely the result of having devel enabled with devel's xhprof option enabled as well. Acquia hosting doesn't include that code by default, it just sets the "devel_xhprof_directory" variable for you.

This isn't a bug because you can't run both this module and devel's xhprof support at the same time.