Skip Navigation

[Waiting for user feedback] 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 5 replies, has 1 voice.

Last updated by Minesh 23 hours, 31 minutes 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.