• Resolved suncountryiris

    (@suncountryiris)


    Two days ago

    Two days ago I updated FooGallery to version 3.0.2. I also have the plugin “Password Protect WordPress” installed to protect a couple pages. Since update of FooGallery has occurred I am now receiving warning when I attempt to access a password protected page that states: “Warning: Attempt to read property “ID” on null in /home/*/wp-content/plugins/foogallery/includes/class-foogallery-password-protect.php on line 27. Lin 27 in questions is: if ( !empty( $gallery ) && $current_foogallery->ID === $gallery->ID ) {

    This warning is only received upon accessing a protected page. The page that uses FooGallery is NOT password protected. Prior to FooGallery update to version 3.0.2 the two plugins worked just fine without any warning. Review of my last FTP backup reveals the file “class-foogallery-password-protect.php” did not exist in the FooGallery plugin. Additional review finds that the plugin “Password Protect WordPress” has NOT been updated since well prior to my last FTP backup.

    I am also submitting this same question to the FooGallery plugin developer.

    Any assistance is appreciated

    Darol

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Quinnie

    (@quinniewpfolio)

    Hi @suncountryiris,

    Thank you for reaching out to us.

    It sounds like a conflict issue, and it appears that WP_DEBUG_DISPLAY is enabled on your site.

    I was able to reproduce the issue on our staging site and also saw the warning. I tested the password protection functionality to confirm whether it was affected, fortunately, the unlocking process still works properly.

    Since the warning points only to an issue in the FooGallery PHP file, we don’t have a way to resolve it on our end. We recommend waiting for FooGallery to address and fix the issue.

    Additionally, because the warning doesn’t prevent PPWP from functioning, you may temporarily hide it by editing your wp-config.php file and setting the following value:

    define( 'WP_DEBUG_DISPLAY', false );

    This will disable the warning display while waiting for FooGallery to provide a fix.

    Best regards,

    Thread Starter suncountryiris

    (@suncountryiris)

    Thank you for your prompt response.

    Interesting about the debug display. I checked the wp-config file. It has two items, one WP_DEBUG is set to false (the other debug_log is also set to false). There is no WP_DEBUG_DISPLAY file, I added it setting it to false. the warning still appears. Any suggestions?

    Darol

    Plugin Support Quinnie

    (@quinniewpfolio)

    Hi @suncountryiris,

    If you don’t see the WP_DEBUG_DISPLAY option, you can simply add it to wp-config.php.
    Could you please replace your existing debug settings with the following and check if it works?

    define( 'WP_DEBUG', true ); 
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );

    Best,

    bradvin

    (@bradvin)

    hi both,

    I can confirm the bug was in FooGallery. I have managed to reproduce and fix it. The fix will be released in the next update of FooGallery.

    Seeing as the problem is not with this plugin, you can resolve this thread

    Plugin Support Quinnie

    (@quinniewpfolio)

    Hi @bradvin ,

    Thanks for the update! Glad to hear you were able to track down the issue and get it fixed, we’ll go ahead and close this thread.

    If anything else comes up, just let us know.

    Have a great day!

    Thread Starter suncountryiris

    (@suncountryiris)

    To @quinniewpfolio

    Thank you for an alternate suggestion to suppress the warning on the heading. I changed the debug settings as you suggested and it WORKED!!!!! Go figure?

    define( 'WP_DEBUG', true ); define( 'WP_DEBUG_DISPLAY', false ); define( 'WP_DEBUG_LOG', true );
    Plugin Support Muhammad

    (@muhammadwpfolio)

    Hi @suncountryiris,

    That’s great to hear! I’m glad Quinnie’s suggestion worked and the warning is no longer showing.

    If you notice anything else unusual or need help with further tweaks, feel free to let us know, we’re happy to assist.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Password Protect throwing warning in another Plugin’ is closed to new replies.