I have Mobiles Tools running on a production site and it works fine but I am getting an error when cron runs.
my cron:
3,13,23,33,43,53 * * * * /usr/local/php/bin/php /home/site/direct/cron.php > /home/site/direct/cron-directPSG.txt
I get multiple warnings:
P[08-May-2012 23:23:01] PHP Warning: parse_url(http://) [function.parse-url]: Unable to parse URL in /home/site/direct/sites/all/modules/mobile_tools/mobile_tools.module on line 598
[08-May-2012 23:23:01] PHP Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/site/direct/sites/all/modules/mobile_tools/mobile_tools.module on line 599
Has anyone run into this?
Thanks very much
Comments
Comment #1
younggeezer commentedI have been seeing this too.
Somewhere, I found a note that this can be worked around by setting $base_url in settings.php, which I did, to 'www.example.org'. This stopped the errors.
But after setting $base_url, mobile theme switching is flaky and inconsistent, as noticed when I look at the mobile site using the '/?device=mobile' switch -- mobile tools seems to choose the theme for a page semi-randomly. I'm about to remove the $base_url setting to go back to the consistent behavior with errors.
Would be nice if this were fixed without the need to set base_url, which evidently confuses mobile tools.
Comment #2
omelhor commentedi solve the problem by calling my cron as this :
3,13,23,33,43,53 * * * * wget http://www.dddddddddddd.com/cron.php > /home/livefoot/LOG/cron-directPSG.txt
thanks and regards