Not sure if this has been addressed or not, but is there any old to new coding to replace the tep_ functions?
Getting fed up with deleting the errors - almost 1 per second
PHP Deprecated:
-
- VIP Member
- Posts: 2170
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 30 times
- Been thanked: 202 times
-
- Lead Developer
- Posts: 2694
- Joined: Tue Oct 29, 2019 9:37 am
- : Buy Me A Beverage
- Has thanked: 52 times
- Been thanked: 151 times
Re: PHP Deprecated:
Replacing tep_* functions should be more or less straightforward.
Old addons (or old custom code) usually need to be updated.
EG:
if an old addon uses this to get a products name;
It will create this error in the error_log;
Now you know that you need to update your old code
from this:
to this:
Old addons (or old custom code) usually need to be updated.
EG:
if an old addon uses this to get a products name;
Code: Select all
$products_name = tep_get_products_name($p, $l);
You then need to find "tep_get_products_name" to see what the replacement is;The tep_get_products_name function has been deprecated.
Code: Select all
function tep_get_products_name($product_id, $language_id = null) {
trigger_error('The tep_get_products_name function has been deprecated.', E_USER_DEPRECATED);
return Product::fetch_name($product_id, $language_id);
}
from this:
Code: Select all
$products_name = tep_get_products_name($p, $l);
Code: Select all
$products_name = Product::fetch_name($p, $l);
-
- VIP Member
- Posts: 186
- Joined: Thu Mar 04, 2021 1:18 pm
- Has thanked: 3 times
- Been thanked: 6 times
Re: PHP Deprecated:
UPDATE: I've just found a working link to Raiwa's spreadsheet:
Code: Select all
https://docs.google.com/spreadsheets/d/1R-tBvdqGC0NrppEes7z2xQp6xe1zi3LMT46gZ2pUNpg/edit#gid=0
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest - php 8.2.18
Now working on taking a short rest - php 8.2.18