Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

    Default Product listings causing Error log

    Not really sure whats causing the error logs. I can't seem to reproduce them.
    The site madrigalscripts.com is giving this error at times:
    Code:
    [17-Jan-2021 08:43:02 America/Chicago] Request URI: /index.php?main_page=featured_products, IP address: XXXXX
    #1  include(/includes/modules/madrigal/product_listing.php) called at  [/includes/templates/madrigal/templates/tpl_modules_product_listing.php:12]
    #2   require(/includes/templates/madrigal/templates/tpl_modules_product_listing.php)  called at  [/includes/templates/madrigal/templates/tpl_featured_products_default.php:26]
    #3   require(/includes/templates/madrigal/templates/tpl_featured_products_default.php)  called at [/includes/templates/madrigal/common/tpl_main_page.php:195]
    #4  require(/includes/templates/madrigal/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_NO_PRODUCTS - assumed  'TEXT_NO_PRODUCTS' (this will throw an Error in a future version of  PHP) in /includes/modules/madrigal/product_listing.php on line 265.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product listings causing Error log

    Quote Originally Posted by Carbonless View Post
    undefined constant TEXT_NO_PRODUCTS
    That means that a language file defining the meaning of TEXT_NO_PRODUCTS hasn't been found or loaded.
    .

    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
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

    Default Re: Product listings causing Error log

    Quote Originally Posted by DrByte View Post
    That means that a language file defining the meaning of TEXT_NO_PRODUCTS hasn't been found or loaded.

    Thanks Doc... probably makes total sense to you. My rusty brain is kinda like the robot enclosed brain from the Doom Patrol.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product listings causing Error log

    The first line of the log says what page it's happening on:
    "Request URI: /index.php?main_page=featured_products"

    Thus one expects that its language defines are in the featured_products.php language file, or in english.php or in one of the language files that load on every page such as extra_definitions/*.php and a few others like button_names etc.

    Given that you're using a beta version of product_listing.php (which is called by featured_products), there may be a bug.
    In the meantime you can copy this line from index.php language file to featured_products.php language file:

    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
    .

    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
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

    Default Re: Product listings causing Error log

    Quote Originally Posted by DrByte View Post

    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
    Added and resolved.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

 

 

Similar Threads

  1. Replies: 5
    Last Post: 15 Mar 2017, 03:52 AM
  2. Replies: 3
    Last Post: 15 Nov 2010, 10:16 AM
  3. Need Help on Category Listings, Product Listings
    By wgvania in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 15 Jan 2008, 12:12 AM
  4. Pay Pal Error!! (CURL is slow, causing error)
    By pettiger15 in forum General Questions
    Replies: 15
    Last Post: 8 May 2007, 04:47 AM
  5. Parse Time Log file not set - causing error message
    By Goshawk in forum General Questions
    Replies: 2
    Last Post: 22 Aug 2006, 12:08 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