Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Open to all! Ask other shopowners for help.
Post Reply
kudos
Member
Posts: 20
Joined: Sat Jan 16, 2021 8:48 pm
Phoenix Version:
Has thanked: 1 time

Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Post by kudos »

HI

version 1.0.9.1 (upgraded from very early phonix versions over the years)

just noticed i am seeing this error in my logs,
[09-May-2024 22:04:41 Europe/London] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS" in /public_html/includes/hooks/shop/siteWide/manufacturerFilter.php:50
Stack trace:
#0 /public_html/includes/system/versioned/1.0.8.1/hooks.php(150): hook_shop_siteWide_manufacturerFilter->listen_navItemFilters(Array)
#1 /public_html/templates/default/includes/components/product_listing.php(54): hooks->cat('navItemFilters')
#2 /public_html/includes/system/segments/sortable_product_listing.php(14): include('/home/innovativ...')
#3 /public_html/templates/default/includes/pages/products_new.php(21): require('/home/innovativ...')
#4 /public_html/products_new.php(32): require('/home/innovativ...')
#5 {main}
thrown in /public_html/includes/hooks/shop/siteWide/manufacturerFilter.php on line 50
i checed the siteWide/manufacturerFilter.php and it match's the current version from 1.0.9.1 full download...

thanks, rob


Join The Code Co-op to get access to your library in the Code Co-op Forum
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Post by Xpajun »

Have you checked the coresponding langauge file?
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
kudos
Member
Posts: 20
Joined: Sat Jan 16, 2021 8:48 pm
Phoenix Version:
Has thanked: 1 time

Re: Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Post by kudos »

hi, yes, i can see they are defind there.. (see below)

the drop down box on home page works, and you can pick any manufacture on a product listing and it will show all items etc...

not sure from what page this error is triggered to fail from yet.

/public_html/includes/languages/english/index.php
define('TEXT_ALL_CATEGORIES', 'All Categories');
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

/public_html/includes/languages/english/advanced_search.php
const TEXT_ALL_CATEGORIES = 'All Categories';
const TEXT_ALL_MANUFACTURERS = 'All Manufacturers';
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Post by ecartz »

kudos wrote: Thu May 09, 2024 9:39 pm #3 /public_html/templates/default/includes/pages/products_new.php(21): require('/home/innovativ...')
That says that the page is products_new.php


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