Support » Plugin: Lightbox with PhotoSwipe » Stopped working since version WP 5

  • Resolved Patrick

    (@zaanmedia)


    Somehow the lightbox stopped working for me after upgrading to wordpress version 5 >.

    Getting 500 error pages without really understanding what the issue is.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Without checking the server logs it is impossible to analyze anything. A “500 error page” can be caused by anything and it is crucial to check the logs what happened. But it is very likely your specific setup which has a problem since the plugin is being used in many WordPress 5 websites without any issue.

    Thread Starter Patrick

    (@zaanmedia)

    Not sure i think it’s my hosting provider:

    [31-Jan-2019 15:31:46 UTC] PHP Fatal error: Using $this when not in object context in /var/www/domains/mydomainname/www/wp-content/plugins/lightbox-photoswipe/lightbox-photoswipe.php on line 244
    [31-Jan-2019 15:31:46 UTC] PHP Fatal error: Call to a member function get() on a non-object in /var/www/domains/mydomainname/www/wp-includes/cache.php on line 123

    On my local it is indeed working! No clue what is causing this.

    • This reply was modified 3 years, 6 months ago by Patrick.
    Plugin Author Arno Welzel

    (@awelzel)

    This error really looks strange and sound like there is some serious problem with the PHP setup on the server. I’d ask the hosting provider, if there is anything special in the configuration.

    And just to be sure, also check for any security breach on your website.

    Plugin Author Arno Welzel

    (@awelzel)

    Just as a demonstration: this is a quite vanilla WordPress 5.0.3 with the Twenty Seventeen theme and Lightbox with Photoswipe 1.91 in action:

    https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe/

    So I’ll close this now as the reason for the issue is not the plugin.

    Thread Starter Patrick

    (@zaanmedia)

    Unfortunately didn’t find a solution yet!

    [03-Feb-2019 21:00:54 UTC] PHP Fatal error: Using $this when not in object context in /var/www/domains/domain.nl/www/wp-content/plugins/lightbox-photoswipe/lightbox-photoswipe.php on line 244
    [03-Feb-2019 21:00:54 UTC] PHP Notice: Undefined variable: this in /var/www/domains/domain.nl/www/wp-content/plugins/lightbox-photoswipe/lightbox-photoswipe.php on line 299
    [03-Feb-2019 21:00:54 UTC] PHP Fatal error: Call to a member function get() on a non-object in /var/www/domains/domain.nl/www/wp-includes/cache.php on line 126

    Will contact my host to see if they know whats up with this stuff. Thanks!

    • This reply was modified 3 years, 6 months ago by Patrick.
    • This reply was modified 3 years, 6 months ago by Patrick.
    • This reply was modified 3 years, 6 months ago by Patrick.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stopped working since version WP 5’ is closed to new replies.