Page 1 of 1

Use of undefined constant TEXT_NO_PRODUCTS

Posted: Fri Aug 27, 2021 9:20 am
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.

Re: Use of undefined constant TEXT_NO_PRODUCTS

Posted: Fri Aug 27, 2021 9:24 am
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

Re: Use of undefined constant TEXT_NO_PRODUCTS

Posted: Fri Aug 27, 2021 10:01 am
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.