Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Use of undefined constant TEXT_ALL_MANUFACTURERS

Use of undefined constant TEXT_ALL_MANUFACTURERS

Started by webmanstudios on 28 Jan 2024, 12:58 PM · Views: 1,214

Results 1 to 8 of 8
28 Jan 2024, 12:58 PM
#1
webmanstudios avatar

webmanstudios

New Zenner

Join Date:
Dec 2013
Location:
Adelaide, South Australia
Posts:
29
Plugin Contributions:
0

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.

28 Jan 2024, 1:23 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,137
Plugin Contributions:
56

Re: Use of undefined constant TEXT_ALL_MANUFACTURERS

What version of Zen Cart and what template is in use?

5 Feb 2024, 1:40 AM
#3
webmanstudios avatar

webmanstudios

New Zenner

Join Date:
Dec 2013
Location:
Adelaide, South Australia
Posts:
29
Plugin Contributions:
0

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

5 Feb 2024, 2:53 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,137
Plugin Contributions:
56

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.

25 Mar 2024, 4:47 AM
#5
webmanstudios avatar

webmanstudios

New Zenner

Join Date:
Dec 2013
Location:
Adelaide, South Australia
Posts:
29
Plugin Contributions:
0

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.

25 Mar 2024, 4:43 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,137
Plugin Contributions:
56

Re: Use of undefined constant TEXT_ALL_MANUFACTURERS

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.

25 Mar 2024, 5:08 PM
#7
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,814
Plugin Contributions:
24

Re: Use of undefined constant TEXT_ALL_MANUFACTURERS

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

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

My site - Pro ZC Help
My portfolio | My plugins

27 Mar 2024, 12:45 AM
#8
webmanstudios avatar

webmanstudios

New Zenner

Join Date:
Dec 2013
Location:
Adelaide, South Australia
Posts:
29
Plugin Contributions:
0

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.