Posted: January 11, 2023 at 9:03 am
|
We get the following error when moving to php 8.0 – PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /public/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /public/wp-includes/class-wp-widget.php:163 |
Hi there, Can you add any more details on this, how do you know the above relates to Event Espresso? Is there a stack trace within the error, if so can you include that here? What page is it thrown on? I’m running EE3 on PHP8.0 without the above issue but it could be related to a specific setup that I don’t have, apparently something regarding widgets, but I’m using the EE widgets already. |
|
|
here’s the full error log: 2023/01/13 02:08:14 [error] 75422#75422: *409 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /www/castandup_272/public/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /www/castandup_272/public/wp-includes/class-wp-widget.php:163 |
Hmmm, ok, strange, I’m not getting the same error. Can you post the content of The error you are getting doesn’t really make sense with the default EE widget. Are you loading any custom widgets for EE? |
|
|
Ok, we found and fixed the issue. the construct method was wrong. however we are now running into a number of other issues. here’s one – we cannot delete attendees 2023/01/17 19:14:41 [error] 4514#4514: *34 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function each() in /www/castandup_272/public/wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php:25 |
|
Ok – resolved the error above replacing each with foreach Fatal error: Uncaught Error: Call to undefined function espresso_generate_events_page_list_table_sql() in /www/castandup_272/public/wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php:107 Stack trace: #0 /www/castandup_272/public/wp-content/plugins/event-espresso/includes/event-management/index.php(127): require_once() #1 /www/castandup_272/public/wp-includes/class-wp-hook.php(308): event_espresso_manage_events(”) #2 /www/castandup_272/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #3 /www/castandup_272/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/castandup_272/public/wp-admin/admin.php(259): do_action(‘event-espresso_…’) #5 {main} thrown in /www/castandup_272/public/wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php on line 107 |
Line 9 of the above file should be requiring the file with that function within it already:
Are you sure you haven’t included an additional |
|
The support post ‘EE3 PHP8.0 Fatal Error’ 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.