Page 1 of 1

Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Posted: Thu May 09, 2024 9:39 pm
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

Re: Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Posted: Thu May 09, 2024 10:07 pm
by Xpajun
Have you checked the coresponding langauge file?

Re: Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Posted: Thu May 09, 2024 10:22 pm
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';

Re: Uncaught Error: Undefined constant "TEXT_ALL_MANUFACTURERS"

Posted: Thu May 09, 2024 10:44 pm
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