I was moved to a larger web server recently and it has a slightly newer version of php and mysql which is causing me a lot of errors, I think I can fix the date standardization issues with info I already found here, but this one is causing a lot of logs to be generated and I'm not sure how to fix it, it's being caused by an extra function used to display prices with and without vat. Can I add something to a template file to declare this variable or do I need to add something to the configuration table? Any help would be much appreciate, even though the store is in maintenance mode its still generating hundreds of log files per hour.
Code:
[25-May-2024 13:05:48 UTC] Request URI: /, IP address: 66.249.66.80
#1 include(/home/***/public_html/includes/functions/extra_functions/inc_ex_functions.php) called at [/home/***/public_html/includes/modules/extra_functions.php:43]
#2 include(/home/***/public_html/includes/modules/extra_functions.php) called at [/home/***/public_html/includes/init_includes/init_general_funcs.php:51]
#3 require_once(/home/***/public_html/includes/init_includes/init_general_funcs.php) called at [/home/***/public_html/includes/autoload_func.php:37]
#4 require(/home/***/public_html/includes/autoload_func.php) called at [/home/***/public_html/includes/application_top.php:222]
#5 require(/home/***/public_html/includes/application_top.php) called at [/home/***/public_html/index.php:25]
--> PHP Warning: Use of undefined constant zen_get_products_display_price - assumed 'zen_get_products_display_price' (this will throw an Error in a future version of PHP) in /home/***/public_html/includes/functions/extra_functions/inc_ex_functions.php on line 10.
Line 10 of inc_ex_functions.php starts here
PHP Code:
if(!function_exists(zen_get_products_display_price))
{
function zen_get_products_display_price($products_id)
{
return get_products_display_price($products_id);
}
}
(I do plan to rebuild my store on the latest version of zen cart at some point, but I find the process of upgrading intimidating as i'm such a novice I haven't kept track of which files I've modified, or forgotten to override and modified core files, etc along the years and I have a habit of breaking things.)
thegluepeople.co.uk
Thanks
Bookmarks