Use of undefined constant TEXT_ALL_MANUFACTURERS
Hi All, :)
Just hoping someone could help me cure the following log error please.
Thanking you in advance.
--> PHP Warning: Use of undefined constant TEXT_ALL_MANUFACTURERS - assumed 'TEXT_ALL_MANUFACTURERS' (this will throw an Error in a future version of PHP) in /includes/index_filters/default_filter.php on line 155.
Re: Use of undefined constant TEXT_ALL_MANUFACTURERS
What version of Zen Cart and what template is in use?
Re: Use of undefined constant TEXT_ALL_MANUFACTURERS
Hi Lat9,
Thank you for your reply, my apologies for the delay getting back to you.
I am using v1.5.7b
It's a clone of the Responsive_Classic template.
Kind Regards,
Les
Re: Use of undefined constant TEXT_ALL_MANUFACTURERS
Would you post the full log of the issue? The topmost section of each log will identify what page was being processed when the PHP issue was logged; knowing that will help me help you.
Re: Use of undefined constant TEXT_ALL_MANUFACTURERS
Hi Lat9,
Sorry to take so long to reply but we have been on the road touring.
Here is the full error log entry. Paths edited where necessary:
[15-Mar-2024 15:53:42 Australia/Melbourne] Request URI: /ajax_process.php, IP address: xxxxxxx
#1 require(/home/****/public_html/includes/index_filters/default_filter.php) called at [/home/*****/public_html/ajax_process.php:489]
--> PHP Warning: Use of undefined constant TEXT_ALL_MANUFACTURERS - assumed 'TEXT_ALL_MANUFACTURERS' (this will throw an Error in a future version of PHP) in /home/***/public_html/includes/index_filters/default_filter.php on line 155.
Re: Use of undefined constant TEXT_ALL_MANUFACTURERS
Quote:
Originally Posted by
webmanstudios
Hi Lat9,
Sorry to take so long to reply but we have been on the road touring.
Here is the full error log entry. Paths edited where necessary:
[15-Mar-2024 15:53:42 Australia/Melbourne] Request URI: /ajax_process.php, IP address: xxxxxxx
#1 require(/home/****/public_html/includes/index_filters/default_filter.php) called at [/home/*****/public_html/ajax_process.php:489]
--> PHP Warning: Use of undefined constant TEXT_ALL_MANUFACTURERS - assumed 'TEXT_ALL_MANUFACTURERS' (this will throw an Error in a future version of PHP) in /home/***/public_html/includes/index_filters/default_filter.php on line 155.
That /ajax_process.php isn't part of the Zen Cart core; you'll need to check what plugin it came from.
Re: Use of undefined constant TEXT_ALL_MANUFACTURERS
Quote:
Originally Posted by
lat9
That /ajax_process.php isn't part of the Zen Cart core; you'll need to check what plugin it came from.
It's mine... :blush:
Probably easiest workaround is to add the following line in includes/languages/english/extra_definitions/zxpos.php
Code:
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
Re: Use of undefined constant TEXT_ALL_MANUFACTURERS
Thank you both for all your help. :)
Have now added the define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); and there are no more errors.