• Resolved Bardin

    (@bardinellis)


    Hi.

    We are trying to upgrade our hosting to PHP8, but after upgrading the Envira Gallery Lite breaks the site.

    Envira Gallery Lite version 1.8.4.6
    WordPress version 6.0.2
    Theme – Twenty Twenty Two (default).
    PHP versions tested: 8.0 + 8.1

    We have tested with only Envira Gallery Lite and default theme enabled.

    This is the error message:

    Parse error: syntax error, unexpected token “\” in /usr/www/users/…/wp-content/plugins/envira-gallery/src/Functions/cropping.php on line 90
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Is the plugin compatible with PHP 8.x?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @bardinellis!

    I apologize for any trouble! Both our latest version of Envira Gallery and Envira Gallery Lite should be compatible with PHP 8+.

    That specific error appears to be coming from the paid version of Envira Gallery. If coming from Envira Gallery Lite, I would expect to see the error read ‘wp-content/plugins/envira-gallery-lite/’ instead of ‘wp-content/plugins/envira-gallery/’.

    Do you happen to have the paid version of Envira Gallery installed on the website? If so, can you please tell me the version number?

    Thank you!

    • This reply was modified 2 years, 5 months ago by bmilligan15.

    Hi,

    I just switched to php8.1 and getting these warnings:

    Warning: Undefined array key "link" in /var/www/vhosts/vip-grinders.com/httpdocs/wp-content/plugins/envira-gallery-lite/includes/global/shortcode.php on line 1528
    
    Warning: Undefined array key "title" in /var/www/vhosts/vip-grinders.com/httpdocs/wp-content/plugins/envira-gallery-lite/includes/global/shortcode.php on line 405
    
    Warning: Undefined array key "alt" in /var/www/vhosts/vip-grinders.com/httpdocs/wp-content/plugins/envira-gallery-lite/includes/global/shortcode.php on line 482
    
    Warning: Undefined array key "title" in /var/www/vhosts/vip-grinders.com/httpdocs/wp-content/plugins/envira-gallery-lite/includes/global/shortcode.php on line 482

    Quick and dirty solution:

    $item[‘link’] ?? ”

    Hi, @vipgrinders!

    We’ve reported these errors to our dev team, and they’ll be releasing an update soon that resolves them.

    Thanks for reaching out!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Envira Gallery Lite compatibility with PHP 8.x’ is closed to new replies.