Okay
  Public Ticket #3105420
Magento 2.4.4 compile error. PHP 8.1
Closed

Comments

  •  7
    Mark started the conversation

    I'm upgrading the site to Magento 2.4.4 from 2.4.3-p1 and I get the following error when running 'php bin/magento setup:di:compile'

    Deprecated Functionality: Optional parameter $perrow declared before required parameter $nb_item is implicitly treated as a required parameter in /home/<sitename>/<sitedirectory>/app/code/MGS/Mpanel/Helper/Data.php on line 997

    Line 997 is:    
    public function getClearClass($perrow = NULL, $nb_item){

    Looks like it's a PHP 8.1 error.  Is Claue 1.9.20 compatible with 2.4.4 and PHP 8.1? I uploaded the 2.4.4 patch to the server in the appropriate directory.

  • [deleted] replied

    Hi,

    Did you apply our magento 2.4.4 patch? You can apply patch after running the compile command.

    Attached files:  patch_for_magento_2.4.4+.zip

  •  7
    Mark replied

    Yes, I applied the patch (see the last sentence).  I'll apply it again using the zip file you sent. Besides, the Data.php file that it's referencing isn't in the 2.4.4 patch.

    Any other ideas?

    Thanks for looking into this.

    -Mark

  •  7
    Mark replied

    I've included screenshots of step by step what I've done.  I uploaded the patch files again and again get the same result.

    Attached files:  filezilla.png
      steps.png
      steps2.png
      steps3.png

  •  7
    Mark replied

    By the way, the 'readme.txt' file is the exact same in both the 'patch_theme_version_1.9.20' and 'patch_theme_version_1.9.19' directories.

  •  7
    Mark replied

    Attached I'm showing what versions I'm using of Magento 2.4.4-p1 and PHP 8.1

    NOTE: This is on my development server, not the live server. I need to get the development server running with the latest version first.

    Attached files:  versions.png

  • [deleted] replied

    Sorry for take a lot of time. I have received your feedback. I will try to have feedback to you soon.

  •  7
    Mark replied

    I haven't heard anything back and I'm getting the same problem.  The Data.php file referenced isn't in the 2.4.4 patch zip file anyway.