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
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?
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.
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.
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.
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
Change that to
That should resolve the problem.