Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Logs created by products with missing description records

    Zen Cart 2.1.0 will create debug logs when attempting to display products with no associated products description records. Unfortunately, at this time there is no way to fix such records in the Zen Cart admin; they must be fixed in phpMyAdmin. This will be resolved in the next release of Zen Cart.

    See Github issue 7012 if you wish to read more about this:
    https://github.com/zencart/zencart/issues/7012
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Re: Logs created by products with missing description records

    If you have this issue, here's how to fix it:

    - in phpMyAdmin, run the query:
    select p.products_id from products p where not exists (select pd.products_description from products_description pd where p.products_id = pd.products_id);

    - At the bottom of the screen it gives you operations you can do on query results; choose "Export." Export in CSV format.

    - Take this file and use your text editor to create insert statements.

    INSERT INTO products_description (products_id, products_description) VALUES (14562, '');

    (where 14562 is one of the IDs in the export.). Do this for each id in the export file.

    Run the resultant file through Admin > Tools > Install SQL Patches.

    You can now edit each of these products in the Zen Admin (Admin > Catalog > Categories/Products, then search for each product id, then hit edit).
    This will allow you to set the name and description for the product.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: Logs created by products with missing description records

    Adding onto swguy's post:
    After querying for a list of where-not-exists, for your own records,
    it might be possible to insert all missing ones with something like:

    Code:
    INSERT INTO products_description (products_id, products_name, products_description, language_id)
    SELECT p.products_id, p.products_model, 'description missing, contact our administrator', l.languages_id
    FROM products AS p
    CROSS JOIN languages AS l
    LEFT JOIN products_description AS pd
      ON pd.products_id = p.products_id AND pd.language_id = l.languages_id
    WHERE pd.products_id IS NULL;

    (and then you could search for "administrator" to fix all of those products.)
    .
    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. v155 tons of MYdebug logs created over and over
    By jasonshanks in forum General Questions
    Replies: 11
    Last Post: 1 Jan 2020, 08:25 AM
  2. Products Description HTML options missing
    By bjg1001 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 Dec 2011, 01:36 PM
  3. Category description missing when products are added
    By inestine in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 Oct 2010, 08:43 PM
  4. Products listing on main page - description missing
    By jonnyboy22 in forum General Questions
    Replies: 2
    Last Post: 3 Mar 2010, 04:07 AM
  5. Product Images & Description MISSING in the NEW PRODUCTS & ALL PRODUCTS LISTING pages
    By TJB in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 30 Apr 2008, 03:36 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