• Resolved megalux

    (@megalux)


    Hello,

    thanks for your plugin. I get this message when a 404 page is displayed:

    Notice: Trying to get property of non-object in *******************\wp-content\plugins\simply-gallery-block\plugins\init.php on line 32 Notice: Trying to get property of non-object in *******************\wp-content\plugins\simply-gallery-block\plugins\init.php on line 32

    WordPress version: 5.4.2

    • This topic was modified 4 years, 4 months ago by megalux.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter megalux

    (@megalux)

    simple fix

    from

    
    if ($pgc_sgb_global_lightbox_use && ($post->post_type === 'post' || $post->post_type === 'page')) {
    

    to

    
    if ($pgc_sgb_global_lightbox_use && is_object($post) && ($post->post_type === 'post' || $post->post_type === 'page')) {
    
    Plugin Author GalleryCreator

    (@gallerycreator)

    Thank You for this information. Update the plugin to version 1.3.1 – everything should work fine.

    Thread Starter megalux

    (@megalux)

    Thanks… it works! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice message in page 404’ is closed to new replies.