Featured Products

Function name must be a string - Featured Products

Function name must be a string

by mhsuffolk » Fri Mar 17, 2023 4:33 pm

App 2.3.4 Phoenix 1.0.8.5 PHP 7 Upgrading from 2.2.5

Module loads and works fine on the index page which is the only place I use it.
When I access the admin page to add new products etc I get this

Notice: Undefined index: function in D:\PHP_7_4_29\htdocs\***admin***\includes\classes\paginator.php on line 83

Fatal error: Uncaught Error: Function name must be a string in D:\PHP_7_4_29\htdocs\***admin***\includes\classes\paginator.php:83 Stack trace: #0 D:\PHP_7_4_29\htdocs\***admin***\includes\components\paginated_table.php(35): Paginator->fetch() #1 D:\PHP_7_4_29\htdocs\***admin***\includes\classes\paginator.php(78): include('D:\\PHP_7_4_29\\h...') #2 D:\PHP_7_4_29\htdocs\***admin***\featured.php(190): Paginator->display_table() #3 {main} thrown in D:\PHP_7_4_29\htdocs\***admin***\includes\classes\paginator.php on line 83
Live shop Phoenix 1.0.9.0 on PHP 8.0
User avatar
mhsuffolk
VIP Member
VIP Member
Posts: 146
Joined: Sat Oct 26, 2019 9:13 am
Contact:

Re: Function name must be a string

by mhsuffolk » Fri Mar 17, 2023 4:41 pm

Also, when you hover over the search button the browser displays admin/select_featured.php. I notice that on Line 37 of admin/featured.php that file is mentioned, but it does not exist in 2.3.4
Live shop Phoenix 1.0.9.0 on PHP 8.0
User avatar
mhsuffolk
VIP Member
VIP Member
Posts: 146
Joined: Sat Oct 26, 2019 9:13 am
Contact:

Re: Function name must be a string

by raiwa » Fri Mar 17, 2023 7:08 pm

I didn’t test it with all Phoenix 1.0.8.x versions. It may require Phoenix 1.0.8.6+.
I’ll have a look for the select_featured.php issue.
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
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Function name must be a string

by raiwa » Sat Mar 18, 2023 7:49 am

I checked and even select_featured.php reference is there it doesn't prevent correct search functionality.
For the other error, I have no 1.0.8.4 test installation any more. Please try with the 2.2.5 version or update your store to 1.0.8.6
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
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Function name must be a string

by raiwa » Sat Mar 18, 2023 5:24 pm

Checked versions compatibility: the min Phoenix version for Featured Products 2.3.4/5 is Phoenix 1.0.8.7.
Updated the package and removed the obsolete search_featured.php link

Thank you very much for the reports.
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
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact: