Rebuilding site 1.0.7.15 - 1.0.9.4

Open to all! Ask other shopowners for help.
Post Reply
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

Rebuilding site 1.0.7.15 - 1.0.9.4

Post 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?


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Rebuilding site 1.0.7.15 - 1.0.9.4

Post 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
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

Re: Rebuilding site 1.0.7.15 - 1.0.9.4

Post by LeeFoster »

heatherbell wrote: Wed Jul 17, 2024 8:31 am
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
Thanks, I knew this existed, just didn't know where.

Unfortunatley line 151 doesn't work in the admin section
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Rebuilding site 1.0.7.15 - 1.0.9.4

Post 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;

Code: Select all

tep_get_all_get_params()
becomes

Code: Select all

retain_query_except()
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
Has thanked: 70 times
Been thanked: 152 times

Re: Rebuilding site 1.0.7.15 - 1.0.9.4

Post by raiwa »

LeeFoster wrote: Wed Jul 17, 2024 8:35 am
heatherbell wrote: Wed Jul 17, 2024 8:31 am
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
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.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply