Error Details
=============
An error of type E_ERROR was caused in line 980 of the file C:\webs\cehd\wp-content\plugins\layouts\inc\gui\editor\editor.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in C:\webs\cehd\wp-content\plugins\layouts\inc\gui\editor\editor.php:980
Stack trace:
#0 C:\webs\cehd\wp-content\plugins\layouts\inc\gui\editor\editor.php(1154): WPDD_GUI_EDITOR->get_where_used_x_amount_of_posts('37111', true, 5)
#1 C:\webs\cehd\wp-content\plugins\layouts\inc\gui\editor\editor.php(238): WPDD_GUI_EDITOR->get_where_used_lists('37111')
#2 C:\webs\cehd\wp-includes\class-wp-hook.php(341): WPDD_GUI_EDITOR->init_editor('')
#3 C:\webs\cehd\wp-includes\class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#4 C:\webs\cehd\wp-includes\plugin.php(522): WP_Hook->do_action(Array)
#5 C:\webs\cehd\wp-admin\admin.php(180): do_action('admin_init')
#6 {main}
thrown
Hello. Thank you for contacting the Toolset support.
Toolset Layouts plugin is in maintenance mode. If you have not many layouts build then we suggest instead of using Layouts plugin, you should use the Toolset Blocks/Views plugin to build the content template for your single post. But before performing any action:
*** Please make a FULL BACKUP of your database and website.***
If you still want to use the Layouts plugin and do not want to migreate to Toolset Views/Blocks then I will require debug information.
We were running version 8.2.30, we just updated to version 8.2.31 and the problem has persisted. If we create a new post we don't run into the problem, but we are duplicating an existing post to edit the new one and that is when we see the problem.
How are you duplicating the post. Are you using any "duplicate post" plugin in order to duplicate the post?
I see you are using the "Duplicate Page" page plguin. Are you using that in order to duplicate the post?
Are do you mean that you are duplicating the post using the "Duplicate page" plugin and then when you try to edit that newly duplicate post and you see fatal error?
Yes we are duplicating the post using the Duplicate Page plug-in. Yes, after duplicating page with the Duplicate Page when editing the new Post the error happens.
It seems the post is not duplicated with all the postmeta that should be required.
Can you please tell me what is your original post, give me link of that and I will try to duplicate it and try to match the post with original post's postmeta and duplicated post's postmeta.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.