Fatal Error
-
Hi,
can you elaborate a little bit please?
Which version of SEOPress Free, SEOPress PRO, MainWP Dashboard and MainWP Child do you have?
Can you enable WP DEBUG to see the error please?
https://www.seopress.org/support/guides/wp_debug-enable-error-logging-in-wordpress/
Thx
Hi Benjamin,
Not to hijack the thread, but I also get a fatal error (wordpress default error page)
This is the report email I get:
Error Details ============= An error of type E_ERROR was caused in line 212 of the file /wp-content/plugins/seopress-for-mainwp/inc/class-main.php. Error message: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /wp-content/plugins/seopress-for-mainwp/inc/class-main.php:212 Stack trace: #0 /wp-content/plugins/seopress-for-mainwp/inc/class-main.php(212): array_keys() #1 /wp-includes/class-wp-hook.php(307): SEOPress\MainWP\Main->remove_mainwp_post_types() #2 /wp-includes/plugin.php(191): WP_Hook->apply_filters() #3 /wp-content/plugins/wp-seopress/src/Services/WordPressData.php(41): apply_filters() #4 /wp-content/plugins/wp-seopress/src/Actions/Admin/ManageColumn.php(41): SEOPress\Services\WordPressData->getPostTypes() #5 /wp-includes/class-wp-hook.php(307): SEOPress\Actions\Admin\ManageColumn->setup() #6 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /wp-includes/plugin.php(476): WP_Hook->do_action() #8 /wp-settings.php(598): do_action() #9 /wp-config.php(78): require_once('...') #10 /wp-load.php(50): require_once('...') #11 /wp-admin/admin.php(34): require_once('...') #12 {main} thrown
I am running PHP 8.0.23.
Does that help?
Kristof@krikke can you try to open this file
/wp-content/plugins/seopress-for-mainwp/inc/class-main.php
And add this line please:
if (!is_array($default_pt)) { return; }
Just before this one:
$default_pt_keys = array_keys( $default_pt );
Then go to SEOPress for MainWP settings, Titles and metas tab, and load some settings from a child site.
Go to the Post types tab, do you see all the post types registered for your site?Please let know if it works,
Thx-
This reply was modified 2 years, 5 months ago by
Benjamin Denis.
Hi Benjamin
Thanks for helping me out!
After inserting the code in the place like you described, unfortunately still the same issue. with what I believe to be the same stack trace:
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /wp-content/plugins/seopress-for-mainwp/inc/class-main.php:214 Stack trace: #0 /wp-content/plugins/seopress-for-mainwp/inc/class-main.php(214): array_keys() #1 /wp-includes/class-wp-hook.php(307): SEOPress\MainWP\Main->remove_mainwp_post_types() #2 /wp-includes/plugin.php(191): WP_Hook->apply_filters() #3 /wp-content/plugins/wp-seopress/src/Services/WordPressData.php(41): apply_filters() #4 /wp-content/plugins/wp-seopress/src/Actions/Admin/ManageColumn.php(41): SEOPress\Services\WordPressData->getPostTypes() #5 /wp-includes/class-wp-hook.php(307): SEOPress\Actions\Admin\ManageColumn->setup() #6 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /wp-includes/plugin.php(476): WP_Hook->do_action() #8 /wp-settings.php(598): do_action() #9 /wp-config.php(81): require_once('...') #10 /wp-load.php(50): require_once('...') #11 /wp-admin/admin.php(34): require_once('...') #12 {main} thrown in /wp-content/plugins/seopress-for-mainwp/inc/class-main.php on line 214
Can you send us an email to contact[at]seopress[dot]org with this error please?
Thx
Solved by mail. The next update will add additional checks to prevent this error.
-
This reply was modified 2 years, 5 months ago by
- The topic ‘Fatal Error’ is closed to new replies.