Open to all! Ask other shopowners for help.
LeeFoster
Contributor
Posts: 263 Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times
Post
by LeeFoster » Wed Jul 17, 2024 8:02 am
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?
LeeFoster
Contributor
Posts: 263 Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times
Post
by LeeFoster » 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
burt
Core Team
Posts: 4551 Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
: Buy Me A Beverage
Has thanked: 252 times
Been thanked: 412 times
Post
by burt » Wed Jul 17, 2024 10:34 am
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
I am not here to build for you.
I am here to build with you. Let's help each other.
raiwa
Certified Developer
Posts: 1640 Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
: Buy Me A Beverage
Has thanked: 70 times
Been thanked: 152 times
Post
by raiwa » Wed Jul 17, 2024 12:28 pm
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.