• Resolved Florian TIAR

    (@mista-flo)


    Hello,

    I’m currently in the process of migrating my websites to PHP 8.1 and I come across some issues with the plugin’s compatibility with PHP 8.1.

    Here’s the errors spotted by phpcompatibility/php-compatibility package:

    FILE: amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------
     422 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove
         |       | ambiguity.
     454 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove
         |       | ambiguity.
     502 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove
         |       | ambiguity.
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi Florian,

    WP Offload Media Support Team here. Thanks for reaching out with your query, we would be happy to assist!

    May I know what version of WP Offload Media Lite you are using? We just released version 3.2.5, which includes compatibility with PHP 8.2 as well. If you haven’t yet, please could you try updating to the latest version to see if that helps with the issue?

    Thread Starter Florian TIAR

    (@mista-flo)

    I just checked and the last version of the plugin doesn’t change the lines I mentioned, it’s still throwing errors:

    FILE: /Users/florian.tiar/projects/smarterfleet/app/wp-content/plugins/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php
    --------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    -------------------------------------------------------------------------- 422 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove
         |       | ambiguity.
     454 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove
         |       | ambiguity.
     502 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove
         |       | ambiguity.
    --------------------------------------------------------

    Can you reassure me it’s still compatible with PHP 8.1 please?

    • This reply was modified 1 year, 3 months ago by Florian TIAR.
    Plugin Author Delicious Brains

    (@deliciousbrains)

    Hey @mista-flo,

    WP Offload Media is compatible with PHP 7.2 through 8.2.

    We routinely run both PHPStan and PHP Code Sniffer against the code base, and have never hit that error.

    Looking at the code, I don’t think that error applies either, as in each case there’s no call of a variable on a variable, they’re all simple variable substitutions.

    What version of phpcompatibility/php-compatibility are you using?

    -IJ

    Thread Starter Florian TIAR

    (@mista-flo)

    Hello, thanks for the input.

    I’m using the latest dev-develop version available so it might be slightly unstable.

    I’m all right as soon as you’ve checked and you feel there is no risk of breaking.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 8.1 compatibility’ is closed to new replies.