Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2005
    Location
    TN
    Posts
    94
    Plugin Contributions
    0

    Default Getting Error message when clicking All Products

    Working on a project for a client and now for some reason I get the generic

    WARNING: An Error occurred, please refresh the page and try again.
    When I click on the "All Products" link.

    My error log shows the following:

    PHP Fatal error: 1109:Unknown table 'p' in field list :: select count(p.products_id) as total in /home/alljust/public_html/includes/classes/db/mysql/query_factory.php on line 120

    I looked at the file - can't make heads or tales of it and have never touched it.
    This just started happening for no reason. (of course there must be a reason, I just have no clue what it could be).

    I have not added any new plugins to the site today, and it was working fine yesterday.

    The site is of an adult nature so I will not post the link here.

    Anyone have any ideas?

    If you need more information and/or I may have left out some important info that I am not aware of... please ask nicely as I don't have a thick skin and will cry if you are mean. :)

    Thanks
    Using version v1.5.7b

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Getting Error message when clicking All Products

    does it happen if you switch to the default template?
    Phil Rogers
    A problem shared is a problem solved.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,893
    Plugin Contributions
    96

    Default Re: Getting Error message when clicking All Products

    Try also using your admin's Tools->Developers Tool Kit, Look-up in all files and set Key or Name to select count(p.products_id) as total and All Files Lookups to "All Files - Catalog". That will identify the file that contains the invalid SQL statement ...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Getting Error message when clicking All Products

    "select count(p.products_id) as total" is a SERIOUSLY incomplete SQL statement. It would need to at least include a table name to have even partial validity.

    The query_factory.php file is ONLY THE MESSENGER. It didn't build the query. It simply RUNS the query.

    As others have said, you need to search the rest of your site's files (most likely your plugin files) to find the offending culprit, and fix whatever was broken by the changes you've made since it last worked properly.
    .

    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.

  5. #5
    Join Date
    Apr 2005
    Location
    TN
    Posts
    94
    Plugin Contributions
    0

    Default Re: Getting Error message when clicking All Products

    Thanks all...it must have been some plugin because it works with the basic template. I will figure it out. But odd that it just started after 48 hours...
    Using version v1.5.7b

  6. #6
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Getting Error message when clicking All Products

    Seems I'd that there would be any mod with such a drastic error in the code. Where have your sources your mods from? Why not do as per suggested above to find out where this code is located?
    Phil Rogers
    A problem shared is a problem solved.

 

 

Similar Threads

  1. Getting a blank page when clicking on products - HELP!
    By noruga in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 22 Sep 2009, 08:50 PM
  2. error message when clicking 'admin/product types'
    By feolindo in forum Customization from the Admin
    Replies: 2
    Last Post: 24 Aug 2008, 07:50 AM
  3. error message when clicking "new products"
    By tarynhipp in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Dec 2007, 06:33 AM
  4. Cart hangs when clicking on go to check out...get this error message
    By Ken Joy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 14 Mar 2007, 07:16 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