Skip Navigation

[Resolved] Uncaught TypeError: Argument 2 passed to OTGS\Toolset\Views\Controllers\Admin\Co

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Ryan 3 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2232675

Today we noticed that we're getting the following fatal error anytime we try to create a new post (or any other post type). As a result, we are completely unable to create any new content. All Toolset software is up to date.

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-includes/post.php on line 7358

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-includes/post.php on line 7359

Notice: Trying to get property 'ID' of non-object in /home/ncstage/public_html/wp-includes/post.php on line 7363

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-includes/post.php on line 7605

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-includes/theme.php on line 3421

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-content/plugins/toolset-blocks/backend/Controllers/Admin/ContentTemplate.php on line 78

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-includes/theme.php on line 3645

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-includes/post.php on line 5148

Notice: Trying to get property 'ID' of non-object in /home/ncstage/public_html/wp-includes/post.php on line 5148

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-includes/post.php on line 4457

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php on line 639

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields-post.php on line 687

Notice: Trying to get property 'post_status' of non-object in /home/ncstage/public_html/wp-content/plugins/toolset-blocks/backend/Services/ViewParsingService.php on line 158

Notice: Trying to get property 'post_type' of non-object in /home/ncstage/public_html/wp-content/plugins/toolset-blocks/backend/Services/ViewParsingService.php on line 161

Notice: Trying to get property 'post_content' of non-object in /home/ncstage/public_html/wp-content/plugins/toolset-blocks/backend/Services/ViewParsingService.php on line 166

Notice: Trying to get property 'post_content' of non-object in /home/ncstage/public_html/wp-content/plugins/toolset-blocks/backend/Services/ViewParsingService.php on line 107

Fatal error: Uncaught TypeError: Argument 2 passed to OTGS\Toolset\Views\Controllers\Admin\ContentTemplate::set_default_content_template_meta() must be an instance of WP_Post, null given, called in /home/ncstage/public_html/wp-includes/class-wp-hook.php on line 303 and defined in /home/ncstage/public_html/wp-content/plugins/toolset-blocks/backend/Controllers/Admin/ContentTemplate.php:138 Stack trace: #0 /home/ncstage/public_html/wp-includes/class-wp-hook.php(303): OTGS\Toolset\Views\Controllers\Admin\ContentTemplate->set_default_content_template_meta(0, NULL, false) #1 /home/ncstage/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(false, Array) #2 /home/ncstage/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /home/ncstage/public_html/wp-includes/post.php(4479): do_action('wp_insert_post', 0, NULL, false) #4 /home/ncstage/public_html/wp-admin/includes/post.php(694): wp_insert_post(Array, false, false) #5 /home/ncstage/public_html/wp-admin/post-new.php(66): get_default_post_to_edi in /home/ncstage/public_html/wp-content/plugins/toolset-blocks/backend/Controllers/Admin/ContentTemplate.php on line 138
There has been a critical error on this website. Please check your site admin email inbox for instructions.

Learn more about troubleshooting WordPress.

#2232867

Hello,

I have tried the credentials you provided above, but get below error message:
Error: The password you entered for the username toolset is incorrect

Please check it, make sure it is a valid admin account

#2233441

My issue is resolved now. Thank you!