[Gelöst] Fatal Error on theme deactivation with site that is using Views
This support ticket is created vor 7 Jahren. There's a good chance that you are reading advice that it now obsolete.
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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
When I tried to update the main theme I first renamed the old theme folder by FTP. Then I uploaded a new zip.
At this time I had WordPress set for using a child theme of this theme. In the child theme I am loading views via php.
As soon as the main theme is deactivated I get a fatal error and can't even access the admin. The error message is below and it's coming from Views. Once I renamed the Views plugin folder via FTP to deactivate it the site loads fine.
Fatal error: Uncaught Error: Call to a member function get() on boolean in /dom24436/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset.layouts-themes-factory.class.php:31 Stack trace: #0 /dom24436/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset.layouts-themes-factory.class.php(19): Toolset_Compatibility_Theme_Handler_Factory->set_up_active_theme() #1 /dom24436/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset.compatibility.loader.class.php(83): Toolset_Compatibility_Theme_Handler_Factory->__construct() #2 /dom24436/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset.compatibility.loader.class.php(33): Toolset_Compatibility_Loader->run_theme_handler_factory() #3 /dom24436/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset.compatibility.loader.class.php(14): Toolset_Compatibility_Loader->__construct(Obje in /dom24436/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-loader/toolset.layouts-themes-factory.class.php on line 31
This is a bad response. I explained exactly what happened. It wasn't because of things missing in the style sheet otherwise it would occur all the time.
It happened when I deactivated the main theme that the child theme was based on. The error was thrown by Views. Therefore there is a bug in Views that needs to be fixed.
It shouldn't crash your entire WordPress where you can't even access the WordPress admin just because of a style sheet issue.
I'm reporting a severe bug in Views that should be attended to.
Please fix this issue, no issue with a missing style sheet should cause Views to crash your entire WordPress install where you can't even deactivate Views unless you go in by FTP and rename the plugin folder.