Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Alan Fuller

    (@alanfuller)

    Hi,

    Can you tell me what version of the plugin you are on?

    Alan

    Thread Starter Chuckie

    (@ajtruckle)

    Hi

    I had just upgraded to your latest version.

    Plugin Author Alan Fuller

    (@alanfuller)

    Are you using other plugins of mine?

    stop-user-enumeration
    clean-and-simple-contact-form-by-meg-nicholas
    redirect-404-error-page-to-homepage-or-custom-page
    simple-google-maps-short-code
    stop-wp-emails-going-to-spam

    As there was an edge case bug where if two plugin using my same ‘donation/review ask’ code nagged at the same time they got confused as to what to dismiss and nothing got dismissed.

    I have now updated all these plugins so if you are updated on all – the dismiss should now work.

    • This reply was modified 2 years, 10 months ago by Alan Fuller.
    Thread Starter Chuckie

    (@ajtruckle)

    Thanks. I am only using the one plugin.

    Just upgraded and purged my cache. Same issue.

    The can’t be dismissed. ??

    Both messages are for the same plugin.

    Plugin Author Alan Fuller

    (@alanfuller)

    Hi Chuckie,

    Well that is disappointing. As I have definitely resolved a similar issue when multiple plugins are ‘nagging’

    But perhaps your is a different case.

    First can you check your browser console logs for errors on click – as a javascript ajax action other errors can break it.

    Thread Starter Chuckie

    (@ajtruckle)

    I just tried that for you and I don’t appear to see any issues in the error console when I click the options in either box. It just doesn’t honour them. It is as if it is not serializing your setting into the database and not acting on it.

    Plugin Author Alan Fuller

    (@alanfuller)

    Are you happy to do aa bit of database investigation, please?

    In (wp_)usermeta search for a meta_ket like %pdlib_dismissed_notices%

    Plugin Author Alan Fuller

    (@alanfuller)

    BTW the console should log ‘DONE!’ if the ajax call succeeds.

    If you are not seeing ‘DONE!’ can you check for errors in your server log?

    BTW what PHP / WP version are you on?

    Are you using any advanced object cache?

    Plugin Author Alan Fuller

    (@alanfuller)

    Hi Chuckie,

    Thanks for bearing with me – I think I have found a potential issue. Just testing.

    Thread Starter Chuckie

    (@ajtruckle)

    In the database it has this value:

    a:2:{s:41:"stop-user-enumeration_pdlib_notice_review";b:1;s:41:"stop-user-enumeration_pdlib_notice_donate";b:1;}

    I am using the latest stable PHP and WP.

    I do have one.com caching plugin but as mentioned I had already “purged”.

    I can’t see any “Done” items but I am not a guru at debugging the browser so could be checking in the wrong place.

    Plugin Author Alan Fuller

    (@alanfuller)

    Nope wasn’t that. ( refering my prior thoughts )

    • This reply was modified 2 years, 10 months ago by Alan Fuller.
    Plugin Author Alan Fuller

    (@alanfuller)

    In the database it has this value:

    Can you also advise the key name
    was it pdlib_dismissed_notices or stop-user-enumeration_pdlib_dismissed_notices

    Thread Starter Chuckie

    (@ajtruckle)

    There was only one key name in teh search results:

    stop-user-enumeration_pdlib_dismissed_notices

    Plugin Author Alan Fuller

    (@alanfuller)

    Ok that was meant to get renamed to pdlib_dismissed_notices

    You can manually rename the key – or just delete the record and re-dismiss.

    Why the rename failed for you but works in testing I don’t know – baffled.

    Plugin Author Alan Fuller

    (@alanfuller)

    Just in case any one can spot an issue

    this is the rename code

    /* handle issue of old version */
            $slugs =array(
    	        'stop-user-enumeration',
                'clean-and-simple-contact-form-by-meg-nicholas',
                'redirect-404-error-page-to-homepage-or-custom-page',
                'simple-google-maps-short-code',
    	        'stop-wp-emails-going-to-spam',
            );
            foreach( $slugs as $slug) {
    	        $legacy = get_user_meta( $user_id, $slug .'_pdlib_dismissed_notices', true );
    	        if ( ! empty( $legacy ) ) {
    		        update_user_meta( $user_id, 'pdlib_dismissed_notices', $legacy );
    		        delete_user_meta( $user_id, $slug .'_pdlib_dismissed_notices' );
                    break;
    	        }
            }
            /* end of tidy up */
Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Messages refuse to go away’ is closed to new replies.