clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

Profile is not present for current request.

Open HeadStudios opened this issue 2 years ago • 4 comments

I am receiving the error "Profile is not present for current request." in the Profiler tab in Clockwork despite Profiler showing as enabled in phpinfo() and the following code in my php.ini file

[PHP] zend_extension="/usr/lib/php/20210902/xdebug.so" xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.mode=profile xdebug.start_with_request=yes xdebug.log=/etc/php/8.1/fpm/xdebug.log

Any input for potential reasons would be much appreciated.

Thank you!

HeadStudios avatar Jan 04 '23 00:01 HeadStudios

same problem, none of the fixes mentioned previously here worked

i am on laravel 10 with the latest 5.1 version of clockwork

royretina avatar Mar 28 '23 03:03 royretina

any updates? Having the same issue right now.

mattvb91 avatar Nov 29 '23 16:11 mattvb91

I got it working by removing the line xdebug.start_with_request=trigger ... note the documentation said trigger not yes

Probably trigger works, but the documentation didn't seem to mention how to actually trigger it per request.

cmrafifar avatar Dec 07 '23 00:12 cmrafifar

Hey, with the trigger option, you should be able to control whether Xdebug profiler is enabled by clicking on the enable button or checkbox in the Clockwork app.

Screenshot 2023-12-10 at 20 03 01

You can of course enable Xdebug profiler for all requests, but running the profiler adds a substantial performance overhead to your requests.

itsgoingd avatar Dec 10 '23 19:12 itsgoingd