Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2020
    Location
    Perth
    Posts
    2
    Plugin Contributions
    0

    Default Upgrading to 1.5.7 TEXT_PRODUCTS_MODEL or TEXT_PRODUCT_MODEL

    Upgrade from 1.5.6c to 1.5.7
    Once upgraded changed store to use php 7.4 from 7.2

    Had other issue:

    v157 - Define Pages Editor only opens includes/local/skip_version_check.ini

    But this one is slightly different to :

    Re: v157 - Add missing language defines

    whereas this define is :

    TEXT_PRODUCTS_MODEL

    Which is difined:

    includes/languages/english.php

    define('TEXT_PRODUCT_MODEL', 'Model: ');

    Collected from:

    myDEBUG-20200714-075136-995658-warning.log

    Request URI: /index.php?main_page=featured_products, IP address: 46.229.168.146
    #1 require(/var/www/clients/client1/web6/web/includes/templates/responsive_classic/templates/tpl_modules_products_featured_listing.php) called at [/var/www/clients/client1/web6/web/includes/templates/responsive_classic/templates/tpl_featured_products_default.php:87]
    #2 require(/var/www/clients/client1/web6/web/includes/templates/responsive_classic/templates/tpl_featured_products_default.php) called at [/var/www/clients/client1/web6/web/includes/templates/responsive_classic/common/tpl_main_page.php:171]
    #3 require(/var/www/clients/client1/web6/web/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/var/www/clients/client1/web6/web/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /var/www/clients/client1/web6/web/includes/templates/responsive_classic/templates/tpl_modules_products_featured_listing.php on line 43.

    As you will see what is defined is not 'TEXT_PRODUCTS_MODEL' but 'TEXT_PRODUCT_MODEL' - 'S'
    Once published all was fine until i looked at the individual pruduct in the store.
    It was looking for 'TEXT_PRODUCT_MODEL'
    So, you need them both

    define('TEXT_PRODUCTS_MODEL', 'Model: ');
    define('TEXT_PRODUCT_MODEL', 'Model: ');

    I've still published as this may help someone else in the future.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,319
    Plugin Contributions
    99

    Default Re: Upgrading to 1.5.7 TEXT_PRODUCTS_MODEL or TEXT_PRODUCT_MODEL

    The define TEXT_PRODUCTS_MODEL is not used in the Zen Cart 1.5.7 storefront. You have an old file in your store.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  3. #3
    Join Date
    Jul 2020
    Location
    Perth
    Posts
    2
    Plugin Contributions
    0

    Default Re: Upgrading to 1.5.7 TEXT_PRODUCTS_MODEL or TEXT_PRODUCT_MODEL

    How right you are!
    I'm concerned now because i would have put money on, that they were all new!
    all affected files are:
    \includes\responsive_classic\templates\tpl_modules*.php
    \includes\template_default\templates\tpl_modules*.php
    * = wildcard
    3 files in each directory
    (notepad++)

    I'll ftp the files again...

    Thank you

 

 

Similar Threads

  1. v150 "certain patches may need upgrading" when upgrading 1.3.9 to 1.5
    By Lowell37 in forum Upgrading to 1.5.x
    Replies: 14
    Last Post: 26 May 2012, 05:10 AM
  2. Replies: 3
    Last Post: 19 Jun 2008, 12:44 AM
  3. Text_product_model
    By zahid99 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 Jul 2007, 11:24 AM
  4. upgrading
    By rocketrod in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 22 Sep 2006, 10:47 AM
  5. upgrading to 1.3.5
    By khopek in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 16 Sep 2006, 01:09 AM

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