Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Location
    USA
    Posts
    291
    Plugin Contributions
    0

    Default PHP Fatal error: 1064:You have an error in your SQL syntax

    URL to temp site is http://alsemergencylighting.com/cart...&products_id=1

    Admin>Configuration>My Store>Display Cart after Adding Product is set to true.

    ZenLightbox was last mod installed and it was working. Went to eat supper and come back and it has died.
    Configuration Files seem to be in order.

    Debugging says:
    PHP Fatal error: 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 'limit 10' at line 1 :: limit 10 in /home/alsemerg/public_html/cart/includes/classes/db/mysql/query_factory.php on line 101

    However I have checked the file from the Tutorials section and everything is in order.

    I am NOT on a Goddaddy server. I am on a linux server. I am confused!

    Does it with default template as well. I have this same cart installed 3 separate times and ALL of them are giving "page not found" error.
    Last edited by uswebworx; 18 Apr 2012 at 05:50 AM. Reason: Grammar
    Signature not needed

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PHP Fatal error: 1064:You have an error in your SQL syntax

    You've got PHP files that are generating incorrect SQL statements.
    So, you'll need to remove the changes that were made which caused the problem.

    Good thing you have frequent regular consistent solid backups of everything.

    http://www.zen-cart.com/wiki/index.p...Obscure_Issues


    And the error you're reporting would have nothing to do with being a GoDaddy server or not. No need to badmouth them when they're not involved in the situation
    .

    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.

  3. #3
    Join Date
    Sep 2006
    Location
    USA
    Posts
    291
    Plugin Contributions
    0

    Default Re: PHP Fatal error: 1064:You have an error in your SQL syntax


    Dr Byte how could this be, since the exact same thing is happening even on a fresh install I tried last night? I've since become frustrated and deleted all the stores except for /cart/ to start over and it still happens on a fresh install. Smells like a server issue to me. I've submitted a trouble ticket to my awesome support team
    (not sarcasm) and will patiently wait for their answers.
    See I am a typical man I despise asking for help! If I can't find the answer in this awesome forum then there isn't a a correct answer!
    Thanks!
    Signature not needed

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: PHP Fatal error: 1064:You have an error in your SQL syntax

    Quote Originally Posted by uswebworx View Post

    Dr Byte how could this be, since the exact same thing is happening even on a fresh install I tried last night?
    If you've installed an add-on with bad code and re-install it with your 'fresh installs' you'll simply be re-installing the same erroneous files again, as such, the problem will persist.

    If your 'fresh installs' were truely fresh, with no other addons the issue will almost certainly go away.

    Quote Originally Posted by uswebworx View Post
    Smells like a server issue to me.
    As usual, I find myself agreeing with DrB, this doesn't sound anything like a server issue.

    Quote Originally Posted by uswebworx View Post
    I've submitted a trouble ticket to my awesome support team
    (not sarcasm) and will patiently wait for their answers.
    Whilst waiting I'd suggest that you continue to look for the *real* cause, because unless your support team know more about zencart than DrByte they probably aren't going to be of much help.

    Cheers
    Rod

  5. #5
    Join Date
    Sep 2006
    Location
    USA
    Posts
    291
    Plugin Contributions
    0

    Default Re: PHP Fatal error: 1064:You have an error in your SQL syntax

    Where would I begin looking?
    Signature not needed

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PHP Fatal error: 1064:You have an error in your SQL syntax

    looking for what?
    .

    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. v151 PHP Fatal error: 1064:You have an error in your SQL syntax
    By chaptech in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2015, 07:16 PM
  2. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  3. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  4. MySQL Error 1064 You have an error in your SQL syntax;
    By dmm2020 in forum General Questions
    Replies: 2
    Last Post: 22 Feb 2009, 05:02 AM
  5. error message 1064 you have an error in your sql syntax
    By ngsl in forum General Questions
    Replies: 0
    Last Post: 22 Aug 2008, 06:44 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