New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scheduler_cron.sh via cron causes Warning: strpos(): Empty needle in Http.php on line 508 and 514 #233
Comments
update: changes in scheduler_cron.sh seems to fix it: from: also 5cc0cb4 isn't necessary any more! |
Can this be included? |
After trying every possible solution I found online (including this above) I still have this warning. I run Magento CE 1.9.1 with all latest patches :-( |
Just to add a little clarity here. The warning you are seeing is triggered when the Zend_Controller_Request_Http class tries to call If you have a proper xdebug setup, you can add a conditional breakpoint to the two location generating the warning. The conditional would be If you get desperate you could edit the lib/Zend/Controller/Request/Http.php file and add a log of the debug backtrace. Something like Keep in mind, you should never edit core files. The above suggestion is really just for a debugging situation on a testing server or local install. |
Thanks for reply. Both errors appear every 5 minutes when cron runs cron.sh when I switch to cron.php it is OK. This is my exact cron command: sh /home/vp/public_html/my_domain/cron.sh >/dev/null 2>&1 it is running every 5 minutes. |
@minc21 making the change in scheduler_cron.sh didn't fix the issue for me, but implementing the change in cron.sh did! 👍 |
Hi Liam if I may ask you, what changes did you made ? |
I changed line 39 in cron.sh at the root of the Magento installation from: PHP_BIN= to: PHP_BIN= |
Hi Liam, This is my unchanged cron.sh #!/bin/sh MODE="" PHP_BIN= #absolute path to magento installation #prepend the intallation path if not given an absolute path |
M/k1983, |
Hello,
when I run the scheduler_cron.sh direct in bash it runs smooths. But when I run it via crontab I get warnings in system.log:
2016-02-03T13:45:02+00:00 ERR (3): Warning: strpos(): Empty needle in /home/xxx/shop/lib/Zend/Controller/Request/Http.php on line 508
2016-02-03T13:45:02+00:00 ERR (3): Warning: strpos(): Empty needle in /home/xxx/shop/lib/Zend/Controller/Request/Http.php on line 514
seems to be something like this:
http://stackoverflow.com/questions/9128488/cron-job-server-issue
#212
The text was updated successfully, but these errors were encountered: