• Hi,
    After update I’m getting an error:

    PHP Notice: Trying to get property ‘ID’ of non-object in (…)\wp-content\plugins\wp-lightbox-2\wp-lightbox-2.php on line 155

    The mentioned line:
    $id = ($post->ID) ? $post->ID : -1;

    I was able to fix this issue by changing this line to:
    $id = $post->ID ?? -1;

    Please consider hotfix

    PHP 7.3/7.4

Viewing 1 replies (of 1 total)
  • Plugin Author csskevin

    (@csskevin)

    Hey,
    that’s odd, due the last versions doesn’t include modification of this functionality.
    However I cannot replicate the PHP Notice:
    – Which PHP version do you use?
    – Which WordPress version do you use?
    – Where does the notice gets displayed? (On the page itself, or in the wp-admin)
    – Is there any special case, where this happens or do you always get this notice?

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice after update’ is closed to new replies.