Skip Navigation

[Resolved] Error being reported when using 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 14 replies, has 1 voice.

Last updated by Minesh 1 week, 1 day ago.

Assisted by: Minesh.

Author
Posts
#2859950

Joe

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

#2859956

Minesh
Supporter

Languages: English (English )

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

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.

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#2859966

Joe

Here is the debug info

#2860033

Minesh
Supporter

Languages: English (English )

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

I just wanted to know that the fatal error you experince does that arise after you update the PHP version?

#2860498

Joe

What version should be installed? Currently the site has php 8..2 installed.

#2860604

Minesh
Supporter

Languages: English (English )

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

I would like to know did you updated the PHP version recently? if yes:
- what was the PHP version before you were using.

#2861616

Joe

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.

Thanks

#2861684

Minesh
Supporter

Languages: English (English )

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

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?

#2861976

Joe

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.

Thanks

#2861980

Minesh
Supporter

Languages: English (English )

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

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.

#2862000

Joe

Do I need to make a backup for you to proceed? I do not have the back ready as I am not the system administrator for the network.

Here is the link to the original post:
hidden link

When this post is duplicated, the duplicated post throws the error.

Thanks

#2862270

Minesh
Supporter

Languages: English (English )

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

Well - I need admin access details.

I have set the next reply to private which means only you and I have access to it.

#2862431

Minesh
Supporter

Languages: English (English )

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

Thank you for sharing admin access details but when I try to login using the shared admin access, unfortunately it does not work.

Can you please send me working admin access details.

I have set the next reply to private which means only you and I have access to it.

#2862433

Minesh
Supporter

Languages: English (English )

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

As I understand - you try to duplicate the post/page using the "Dupliate This" link given with the every post in backend admin - is that correct?

#2862435

Minesh
Supporter

Languages: English (English )

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

I just duplicated the post you mentioned:
- hidden link

and I can see it does display

in backend:
- hidden link

and frontend:
- hidden link