I just found this error on check out:

Fatal error: Call to a member function getTimestamp() on a non-object in /home/travel/public_html/[MySite.com]/sites/all/modules/uc_hotel/hotel_booking/hotel_booking.module on line 1717

I'm running 6.x-1.x-dev (2010-May-15)

Has anyone seen a similar issue?

Comments

coloryan’s picture

Title: New Error? » Timestamp error

Updating the title to something more meaningful...

larowlan’s picture

Hi
->getTimestamp() is only available in php 5.3.
Swap it to ->format('U') instead for the time being, I'll do a check in to fix it on Mon
Lee

coloryan’s picture

Thanks. I changed it on lines 1717 and 1721 and was given this error:

Fatal error: Call to a member function format() on a non-object in /home/travel/public_html/[MySite.com/sites/all/modules/uc_hotel/hotel_booking/hotel_booking.module on line 1730

Monday is fine... I'm coasting through the weekend.

larowlan’s picture

Hi
What version of php are you using?
Lee

coloryan’s picture

MySQL database 5.1.47
PHP 5.2.13

Thanks,
Ryan

coloryan’s picture

Updated to the latest build (6.x-1.x-dev (2010-Jul-11)) and changed ->getTimestamp() to ->format('U'), working now.