Errors and blocks missing after migration to live site
-
Hey all, I have a site that I have been building using WordPress, Create Block Theme, and WooCommerce.
WP: v6.8.3
WC: v9.8.5
CBT: v2.7.0
Everything is working fine on the dev site and when I migrate the site everything works normal for a period of time, but soon after (usually overnight) I start getting an error (shown below) when I try to edit pages, and additionally certain blocks don’t display on the homepage.Here is the email that I get from WordPress:
Howdy!
WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, WooCommerce.
First, visit your website (https://rebeccabrand.org/) and check for any visible issues. Next, visit the page where the error was caught (https://rebeccabrand.org/wp-admin/post.php?post=11&action=edit) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
https://rebeccabrand.org/wp-login.php?action=enter_recovery_mode&rm_token=U8QiNee9NBM5O3Nz9950ve&rm_key=xeGGU3KYdcJlnkjup8CTzz
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.8.3
Active theme: Rebecca Brand Theme (version 1.03)
Current plugin: WooCommerce (version 9.8.5)
PHP version 8.3.24
Error Details
=============
An error of type E_ERROR was caused in line 224 of the file /home/selahchu/rebeccabrand.org/wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php. Error message: Uncaught ValueError: Path cannot be empty in /home/selahchu/rebeccabrand.org/wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php:224
Stack trace:
#0 /home/selahchu/rebeccabrand.org/wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php(224): file_get_contents()
#1 /home/selahchu/rebeccabrand.org/wp-content/plugins/woocommerce/src/Blocks/BlockTemplatesController.php(372): Automattic\WooCommerce\Blocks\Utils\BlockTemplateUtils::build_template_result_from_file()
#2 /home/selahchu/rebeccabrand.org/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTemplatesController->add_block_templates()
#3 /home/selahchu/rebeccabrand.org/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#4 /home/selahchu/rebeccabrand.org/wp-includes/block-template-utils.php(1253): apply_filters()
#5 /home/selahchu/rebeccabrand.org/wp-includes/blocks/template-part.php(238): get_block_templates()
#6 /home/selahchu/rebeccabrand.org/wp-includes/blocks/template-part.php(284): build_template_part_block_instance_variations()
#7 /home/selahchu/rebeccabrand.org/wp-includes/class-wp-block-type.php(604): build_template_part_block_variations()
#8 /home/selahchu/rebeccabrand.org/wp-includes/class-wp-block-type.php(366): WP_Block_Type->get_variations()
#9 /home/selahchu/rebeccabrand.org/wp-admin/includes/post.php(2343): WP_Block_Type->__get()
#10 /home/selahchu/rebeccabrand.org/wp-admin/edit-form-blocks.php(147): get_block_editor_server_block_settings()
#11 /home/selahchu/rebeccabrand.org/wp-admin/post.php(187): require('/home/selahchu/...')
#12 {main}
thrownAdditional info
- Before I migrate the site I publish the theme and disabled Create Block Theme.
- I have tried clearing transients, which I initially thought had fixed the issue, but it came back and when I tried to clear them again the issue still persisted.
Any help would be greatly appreciated!
The page I need help with: [log in to see the link]
The topic ‘Errors and blocks missing after migration to live site’ is closed to new replies.