Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!
Comment | File | Size | Author |
---|---|---|---|
#1 | Selection_090.png | 76.25 KB | Elijah Lynn |
Comments
Comment #1
Elijah LynnSame 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!
Comment #2
msonnabaum CreditAttribution: msonnabaum commentedThis 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.