Page 1 of 1

No Products Warning PHP 7

Posted: Fri Jul 09, 2021 11:14 am
by shopify
So I have a bog error log with this:

[09-Jul-2021 11:55:54 Europe/London] 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 /public_html/catalog/templates/default/includes/components/product_listing.php on line 148

What can I do to fix this?

Re: No Products Warning PHP 7

Posted: Fri Jul 09, 2021 11:52 am
by ecartz
Did you add a new page that uses the product listing? The message says that you have to add a language constant to that page. Example: https://github.com/CE-PhoenixCart/Phoen ... ch.php#L57

Re: No Products Warning PHP 7

Posted: Fri Jul 09, 2021 12:20 pm
by shopify
ecartz wrote: Fri Jul 09, 2021 11:52 am Did you add a new page that uses the product listing? The message says that you have to add a language constant to that page. Example: https://github.com/CE-PhoenixCart/Phoen ... ch.php#L57
I have not add a new page and that value with message is in my language file.