Hey all,
I need to the php version my Prestashop install uses.
I would be grateful for any tips about where my setup and attempts (see below) might be going wrong.
My YunoHost server
Hardware: Old computer - Mac Mini circa 2014
YunoHost version: 11.1.19 (running on VM via VirtualBox)
I have access to my server :
- Through SSH
- through the webadmin
- direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
What you are trying to achieve
Downgrade the php version prestashop uses from 8.2 to 8.1.
The context
My prestashop is throwing lots of errors (see below), that are a known issue of running
The Yunohost Prestashop app combines Prestashop 8.1.1 with php 8.2. But Prestashop is currently only compatible with php 8.1 or lower. See here: System requirements for PrestaShop 8 :: PrestaShop Developer Documentation
I have raised an issue with the Yunohost Prestashop packagers requesting the downgrade here: Issues · YunoHost-Apps/prestashop_ynh · GitHub
But in the meantime, I need to downgrade the php.
- What I tried
Attempt 1:
- I followed instructions from @flatrongraad here: [SOLVED] Baikal problems since 0.9.3-ynh3 upgrade - #5 by flatrongraad - Support apps - YunoHost Forum
Why: This was the only post I found on Prestashop forums or YH forums offering a strategy for downgrading php version.
Result 1: I get an error half way through, when I try to extract the tar folder.
Attempt 2:
- I tried different way to extract the tar folder, as shown here: Can't tar files: Refusing to read archive contents from terminal - Unix & Linux Stack Exchange
Why: Based on these posts
Result 2: None of the different tar extraction strategies worked.
Returned error messages
Error message in console
PHP errors shown in debug mode
Unknown error on line 2578 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$actions is deprecated
Unknown error on line 2579 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$simple_header is deprecated
Unknown error on line 2580 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$bulk_actions is deprecated
Unknown error on line 2589 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$orderBy is deprecated
Unknown error on line 2590 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$orderWay is deprecated
Unknown error on line 2591 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$listTotal is deprecated
Unknown error on line 2595 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$shopLinkType is deprecated
Unknown error on line 2599 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$languages is deprecated
Unknown error on line 2600 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$specificConfirmDelete is deprecated
Unknown error on line 2601 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$imageType is deprecated
Unknown error on line 2602 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$no_link is deprecated
Unknown error on line 2603 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$colorOnBackground is deprecated
Unknown error on line 2604 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$ajax_params is deprecated
Unknown error on line 2606 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$default_form_language is deprecated
Unknown error on line 2613 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$row_hover is deprecated
Unknown error on line 2614 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$position_identifier is deprecated
Unknown error on line 2620 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$list_id is deprecated
Unknown error on line 2624 in file /var/www/prestashop/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$list_skip_actions is deprecated
Questions
Please let me know if you know another way to get around this one block in my php downgrade. Or if you know the YH app packagers for Prestashop, please nudge them for me. Thank you for reading.