Quote Originally Posted by g2ktcf View Post
This is an error in the template. I get error logs from this everyday and just have not found a chance to fix it. Here is the log file from my current site

Code:
[27-May-2022 21:52:07 America/Chicago] Request URI: /index.php?main_page=featured_products&disp_order=1&language=en, IP address: 154.54.249.208
#1  include(/home/xxxxx/wlcartistry.com/includes/modules/fluorspar/product_listing.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_modules_product_listing.php:13]
#2  require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_modules_product_listing.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_featured_products_default.php:19]
#3  require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_featured_products_default.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/common/tpl_main_page.php:315]
#4  require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home/xxxxx/wlcartistry.com/index.php:94]
--> 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/xxxxxx/wlcartistry.com/includes/modules/fluorspar/product_listing.php on line 273.
for those that know...WHEN is TEXT_NO_PRODUCTS used and why?
Actually that error is not the same as @HeleneWallis' issue. The issue is that there is no define present for TEXT_NO_PRODUCTS, which is why "TEXT_NO_PRODUCTS" is showing on the web page. As @dbltoe said it usually resides in \includes\languages\english\index.php (and that there might be a template-specific version in \includes\languages\english\flourspar\index.php)

Check both of these files for this line:

Code:
define('TEXT_NO_PRODUCTS', '???????????????????');
If it's not there then compare your index.php('s) with the originals, as there might be more missing than just that line.