Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2007
    Location
    Herne Bay, Kent, England
    Posts
    182
    Plugin Contributions
    0

    Default Problem with Store Manager.

    When I try to run the "Optimize Database to remove wasted space from deleted records" option in Store Manager, I recieve the following 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 '-_zcart' at line 1
    in:
    [SHOW TABLE STATUS FROM pjleisurewear_co_uk_-_zcart]
    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.

    Any advice would be gratfully received.

    Regards

    Philip

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Problem with Store Manager.

    What version of MySQL are you using?
    .

    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 2007
    Location
    Herne Bay, Kent, England
    Posts
    182
    Plugin Contributions
    0

    Default Re: Problem with Store Manager.

    Quote Originally Posted by DrByte View Post
    What version of MySQL are you using?
    Good morning DrByte, thanks for replying. I'm using 5.0.45

    Philip

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

    Default Re: Problem with Store Manager.

    The reason why you are getting this error is because you have a - in your database.

    To sort this problem you need to.

    Edit store_manager.php

    FIND:
    $sql = "SHOW TABLE STATUS FROM " . DB_DATABASE ;

    REPLACE:
    $sql = "SHOW TABLE STATUS FROM `" . DB_DATABASE . "`";

  5. #5
    Join Date
    Sep 2007
    Location
    Herne Bay, Kent, England
    Posts
    182
    Plugin Contributions
    0

    Default Re: Problem with Store Manager.

    Quote Originally Posted by Myth View Post
    The reason why you are getting this error is because you have a - in your database.

    To sort this problem you need to.

    Edit store_manager.php

    FIND:
    $sql = "SHOW TABLE STATUS FROM " . DB_DATABASE ;

    REPLACE:
    $sql = "SHOW TABLE STATUS FROM `" . DB_DATABASE . "`";
    Hi Myth/DrByte

    Finally got round to trying this - I'm afraid it hasn't helped.

    I appreciate it's not critical, but if you have any further thoughts, I'd love to hear them.

    Philip

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Problem with Store Manager.

    Did you use back-quotes?
    .

    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.

  7. #7
    Join Date
    Sep 2007
    Location
    Herne Bay, Kent, England
    Posts
    182
    Plugin Contributions
    0

    Default Re: Problem with Store Manager.

    Quote Originally Posted by DrByte View Post
    Did you use back-quotes?
    Hmm, those blessed backquotes - they get me every time!

    Problem solved.

    Many thanks

    Philip

 

 

Similar Threads

  1. Problem with Attributes Controller, Option Name Manager, Option Value Manager
    By Wulf359 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 27 Jun 2013, 08:54 PM
  2. 2 Problem with my store
    By shabizon in forum General Questions
    Replies: 9
    Last Post: 6 Nov 2010, 02:39 PM
  3. intall Links Manager 3.5.1 with problem
    By thehigh in forum Addon Sideboxes
    Replies: 1
    Last Post: 24 Sep 2009, 03:43 AM
  4. problem with Email Archive Manager on 1.3.6
    By rstevenson in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Aug 2008, 02:57 PM
  5. Problem with installing zencart order manager module
    By kalyani in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 5 Apr 2007, 02:39 PM

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