Welcome Guest, Not a member yet? Register   Sign In
Unsupported Operand date_helper.php Line 336
#1

[eluser]edwa5823[/eluser]
Hello All, I searched the net as well as this forum and have been unable to find any mention of this issue (most likely because I am seeing it under fairly odd circumstances). It may not be CI related, but I haven't been able to pin it to anything else.

I am doing some simple UTC conversions on an integer (coming from a MySQL table), and when I run my code through my browser it runs without a hitch. I am, however, attempting to run this specific controller method as a CRON.

It doesn't matter whether I WGET, cURL, or just open a socket and pull the file I get the same error every time:

Quote:<b>Fatal error</b>: Unsupported operand types in <b>/home/www/alpha.qualboard.com/system/helpers/date_helper.php</b> on line <b>336</b>

Line 336 is a very simple line, it is in the gmt_to_local method:

Code:
$time += timezones($timezone) * 3600;

This is about to drive me crazy, I have debugged everything I can think of, tried casting the arguments to (int), etc, etc but to no avail.

Any help would be greatly appreciated--thanks in advance!


Messages In This Thread
Unsupported Operand date_helper.php Line 336 - by El Forum - 04-30-2009, 02:43 PM
Unsupported Operand date_helper.php Line 336 - by El Forum - 05-04-2009, 06:36 AM
Unsupported Operand date_helper.php Line 336 - by El Forum - 05-04-2009, 06:59 AM
Unsupported Operand date_helper.php Line 336 - by El Forum - 05-04-2009, 07:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB