Support

Home Forums Event Espresso Premium Deprecated Constructor in Event Espresso Widget

Deprecated Constructor in Event Espresso Widget

Posted: May 29, 2019 at 11:36 am

Viewing 1 reply thread


Richard Duncan

May 29, 2019 at 11:36 am

Can this be resolved?

{type: “deprecated”, message: “Methods with the same name as their class will not…vent_Espresso_Widget has a deprecated constructor”, file: “wp-content/uploads/espresso/templates/widget.php”, line: 4, stack: Array(2), …}
component: “Plugin: event-espresso”
file: “wp-content/uploads/espresso/templates/widget.php”
line: 4
message: “Methods with the same name as their class will not be constructors in a future version of PHP; Event_Espresso_Widget has a deprecated constructor”
stack: (2) [“event_espresso_require_file()”, “event_espresso_require_template()”]
type: “deprecated”
__proto__: Object


Josh

  • Support Staff

May 29, 2019 at 11:48 am

Hi,

This was actually fixed/updated in the core Event Espresso plugin about 4 years ago. It appears your site has a customized widget.php file located in /wp-content/uploads/espresso/templates that has the older, unpatched widget code.

What you can do is either removed the copy of widget.php from /wp-content/uploads/espresso/templates, or update it to include the changes outlined here:

https://github.com/eventespresso/event-espresso-legacy/commit/2b18e20b56e2361cf5843a958163a6b66502c423#diff-cd290cc33f71c8edcad60d795a70fa0e

Viewing 1 reply thread

The support post ‘Deprecated Constructor in Event Espresso Widget’ 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