Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Posts
    371
    Plugin Contributions
    0

    Default Timezone Offset updated 1.3.0 error

    There is a closed thread on this in archieves, but unresolved prior to forum upgrade.

    I'm having the same problem, this is following installation of the updated timezone offset. Note: this is a fresh install, no upgrades.

    error is generated only on checkout:

    Fatal error: Call to a member function on a non-object in /../../../../includes/classes/order.php on line 854

    The original files (including order.php) were replaced as per timezone offset instructions. the configuration table appears ok.

    Only way to not get this error is to go back to using the original order.php, thus not able to employ the correct time zone.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

    Default Re: Timezone Offset updated 1.3.0 error

    There were many changes made to the orders.php for the change from 1.2.7 to 1.3.0 and the additions for the time zone offset will need to be merged into your 1.3.0 files.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2006
    Posts
    371
    Plugin Contributions
    0

    Default Re: Timezone Offset updated 1.3.0 error

    Not at all. As I said "this is a fresh install, no upgrades."

    The only change was the uploading of the Timezone offset files ..includes/classes/order.php, ..includes/functions/functions_general.php, ..admin/orders.php.

    This specifically relates to starting at line 852 in includes/classes/order.php:

    // get the order date corrected for time zone offset
    $date_query = "select date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$zf_insert_id . "'";
    $offsetdate = $db->Execute($date_query);
    $orderdate = $offsetdate->fields['date_purchased'];


    bein the only change to the original version 1.3 order.php.

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,328
    Plugin Contributions
    5

    Default Re: Timezone Offset updated 1.3.0 error


  5. #5
    Join Date
    Apr 2006
    Posts
    371
    Plugin Contributions
    0

    Re: Timezone Offset updated 1.3.0 error

    Thanks for that! Works just fine now.

  6. #6
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,328
    Plugin Contributions
    5

    Default Re: Timezone Offset updated 1.3.0 error

    Quote Originally Posted by jetx
    Thanks for that! Works just fine now.
    Happy to help ...and good to know it works

  7. #7
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    634
    Plugin Contributions
    0

    Re: Timezone Offset updated 1.3.0 error

    Quote Originally Posted by gilby
    Happy to help ...and good to know it works
    and it doesn't work :-(

    I have installed it then I typed +10:00 in the config/my store and now I can not see my store at all.

    It says following. How do I fix this. Can not even see the field in the table Configuration 'Time Zone Offset' in the mysql as I wanted to corrected there.

    Can you please help. Its rather urgent. Thanks

    -------------------------------------------------------------
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':00 HOUR), '1', 'configuration.php', 'gID=1&', '59.167.109.97')' at line 1
    in:
    [insert into admin_activity_log (access_date, admin_id, page_accessed, page_parameters, ip_address) values (date_add(now(), INTERVAL +10:00 HOUR), '1', 'configuration.php', 'gID=1&', '59.167.109.97')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    -----------------------------------------------------------------

  8. #8
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,328
    Plugin Contributions
    5

    Default Re: Timezone Offset updated 1.3.0 error

    Quote Originally Posted by oavs
    and it doesn't work :-(

    I have installed it then I typed +10:00 in the config/my store and now I can not see my store at all.

    It says following. How do I fix this. Can not even see the field in the table Configuration 'Time Zone Offset' in the mysql as I wanted to corrected there.

    Can you please help. Its rather urgent. Thanks

    -------------------------------------------------------------
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':00 HOUR), '1', 'configuration.php', 'gID=1&', '59.167.109.97')' at line 1
    in:
    [insert into admin_activity_log (access_date, admin_id, page_accessed, page_parameters, ip_address) values (date_add(now(), INTERVAL +10:00 HOUR), '1', 'configuration.php', 'gID=1&', '59.167.109.97')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    -----------------------------------------------------------------
    I think you are supposed to put +10 not +10:00

    look in zen_configuration (if you use a zen_ prefix) and try to fix it there.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •