Use of undefined constant TEXT_NO_PRODUCTS

Open to all! Ask other shopowners for help.
Post Reply
14Steve14
Senior Contributor
Posts: 922
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Use of undefined constant TEXT_NO_PRODUCTS

Post by 14Steve14 »

Using Phoenix 1.0.7.11

I have the following error in my log files
[27-Aug-2021 08:59:45 UTC] 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 /home/railways/public_html/templates/default/includes/components/product_listing.php on line 148
This error has been appearing ever since my host moved my site to a new server so I think something is missing for some reason.

I have tried searching a copy of 1.0.7.11 but seem unable to find where the missing constant should be. can someone please tell me which files has the missing piece of code please. Or tell me a way on how to find it in a zipped folder copy of the website code.
Last edited by 14Steve14 on Fri Aug 27, 2021 9:28 am, edited 1 time in total.


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Use of undefined constant TEXT_NO_PRODUCTS

Post by heatherbell »

14Steve14 wrote: Fri Aug 27, 2021 9:20 amOr tell me a way on how to find it in a zipped folder copy of the website code.
User Guide https://phoenixcart.org/phoenixcartwiki ... hange_Text
shows how to search the github repo for text.
Doing that gives https://github.com/CE-PhoenixCart/Phoen ... O_PRODUCTS
14Steve14
Senior Contributor
Posts: 922
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Use of undefined constant TEXT_NO_PRODUCTS

Post by 14Steve14 »

Thanks for that @heatherbell

I have checked all those files and the code seems correct. I have copied all the files from a github copy of 1.0.7.11 so will have to see if the error remains.

Failing that I will have to upload a backup copy of the site from a date previous to when the error started.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply