Support

Home Forums Event Espresso Premium Fatal Error /PersistentAdminNotice.php on line 128

Fatal Error /PersistentAdminNotice.php on line 128

Posted: January 16, 2020 at 9:12 pm


SurreyHillsNC

January 16, 2020 at 9:12 pm

Hello,
I”m using the Divi Theme with Event Espresso and after switching to a new host I now have the following error:

Fatal error: Uncaught EventEspresso\core\exceptions\InvalidDataTypeException: The supplied data for “$name” was an integer, but a string was expected. in /home/stageshnc/public_html/wp-content/plugins/event-espresso-core-reg/core/domain/entities/notifications/PersistentAdminNotice.php:128 Stack trace: #0 /home/stageshnc/public_html/wp-content/plugins/event-espresso-core-reg/core/domain/entities/notifications/PersistentAdminNotice.php(98): EventEspresso\core\domain\entities\notifications\PersistentAdminNotice->setName(470) #1 /home/stageshnc/public_html/wp-content/plugins/event-espresso-core-reg/core/services/notifications/PersistentAdminNoticeManager.php(155): EventEspresso\core\domain\entities\notifications\PersistentAdminNotice->__construct(470, ‘/*!\n * Font Aw…’, false, ‘manage_options’, ‘view persistent…’, false) #2 /home/stageshnc/public_html/wp-content/plugins/event-espresso-core-reg/core/services/notifications/PersistentAdminNoticeManager.php(109): EventEspresso\core\services\notifications\Per in /home/stageshnc/public_html/wp-content/plugins/event-espresso-core-reg/core/domain/entities/notifications/PersistentAdminNotice.php on line 128

I’ve tried uninstalling and reinstalling EE along with my theme and other plugins, while everything else seems to work as soon as I activate EE I get the above error and am unable to do anything in the admin side of my website.

My new host is running a newer version of PHP, could that be the issue?

Any help would be much appreciated.

Thank you.


Josh

  • Support Staff

January 17, 2020 at 6:52 am

Hi,

It wouldn’t be a newer version of PHP. It could be something from the original site’s database didn’t get moved correctly which is resulting in something rather unexpected.

What you could do is remove the line of code in
(wp-content/plugins/event-espresso-core-reg/core/domain/entities/notifications/PersistentAdminNotice.php on line 128)
which has:
throw new InvalidDataTypeException('$name', $name, 'string');
and replace it with:
$this->name = strval($this->name);
which will allow the admin notice named “470” to be displayed anyway. Then you can dismiss the notices. It’d be good to make a note of what that notice says, it may provide a clue about where that notice was coming from.


SurreyHillsNC

January 18, 2020 at 5:35 am

Thanks Josh for the help. Changing the line of code allowed EE to activate but now I’m left with a very lengthy notice about Font Awesome that I’m unable to dismiss or remove. After searching through all the files, the only places I can find it being used is in the Better Font Awesome plugin and the Gravity Forms plugin. I’ve tried updating, deactivating and reactivating but nothing works. Any suggestions on how I can remove this notification? thanks.

FYI, the notice I receive:
/*! * Font Awesome 4.7.0 by @davegandy – http://fontawesome.io – @fontawesome * License – http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */@font-face{font-family:’FontAwesome’;

** redacted the rest of this because it’s unnecessary **

  • This reply was modified 2 months, 3 weeks ago by  Josh. Reason: removed unnecessary blob


Josh

  • Support Staff

January 18, 2020 at 9:37 am

Somehow that fontawesome script made its way into the wp_options table of the site, and it doesn’t seem like it should have been added in the first place. Possibly maybe this was transferred in when the site’s database was copied?

In any case, the option that has all of the fontawesome stuff in it will need to be deleted from the database. If you’re familiar with phpmyadmin or a similar tool you could go in, search for an option that’s option value is LIKE the the above string (probably just search for Font Awesome 4.7.0, then delete it.

If that’s not something you’re familiar with, we could do it if you can complete the secure form on this page:

https://eventespresso.com/send-login-details/


SurreyHillsNC

January 23, 2020 at 2:22 am

Hi Josh,

Thanks for your help so far. I’m still having problems so I’ve completed your login details form.

Any help would be appreciated.

Regards, Lisa


Tony

  • Support Staff

January 23, 2020 at 3:12 am

Hi Lisa,

Just noting here that I’ve replied directly via email with a solution for this.

The support post ‘Fatal Error /PersistentAdminNotice.php on line 128’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!