- Issue created by @sgarsivaz
- ๐จ๐ฆCanada minoroffense Ottawa, Canada
Well you donโt need the files folder to store runs if youโre using this module. It would ship it into xhgui.
Also do you have the xhprof php plugin installed and enabled? php -m on the command line should show it if so. Or the output of phpinfo()
- ๐ฎ๐ทIran sgarsivaz
Yes I installed xhprof php plugin. this is output of php -i | grep xhprof :
/etc/php/8.1/cli/conf.d/20-xhprof.ini, xhprof xhprof support => enabled xhprof.collect_additional_info => 0 => 0 xhprof.output_dir => /var/log/php-fpm/xhprof.log => /var/log/php-fpm/xhprof.log xhprof.sampling_depth => 0x7fffffff => 0x7fffffff xhprof.sampling_interval => 100000 => 100000
this error occures when I use xhgui. whithout it, it runs correctly if I don't encounter timeout error with :
max_input_time = 300 memory_limit = 512
- ๐ฌ๐ชGeorgia almador
The same error on Drupal 10.3.1
TypeError: Drupal\xhprof\Controller\XHProfController::runAction(): Argument #1 ($run) must be of type Drupal\xhprof\XHProfLib\Run, bool given in Drupal\xhprof\Controller\XHProfController->runAction() (line 99 of modules/contrib/xhprof/src/Controller/XHProfController.php)
Xhprof is working fine on "File storage" option, but not on "XHGui Upload"
- ๐จ๐ฆCanada minoroffense Ottawa, Canada
Iโm working on a 10.3 site today and Iโll figure out whatโs up with xhgui.
- Status changed to Postponed: needs info
4 months ago 4:37pm 6 August 2024 - ๐จ๐ฆCanada minoroffense Ottawa, Canada
I tested it with our local sites and it appears to work. I'm using the latest xhprof dev module and the xhgui php profiler module. Running with PHP 8.2
I enabled the module as usual and then configured it.
I've attached the settings we use. Note the URL for the XHGui instance needs to be configured. We use a docker instance and it's docker network name is "xhgui" so we set the url to "http://xhgui"
You can see the nginx config we use for the xhgui instance: https://gitlab.com/dropfort/dropfort_build/-/tree/6.x/assets/development...
And this is the docker-compose file which brings it up. Maybe one of those may help with figuring out why it's not working.
https://gitlab.com/dropfort/dropfort_build/-/blob/6.x/assets/development...
And this is how we install xhprof into the container: https://gitlab.com/dropfort/dropfort_build/-/blob/6.x/assets/development...