Support

Home Forums Event Espresso Premium ee4 version 4.8.13 The called constructor method for WP_Widget is deprecated …

ee4 version 4.8.13 The called constructor method for WP_Widget is deprecated …

Posted: September 30, 2015 at 2:09 pm

Viewing 2 reply threads


Maurice Langlais

September 30, 2015 at 2:09 pm

Today I tried to update from 4.8.9 which was working fine, to version 4.8.13 the latest version. When I try to add a registrant from the back end I get this error from wp_debug:
The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead.

I tried a default WP theme with the same error. I then uploaded 4.8.9 back up via FTP and all is well. It seems somewhere between 4.8.9 and the new version something happened with Event Espresso.


Maurice Langlais

September 30, 2015 at 2:47 pm

Sorry, Please hold off looking into this. I may have solved it and it may not be caused by Event Espresso


Josh

  • Support Staff

September 30, 2015 at 2:51 pm

Hi Maurice,

It turns out that the one place where EE4 core (in both of the versions you mention here) does not use the called constructor method. It extends the WP_Widget class when it adds the Upcoming Events widget, and the code hasn’t changed since 4.8.9.

Do you get the error about the deprecated method anywhere else on the site? You can check the other plugins on the site that add widgets, they may need to be updated so that they do not use the deprecated constructor method.

Here’s a guide that has some excellent info on how to troubleshoot the error you’re seeing:

https://proplugindirectory.com/fix-notice-called-constructor-method-wp_widget-deprecated/

Viewing 2 reply threads

The support post ‘ee4 version 4.8.13 The called constructor method for WP_Widget is deprecated …’ 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