Getting fed up with deleting the errors - almost 1 per second
PHP Deprecated:
-
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
PHP Deprecated:
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
Getting fed up with deleting the errors - almost 1 per second
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
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
- burt
- Core Team
- Posts: 4561
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 413 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); -
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: 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=0Current 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