Skip Navigation

[Resolved] Uncaught Error: Cannot access protected property WPDD_layout_row::$mode in

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nigel 6 months, 2 weeks ago.

Assisted by: Nigel.

Author
Posts
#2697356

The website has stopped working. We have received the following error:

Uncaught Error: Cannot access protected property WPDD_layout_row::$mode in /wp-content/plugins/layouts-twentysixteen/application/setup.php:216
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): WPDDL_Integration_Setup->row_count(Object(WPDD_layout_row), Object(WPDD_BootstrapThree_render))
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#2 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(595): do_action('ddl-row_start_c...', Object(WPDD_layout_row), Object(WPDD_BootstrapThree_render))
#4 /wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php(91): WPDD_layout_row->frontend_render(Object(WPDD_BootstrapThree_r in /wp-content/plugins/layouts-twentysixteen/application/setup.php on line 216

Link to a page where the issue can be seen: yourlocalguides.net

#2697550

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I'm a little confused by the error message, because it says the errors originates in a plugin "layouts-twentysixteen".

I don't know what that is.

It seems that it is not simply the normal Layouts plugin in a renamed folder, because the path application/setup.php doesn't exist for the current version of Layouts.

Could you please clarify what the layouts-twentysixteen plugin is?

#2697556
Captura de pantalla 2024-05-14 a les 10.11.18.png

This is a plugin to use layouts with the twentysixteen theme. The website was made years ago. I guess when doing an update it stopped working.

The thing is that the home page if you are not logged in looks blank. But if you are logged in you can see the content.

I have tried deactivating the "layouts-twentysixteen" plugin but it still does the same.

#2697576

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, I think it would help if we could take a copy of the website to debug locally. Would that be possible?

Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

#2697850

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I've had problems trying to take a copy of your site, but I've looked into the code and can see the source of the problem.

The fix may be very simple, but I'm running it past the developers to confirm that it is okay.

I'll update you when I hear back from them.

#2698120

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, it is a simple thing, a very minor change is needed with the Layouts plugin.

We'll include it in the next update, but that may not be for a while, so in the meantime you can make a small edit to the plugin file.

Edit the file wp-content/plugins/layouts/classes-auto/wpddl.layout.class.php

Line 529 should be

	protected $mode;

Change that to

	public $mode;

That should resolve the problem.