Thread: Field List

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Nov 2012
    Posts
    100
    Plugin Contributions
    0

    red flag Field List

    Per the following error, it looks like there is a column missing from "field List" but I cannot find the file. I have verified that the column does exist, it just looks like it is not pointing correctly.

    [28-Jun-2015 21:11:55 EST5EDT] [client 64.7.70.206 ] PHP Fatal error: 1054:Unknown column 'm.manufacturers_name' in 'field list' :: SELECT DISTINCT p.products_image, m.manufacturers_name, p.products_quantity, p.products_id, p.products_type, p.master_categories_id,
    p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1,
    s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price,
    p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping,
    p.products_qty_box_status FROM cy6s_products p LEFT JOIN cy6s_specials s on p.products_id = s.products_id LEFT JOIN cy6s_products_description pd on p.products_id = pd.products_id JOIN cy6s_products_to_categories p2c on p.products_id = p2c.products_id WHERE p.products_status = 1
    and pd.language_id = '1'

    Where is this "Field List" found, developer tools hasn't helped.

  2. #2
    Join Date
    Sep 2008
    Location
    WA
    Posts
    555
    Plugin Contributions
    0

    Default Re: Field List

    Hi
    Can you please post a link to y our website and answer some of the questions in the posting tips.
    Thanks
    Lin

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

    Default Re: Field List

    Quote Originally Posted by WWWD View Post
    Per the following error, it looks like there is a column missing from "field List" but I cannot find the file.
    When did this problem start?

    What addons have you installed (or tried to install) that would have coincided with the start of the problem?

    What other info can you provide that may give us a clue?

    I can't tell you much at the moment other than "field List" isn't to be found in any of the stock zencart code (V154).
    Furthermore, a code search for where "p.products_image" is followed by "m.manufacturers_name" as part of a search query is nowhere to be found either.

    Ergo, my conclusion is that you have an add-on module that is causing the error.

    Cheers
    RodG

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Field List

    field list is not part of the code.

    this is the field list :
    Code:
    p.products_image, m.manufacturers_name, p.products_quantity, p.products_id, p.products_type, p.master_categories_id, 
    p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, 
    s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, 
    p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, 
    p.products_qty_box_status
    these are the field that are used for the sql query, and one of those fields is missing. in your case m.manufacturers_name.

    I saw another post of you in the dynamic attribute filter module, but also one where you said you removed the mod. Probably you didn't remove all of the edits you made.

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

    Default Re: Field List

    Quote Originally Posted by Design75 View Post
    field list is not part of the code.
    Doh! Of course it isn't. I've NO idea what *I* was thinking.

    Cheers
    RodG

  6. #6
    Join Date
    Nov 2012
    Posts
    100
    Plugin Contributions
    0

    Default Re: Field List

    I am running ZC 1.5.4

    I loaded the Variable Filter add in and have since stripped out all of the installed pages and run the uninstall sql. It appears that there is something caught in the craw of the query generator and I have no clue how to clear it.

    the URL is http://scholledresses.com selecting "categories" causes the error, everything else seems to be working.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Field List

    If you use the Developer's Tool Kit and search for:
    SELECT DISTINCT p.products_image, m.manufacturers_name, p.products_quantity,

    Does anything come up for that select?

    The problem with it is m.manufacturers_name cannot be pulled as that information is in the tables called but rather in the table manufacturers ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Nov 2012
    Posts
    100
    Plugin Contributions
    0

    Default Re: Field List

    That string does not show up anywhere in developers' tools' search.

    The interesting thing is that it is only when Category is called from the side bar or drop down. If it is called from All Items, it works just fine.

  9. #9
    Join Date
    Nov 2012
    Posts
    100
    Plugin Contributions
    0

    Default Re: Field List

    I made .bak copies of every modified file before editing. I deleted the edited files and restored from the .bak files. I have not deleted the "new" files because all references to them should have been deleted when I ran the uninstal sql file; no?

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

    Default Re: Field List

    Quote Originally Posted by WWWD View Post
    I have not deleted the "new" files because all references to them should have been deleted when I ran the uninstal sql file; no?
    No. not so. The uninstal.sql scripts only revert changes made to the database. It doesn't touch any 'new' files. The 'new' files need to be deleted manually. Leaving them in place could *cause* errors if they happen to be 1) automatically loaded by Zen-Cart, and 2) if they contain references to the tables/records that were removed when running the uninstall scripts.

    For future reference, other can keeping the database 'tidy' there is never a need to undo/uninstall any changes made to the database by an install script. These changes, on their own, will *never cause or create a problem. The problem(s) only occur if you uninstall the SQL changes but neglect to take care of the related files.

    Cheers
    RodG

    *never means except in extreme cases where code has been *very poorly* written and expects table records to have an explicit field count in a specific order (and no one has written code like that for years)
    Last edited by RodG; 30 Jun 2015 at 04:25 AM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h 1109 Unknown table 'p' in field list
    By Dexter71 in forum General Questions
    Replies: 2
    Last Post: 12 Sep 2013, 07:11 PM
  2. Unknown column 'zen_order_id' in 'field list'
    By rramirezb in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 4 Sep 2008, 07:56 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR