• [email protected]

    (@wesleyintermationnl)


    Hello,

    Using the PHP Compatibility Checker to check my website’s compatibility for a PHP7 upgrade I found that this plugin is not fully compatible yet with PHP7. The problem seems to be as follows.

    FILE: /home/ubuntu/workspace/wp-content/plugins/a3-lazy-load/admin/admin-interface.php
    ————————————————————————————–
    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————–
    396 | ERROR | Global with variable variables is not allowed since PHP 7.0
    435 | ERROR | Global with variable variables is not allowed since PHP 7.0
    ————————————————————————————–

    It would be great if this could be addressed in a future release.

    With kind regards,
    Wesley

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello
    I also have the same error. Is php 7 support available in the next version?

    It has also not been updated (since 4.5.4, latest WP Core release is 4.7). Is this plugin still being supported?

    In case you’d like to roll your own solution,

    open up the effected file. In this case, /wp-content/plugins/a3-lazy-load/admin/admin-interface.php

    Replace the code on line 396 from global $$option_name; with global ${$option_name};.

    Then go to line 435, and replace global $$id_attribute; with global ${$id_attribute};

    For an explanation, see php7 reverse compatibility documentation

    Ha I just came to post this exact same info from PHP Compatibility Checker. Thanks for the fix @jasonian.

    I’d also add that I upgraded to PHP 7 despite the error warning and the front end of my site worked, but I kept hitting 500 internal server errors and memory limit errors when navigating through the wp-admin. Deactivating the plugin seems to have fixed that though.

    • This reply was modified 8 years, 2 months ago by Jason Yingling. Reason: adding info
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP7 support’ is closed to new replies.