• Somewhere between 3.0 and 3.1.3, this plugin stopped working on my sites. For annoying legacy reasons, we’re still using PHP 5.3. It looks like you’ve used the new [] array constructor in class-plugin.php (at least), which was introduced in PHP 5.4.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Florian Brinkmann

    (@florianbrinkmann)

    Hi David,

    sorry to hear that. I just uploaded a new version which replaces the [] syntax with array() again (hope I got them all).

    Cheers,
    Florian

    Thread Starter David E. Smith

    (@desmith)

    That seems to have broken things in a different way (again, on PHP 5.3):

    Fatal error: Can't use function return value in write context in /var/www/html/mysitehere/wp-content/plugins/lazy-loading-responsive-images/src/class-plugin.php on line 170

    Assuming things still work on newer versions of PHP, and you don’t need to do a quick rollback, don’t worry too much about it. I’ll try to look at it next week and send a patch.

    Plugin Author Florian Brinkmann

    (@florianbrinkmann)

    I think I found the problem – would you give the master branch a try? https://github.com/mtoensing/lazy-loading-responsive-images

    Thread Starter David E. Smith

    (@desmith)

    The plugin appears to work again as expected, once updated with master from above. Thanks for looking into this!

    Plugin Author Florian Brinkmann

    (@florianbrinkmann)

    Cool, thanks for testing! Then I will publish a new version with the fix to the Repo.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin no longer works with PHP 5.3’ is closed to new replies.