Support

Home Forums Event Espresso Premium Memberpress WordPress Dashboard Nag Messages

Memberpress WordPress Dashboard Nag Messages

Posted: October 28, 2022 at 1:22 am

Viewing 8 reply threads


PPManager

October 28, 2022 at 1:22 am

Hi, I have just installed Event Espresso 4.10.40 and in my WordPress dashboard, I am seeing all the Memberpress subscription plans as dismissable notifications. They are appearing on all settings pages on the dashboard.

See screenshot >

When I dismiss the messages (some won’t dismiss at all), on page refresh they all come back again (the ones I have dismissed). Disabling the Event Espresso plugin makes the notifications go away.

Any help is much appreciated.


Tony

  • Support Staff

October 28, 2022 at 6:23 am

Hi there,

Can you send me a copy of Memberpress so I can install it locally to view this?

I’ll check if this is something EE is doing incorrectly or Memberpress, I can’t promise a fix but will happily look into it.


PPManager

November 2, 2022 at 12:31 am

This reply has been marked as private.


PPManager

November 2, 2022 at 2:45 am

Hi Tony

Just to add to the above, see screenshot. I inspected the nag messages and the classes are showing as referenced to Event Espresso:

https://www.awesomescreenshot.com/image/33986129?key=fec177c89d0028e1eece31222583d1d2

Thanks again


Tony

  • Support Staff

November 2, 2022 at 5:40 am

Hmmm, very strange.

So nothing in the code stands out for me in that Memberpress isn’t somehow triggering an EE function to display notices, however, based on the fact that the notices show the espresso-notices classes I suspect somehow memberpress has injected a bunch of details into the option used by Event Espresso to store persistent notices.

So I don’t think its a case of EE and Memberpress conflicting when running, but rather ‘something’ has happened and additional data stored in the wp option. Which means EE is then looping over all of those details expecting them to be EE notices and outputting them to the page.

Are you comfortable with PHP? I can give you a snippet to output the option so we can see if that is what is happening if so.


PPManager

November 2, 2022 at 10:13 pm

Thanks Tony

Yes, please send me the PHP snippet


Tony

  • Support Staff

November 3, 2022 at 6:02 am

First, create a database backup just to be safe.

This:

var_dump(get_option('ee_pers_admin_notices', array()));

Will output the option EE uses for persistent notices.

If you can grab that content and post it here I can check it out.

Or, the other option if you have phpMyAdmin access if to check the wp_options table, search for an option name of ‘ee_pers_admin_notices’, like this:

https://monosnap.com/file/SLEgotUeJ3J0KR3iku1twz0x5fcMT1

Grab the option value from that and save it to a file.

You can then either manually set it to be a:0:{} or set an empty option using:

update_option('ee_pers_admin_notices', array());

and see if that removes the notices.

EE saves the admin notices to track them and an empty option wont break anything but make sure you backup the value first.


PPManager

November 3, 2022 at 9:21 am

Hi Tony

That did it. I removed the option values out of the database ‘ee_pers_admin_notices’ term and it has removed the nag messages.

Thanks very much for your help with this one ๐Ÿ™‚


Tony

  • Support Staff

November 3, 2022 at 10:54 am

You’re most welcome ๐Ÿ™‚

Viewing 8 reply threads

The support post ‘Memberpress WordPress Dashboard Nag Messages’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso