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