Skip Navigation

[Resolved] PHP fatal error caused by Toolset Layouts

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2651929

Hi there,

A client of mine was editing a page in the WordPress Dashboard on hidden link. The page was using the Classic Editor. They added content, saved it a few times, and all of the sudden, the page converted itself to the Block Editor. The user went to the three dots in the upper right-hand corner and clicked "switch to classic editor," but nothing happened.

Around the same time, I received an email notification from WordPress with the following text:

Subject: [Site Name] Your Site is Experiencing a Technical Issue

Howdy!

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, Toolset Layouts.

First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

hidden link

To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.3.1
Active theme: Lifetime Arts (version 1.0.3)
Current plugin: Toolset Layouts (version 2.6.14)
PHP version 8.1.24

Error Details
=============
An error of type E_ERROR was caused in line 1334 of the file /home2/lifetiu1/public_html/wp-content/plugins/layouts/classes/wpddl.class.php. Error message: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home2/lifetiu1/public_html/wp-content/plugins/layouts/classes/wpddl.class.php:1334
Stack trace:
#0 /home2/lifetiu1/public_html/wp-content/plugins/layouts/classes/wpddl.class.php(1334): method_exists(NULL, 'get_post_slug')
#1 /home2/lifetiu1/public_html/wp-content/plugins/layouts/inc/gui/editor/editor.php(975): WPDD_Layouts->get_where_used('22562', false, true, 5, Array, 'default', Array, false, 0)
#2 /home2/lifetiu1/public_html/wp-content/plugins/layouts/inc/gui/editor/editor.php(1154): WPDD_GUI_EDITOR->get_where_used_x_amount_of_posts('22562', true, 5)
#3 /home2/lifetiu1/public_html/wp-content/plugins/layouts/inc/gui/editor/editor.php(238): WPDD_GUI_EDITOR->get_where_used_lists('22562')
#4 /home2/lifetiu1/public_html/wp-includes/class-wp-hook.php(310): WPDD_GUI_EDITOR->init_editor('')
#5 /home2/lifetiu1/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#6 /home2/lifetiu1/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /home2/lifetiu1/public_html/wp-admin/admin.php(175): do_action('admin_init')
#8 {main}
thrown

-----

We're hoping this bug can be addressed and that we can switch back to the classic editor when editing a page.

Thank you!

Saul

#2652135

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can change with what mode you want to edit your pages. Here is the post type edit page for post type "page" and you can set what editor you want to use:
- hidden link

Regarding the Layouts, Toolset Layouts plugin is in maintenance mode. We suggest instead of using Layouts plugin, you should use the Toolset Blocks/Views plugin to build the content template for your single post.

I do not see any Layouts with ID 22562 so I would suggest for future that you should convert those Layouts to content templates and deactivate and delete the Layouts plugin (of course after full backup) so it should be available when required.