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.
Bookmarks