I've changed an already existing sites' domain, and now it's returning a blank page on the frontend, with the following PHP error msg (in debug mode):
Fatal error: Uncaught Error: Call to a member function set_post_id() on null in /home/alchemy/public_html/wp-content/plugins/layouts/classes/wpddl.class.php:1222 Stack trace: #0 /home/alchemy/public_html/wp-content/plugins/layouts/classes-auto/wpddl.layouts.render.manager.class.php(595): WPDD_Layouts::get_layout_from_id(15) #1 /home/alchemy/public_html/wp-content/plugins/layouts/classes-auto/wpddl.layouts.render.manager.class.php(547): WPDD_Layouts_RenderManager->get_rendered_layout(15) #2 /home/alchemy/public_html/wp-content/plugins/layouts/classes/wpddl.class.php(1450): WPDD_Layouts_RenderManager->get_layout_content_for_render('', Array) #3 /home/alchemy/public_html/wp-content/plugins/layouts/inc/api/ddl-theme-api.php(47): WPDD_Layouts->get_layout_content_for_render('', Array) #4 /home/alchemy/public_html/wp-content/plugins/layouts/inc/api/ddl-theme-api.php(13): get_the_ddlayout('', Array) #5 /home/alchemy/public_html/wp-content/themes/toolset-starter/page.php(4): the_ddlayout() #6 /home/alchemy/public_html/wp-includes/ in /home/alchemy/public_html/wp-content/plugins/layouts/classes/wpddl.class.php on line 1222
What could it be?
Hello,
There might be some broken data while you change the existing sites' domain.
Please try these:
1) If you are using some cache plugins, try to clear your website cache and test again.
2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again
2) Follow our document to migrate your website to new domain name:
https://toolset.com/faq/how-do-i-migrate-a-wordpress-site-from-one-domain-to-the-other/
Hi Luo,
I've tried what you suggested, but since the error persisted, I've ended up restoring a previous database backup and it solved the issue.
thanks!