Skip Navigation

[Resolved] Error in saving Visual Editor Cell

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 4 replies, has 3 voices.

Last updated by Minesh 1 year, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2644187

Our website still uses PHP 7.4. Several attempts to use PHP 8.0 and above resulted in PHP errrors.

The error happens when trying to save a Visual Editor Cell. The webpage just keeps hanging and does not get saved. This happens with every Visual Editor Cell on any webpage.

In the file debug.log the following error is registered when trying to use PHP 8:

[14-Sep-2023 20:43:56 UTC] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /data/sites/web/majinhuisorg/www/wp-content/plugins/layouts/classes/wpddl.class.php:1334
Stack trace:
#0 /data/sites/web/majinhuisorg/www/wp-content/plugins/layouts/classes/wpddl.class.php(1334): method_exists(NULL, 'get_post_slug')
#1 /data/sites/web/majinhuisorg/www/wp-content/plugins/layouts/classes-auto/wpddl.layouts-editor.class.php(373): WPDD_Layouts->get_where_used(2732, false, true, 200, Array, 'ids', 'any', true)
#2 /data/sites/web/majinhuisorg/www/wp-content/plugins/layouts/classes-auto/wpddl.layouts-editor.class.php(405): WPDD_Layouts_Editor->clear_page_caches(2732)
#3 /data/sites/web/majinhuisorg/www/wp-includes/class-wp-hook.php(310): WPDD_Layouts_Editor->settings_save_callback(Array, Object(WP_Post), '{"type":"fluid"...')
#4 /data/sites/web/majinhuisorg/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#5 /data/sites/web/majinhuisorg/www/wp-content/plugins/layouts/classes-auto/wpddl.layouts-editor.class.php(104): apply_filters('ddl_layout_sett...', Array, Object(WP_Post), '{"type":"fluid"...')
#6 /data/sites/web/majinhuisorg/www/wp-content/plugins/layouts/inc/gui/editor/editor.php(466): WPDD_Layouts_Editor->save_layout_data(Array)
#7 /data/sites/web/majinhuisorg/www/wp-includes/class-wp-hook.php(310): WPDD_GUI_EDITOR->save_layout_data_callback('')
#8 /data/sites/web/majinhuisorg/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#9 /data/sites/web/majinhuisorg/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /data/sites/web/majinhuisorg/www/wp-admin/admin-ajax.php(188): do_action('wp_ajax_save_la...')

#2644267

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

There are few things I would like to discuss here.

We already made our plugins compatible with PHP 8.0.x, here is the blog post for the same.
- https://toolset.com/2022/05/toolset-1-6-3-full-compatibility-with-php-8/

In addition to that, I'm not sure why you are using Layouts plugin as Toolset Layouts plugin is added to maintenance mode and we are not going to add any new feature to it, only bug fixes and compatibility updates.

Have you created large number of Layout templates for your site? If no, I would certainly recommend you to switch to the Toolset Blocks.

However - In order to reproduce the issue with a clean install, Can you suggest the steps I will have to follow that should help to me reproduce the issue and if after following the steps you shared I'm able to discover the same issue I would be happy to escalate it.

#2645095

We have 5 templates for post types and 11 templates for single posts and pages. Is there a manual online to do the transition from Toolset Layouts to Toolset Blocks?

#2645355

Hi,

Minesh is on holiday today which is why I'm following up on this ticket.

There is no specific manual or guide available for switching from Layouts to Blocks. However, the transition and the template redesign should be a fairly straightforward process.

This guide on working with the block templates should give you a good insight:
https://toolset.com/lesson-placement/lesson-placements-1621067-1621091/

I hope this helps and please let me know if you need further assistance.

regards,
Waqar

#2645515

Minesh
Supporter

Languages: English (English )

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

Can you please try to follow the Doc shared by Waqar with his previous reply and check if that help you to resolve your issue:
- https://toolset.com/forums/topic/error-in-saving-visual-editor-cell/#post-2645355