Jump to content

[8192] Creation of dynamic property HelperView::$actions is deprecated


wimotek

Recommended Posts

Hello,

PrestaShop 8 does not support PHP 8.2 yet, as highlighted in here: https://devdocs.prestashop-project.org/8/basics/installation/system-requirements/#php-compatibility-chart

Unless you want to manually fix these warnings, it is recommended to downgrade to PHP 8.1

These warnings are thrown because in some classes, some methods are setting properties without having these properties defined in the class.

Here is an example:

class SomeClass
{
    public function __construct(string $str)
    {
        $this->str = $str;
    }
}

This case will throw the warning, because the property str is not defined in the class. In order to fix it, you just need to define that property:

class SomeClass
{
    public string $str;
    
    public function __construct(string $str)
    {
        $this->str = $str;
    }
}

 

Edited by Andrei H (see edit history)
Link to comment
Share on other sites

11 hours ago, Andrei H said:

Hello,

PrestaShop 8 does not support PHP 8.2 yet, as highlighted in here: https://devdocs.prestashop-project.org/8/basics/installation/system-requirements/#php-compatibility-chart

Unless you want to manually fix these warnings, it is recommended to downgrade to PHP 8.1

These warnings are thrown because in some classes, some methods are setting properties without having these properties defined in the class.

Here is an example:

class SomeClass
{
    public function __construct(string $str)
    {
        $this->str = $str;
    }
}

This case will throw the warning, because the property str is not defined in the class. In order to fix it, you just need to define that property:

class SomeClass
{
    public string $str;
    
    public function __construct(string $str)
    {
        $this->str = $str;
    }
}

 

thank you very much .  i would downgrade to 8.1 till ps support 8.2

there are some places need to change. 

 

Unknown error on line 2583 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$actions is deprecated

Unknown error on line 2584 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$simple_header is deprecated

Unknown error on line 2585 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$bulk_actions is deprecated

Unknown error on line 2594 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$orderBy is deprecated

Unknown error on line 2595 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$orderWay is deprecated

Unknown error on line 2596 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$listTotal is deprecated

Unknown error on line 2600 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$shopLinkType is deprecated

Unknown error on line 2604 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$languages is deprecated

Unknown error on line 2605 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$specificConfirmDelete is deprecated

Unknown error on line 2606 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$imageType is deprecated

Unknown error on line 2607 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$no_link is deprecated

Unknown error on line 2608 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$colorOnBackground is deprecated

Unknown error on line 2609 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$ajax_params is deprecated

Unknown error on line 2611 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$default_form_language is deprecated

Unknown error on line 2618 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$row_hover is deprecated

Unknown error on line 2619 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$position_identifier is deprecated

Unknown error on line 2625 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$list_id is deprecated

Unknown error on line 2629 in file /www/wwwroot/classes/controller/AdminController.php
[8192] Creation of dynamic property HelperView::$list_skip_actions is deprecated

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...