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?
No Products Warning PHP 7
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: No Products Warning PHP 7
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
-
shopify
- Member
- Posts: 54
- Joined: Tue Mar 30, 2021 3:36 pm
- Phoenix Version:
- Has thanked: 23 times
- Been thanked: 3 times
Re: No Products Warning PHP 7
I have not add a new page and that value with message is in my language file.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