PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function

[ad_1]

I have been trialing the free version:

PublishPress Future 4.0.1
WordPress 6.6.2
PHP 8.1
Divi theme version: 4.27.2

This morning my website (all pages) failed to load. The document’s html head and body rendered as far as the main content area
</header> <div id=”et-main-area”> <div id=”main-content”>
then stopped. So all that was visible was the unformatted page header.

I traced it back to PublishPress Future through error logs. I disabled the plugin and the website worked again.

Error log said:


PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function PublishPress\Future\Modules\Workflows\Controllers\WorkflowsList::addWorkflow...

Message

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function PublishPress\Future\Modules\Workflows\Controllers\WorkflowsList::addWorkflowStatusToTitle(), 1 passed in /wordpress/core/6.6.2/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /srv/htdocs/wp-content/plugins/post-expirator/src/Modules/Workflows/Controllers/WorkflowsList.php:336 Stack trace: #0 /wordpress/core/6.6.2/wp-includes/class-wp-hook.php(324): PublishPress\Future\Modules\Workflows\Controllers\WorkflowsList->addWorkflowStatusToTitle('Signature pedag...') #1 /wordpress/core/6.6.2/wp-includes/plugin.php(205): WP_Hook->apply_filters('Signature pedag...', Array) #2 /srv/htdocs/wp-content/plugins/breadcrumbs-divi-module/divi-breadcrumbs.php(114): apply_filters('the_title', 'Signature pedag...') #3 /srv/htdocs/wp-content/plugins/breadcrumbs-divi-module/includes/modules/DiviBreadcrumbs/DiviBreadcrumbs.php(187): lwp_get_hansel_and_gretel_breadcrumbs('Home', '', '5', 'off', 'https://auahaak...') #4 /srv/htdocs/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): LWP_DiviBreadcrumbs->render(Array, '', 'lwp_divi_breadc...', '', '', '', '', '') #5 /wordpress/core/6.6.2/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, '', 'lwp_divi_breadc...') #6 [internal function]: do_shortcode_tag(Array) #7 /wordpress/core/6.6.2/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(et_pb_...', 'do_shortcode_ta...', '[lwp_divi_bread...') #8 /srv/htdocs/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3784): do_shortcode('[lwp_divi_bread...') #9 /srv/htdocs/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Column->render(Array, '[lwp_divi_bread...', 'et_pb_column', '', '', '', '', '') #10 /wordpress/core/6.6.2/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, '[lwp_divi_bread...', 'et_pb_column') #11 [internal function]: do_shortcode_tag(Array) #12 /wordpress/core/6.6.2/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(bellow...', 'do_shortcode_ta...', '[et_pb_column t...') #13 /srv/htdocs/wp-content/themes/Divi/includes/builder/main-structure-elements.php(2274): do_shortcode('[et_pb_column t...') #14 /srv/htdocs/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Row->render(Array, '[et_pb_column t...', 'et_pb_row', '', '', '', '', '') #15 /wordpress/core/6.6.2/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, '[et_pb_column t...', 'et_pb_row') #16 [internal function]: do_shortcode_tag(Array) #17 /wordpress/core/6.6.2/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(bellow...', 'do_shortcode_ta...', '[et_pb_row colu...') #18 /srv/htdocs/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1606): do_shortcode('[et_pb_row colu...') #19 /srv/htdocs/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Section->render(Array, '[et_pb_row colu...', 'et_pb_section', '', '', '', '', '') #20 /wordpress/core/6.6.2/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, '[et_pb_row colu...', 'et_pb_section') #21 [internal function]: do_shortcode_tag(Array) #22 /wordpress/core/6.6.2/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(bellow...', 'do_shortcode_ta...', '<div class="et-...') #23 /wordpress/core/6.6.2/wp-includes/class-wp-hook.php(324): do_shortcode('<div class="et-...') #24 /wordpress/core/6.6.2/wp-includes/plugin.php(205): WP_Hook->apply_filters('<div class="et-...', Array) #25 /srv/htdocs/wp-content/themes/Divi/includes/builder/core.php(46): apply_filters('et_builder_rend...', '[et_pb_section ...') #26 /srv/htdocs/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(347): et_builder_render_layout('[et_pb_section ...') #27 /srv/htdocs/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(506): et_theme_builder_frontend_render_layout('et_body_layout', 44898) #28 /srv/htdocs/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-body-template.php(10): et_theme_builder_frontend_render_body(44898, true, 44983) #29 /wordpress/core/6.6.2/wp-includes/template-loader.php(106): include('/srv/htdocs/wp-...') #30 /wordpress/core/6.6.2/wp-blog-header.php(19): require_once('/wordpress/core...') #31 /wordpress/core/6.6.2/index.php(17): require('/wordpress/core...') #32 {main} thrown in /srv/htdocs/wp-content/plugins/post-expirator/src/Modules/Workflows/Controllers/WorkflowsList.php on line 336

Timestamp

2024-10-21T21:14:33.000Z

Kind

plugins

Name

post-expirator

File

/srv/htdocs/wp-content/plugins/post-expirator/src/Modules/Workflows/Controllers/WorkflowsList.php

Line

336

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer