Page 1 of 1
Rebuilding site 1.0.7.15 - 1.0.9.4
Posted: Wed Jul 17, 2024 8:02 am
by LeeFoster
I am in the process of rebuilding a site in the latest version of Phoenix and it is mostly going well in terms of transfering modules over.
However I am struggling with one at the moment that is throwing the error below. The problem is I can't seem to identify what function has replaced tep_get_all_params()
Fatal error: Uncaught Error: Call to undefined function tep_get_all_get_params()
Can anyone help?
Re: Rebuilding site 1.0.7.15 - 1.0.9.4
Posted: Wed Jul 17, 2024 8:31 am
by heatherbell
LeeFoster wrote: ↑Wed Jul 17, 2024 8:02 amwhat function has replaced tep_get_all_params()
Line 151
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Re: Rebuilding site 1.0.7.15 - 1.0.9.4
Posted: Wed Jul 17, 2024 8:35 am
by LeeFoster
Thanks, I knew this existed, just didn't know where.
Unfortunatley line 151 doesn't work in the admin section
Re: Rebuilding site 1.0.7.15 - 1.0.9.4
Posted: Wed Jul 17, 2024 10:34 am
by burt
It's usually a good idea to post the line of code you are trying to update. Or you could look for a place and compare old to new.
Comparing old to new, for example a line in admin/customers.php;
Code: Select all
tep_redirect(tep_href_link('customers.php', tep_get_all_get_params(['cID', 'action']) . 'cID=' . $customer_details['id']));
It is now this;
Code: Select all
$Admin->link('customers.php')->retain_query_except(['action'])->set_parameter('cID', $customer_details['id']);
Therefore this bit;
becomes
Re: Rebuilding site 1.0.7.15 - 1.0.9.4
Posted: Wed Jul 17, 2024 12:28 pm
by raiwa
LeeFoster wrote: ↑Wed Jul 17, 2024 8:35 am
Thanks, I knew this existed, just didn't know where.
Unfortunatley line 151 doesn't work in the admin section
The spreadsheet is a work in progress and can be edited and improved by everyone. If you find something missing or incorrect, just add your grain.