Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Plugin Contributions
    0

    Default Blank Field in Time Zone - getting 1064 error

    I have accidentally left the the time zone in "My Store" section blank. I now get a 1064 error.
    How do I fix this?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Blank Field in Time Zone - getting 1064 error

    Do you mean the "zone" field (which is a geographic rather than time-related field)? If so, have you tried adding a zone?

    When do you get a 1064 error? What is the full error message?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank Field in Time Zone - getting 1064 error

    I'm not sure of the correct name of the function but its for the time difference , its located in my store in my case was set at +10 hrs. I was trying to adjust this to 0 but made it a blank field instead.

    I can log into my admin but as soon as I click on any functions I get the following message

    "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 '), '2', 'alt_nav.php', '', '124.181.103.217')' at line 1
    in:
    [insert into zen_admin_activity_log (access_date, admin_id, page_accessed, page_parameters, ip_address) values (date_add(now(), INTERVAL HOUR), '2', 'alt_nav.php', '', '124.181.103.217')]
    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. "

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Blank Field in Time Zone - getting 1064 error

    There's no time zone field on that page in core Zen Cart.

    Sounds like you have installed a mod that is dodgy, not installed properly, or incompatible with your version of Zen Cart.

    Do you know what mod that might be? And what version of Zen Cart are you using?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jun 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank Field in Time Zone - getting 1064 error

    I believe it was product 136 Time Zone Offset. It was added because the server was in the UK and our store is Aus. It worked without any problems but our store is now hosted in Aus and instead of entering 0 in time adjustment I left the field blank and have had the 1064 error since.

  6. #6
    Join Date
    Jun 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank Field in Time Zone - getting 1064 error

    version 1.3.6

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Blank Field in Time Zone - getting 1064 error

    You'll have to remove the /admin/includes/functions/database.php file, and put back the original (you did make a backup before installing, right?) in order to login and "fix" the blank value to something more acceptable. Then you can try putting back the modified one.

    Keep in mind that anytime you install an addon that's designed for a certain version of Zen Cart, you should be VERY careful if that addon alters or replaces any existing files in a *different* version of Zen Cart. Otherwise you can break functionality or lose important updates.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. 1064 Error after installing Time Zone Fix addon
    By HFProjekte in forum General Questions
    Replies: 3
    Last Post: 6 Aug 2011, 11:01 AM
  2. 1064 You have an error in your SQL syntax - Time Zone Offset
    By clipegg in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 28 Oct 2010, 04:37 AM
  3. Time Zone Offset Error
    By 10gallons in forum Basic Configuration
    Replies: 5
    Last Post: 5 Sep 2009, 02:51 AM
  4. I'm getting a SQL syntax error: 1064 in the admin panel
    By IllusionGuy in forum General Questions
    Replies: 3
    Last Post: 21 Oct 2008, 04:00 AM

Posting Permissions

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