Critical Error when migrating
-
I have been trying to migrate from atomic blocks to Genesis blocks.
It keeps shutting down my site, giving the “There has been a critical error on this website” message on my site
And an error message on the migration tool.
Further investigating, it appears this happens anytime Genesis Blocks is activated, whether through the migration tool or manually.
How should i proceed?
-
@dreamyambitions Could you please try deactivating Atomic Blocks and activating Genesis Blocks. Do you get a critical error when you do this?
If so, could you please ensure that you’ve got the very latest version of Genesis Blocks from www.ads-software.com? You could try deleting it and reinstalling it. Failing all that, please try again with all other plugin deactivated –?perhaps there’s a conflict?
@lukecarbis
Same error occurred to me when I deploy change to my live site from staging site. It’s crushing my whole WordPress and live site. However, I can successfully install and activate it. After crush I had to go to recovery mode from WordPress e-mail link. Then, when I check my installed plugin; I can see Genesis Blocks paused with a message in the description:“This plugin failed to load properly and is paused during recovery mode.
An error of type E_COMPILE_ERROR was caused in line 26 of the file /home3/slippysl/public_html/wp-contnet/plugins/genesis-block/lib/BlockLoader/Module/php. Error message: Declaration of Genesis\Block\BlockLoader\Module::activate(array $context):Genesis\Blocks\BlockLoader\void must be compatible with genesis\Blocks\Interfaces\ModuleInterface::activate(array $context):Genesis\Blocks\Interfaces\void ”
My domain/WordPress PHP version 7.4, but my server PHP version shows 7.0 from cPanel. I can’t change my server PHP version. Is it causing the problem or something else? Please help.
@tussharctg Where did you get your copy of Genesis Blocks? From www.ads-software.com? Could you try uninstalling it and reinstalling the latest version, as it looks like it’s installed in the wrong directory.
@lukecarbis I’ve got the plugin from WordPress plugins (dashboard). I’ve already tried installing it 3-4 times. I even tried installing Atomic Blocks first and then migrating to Genesis Blocks from it. That way also doesn’t work. Could you please specify latest version of Genesis Block? (example: Version: 1.2.1). How can I install it in right directory?
Could you please elaborate?@tussharctg I wrote that it’s in the wrong directory because the error you pasted specified:
home3/slippysl/public_html/wp-contnet/plugins/genesis-block
When it should be:
home3/slippysl/public_html/<strong>wp-content</strong>/plugins/genesis-block<strong>s</strong>
.Version 1.2.1 is the latest and either PHP 7 or 7.4 should work fine.
It’s a very strange error that you’re receiving as it indicates a code problem that I haven’t seen elsewhere, and should be effecting everyone.
Could you please try the following?
Open the following file:
/home3/slippysl/public_html/wp-content/plugins/genesis-blocks/lib/BlockLoader/Module.php
In that file at the top (line 14) is a line that reads:
declare(strict_types=1);
Could you try deleting that?
Additionally, could you please paste your Site Info from Tools > Site Health in your WP Admin?
My problem was a PHP issue. I upgraded to PHP 7.3.27 and migrated properly
@lukecarbis I apologize for my mistake. It was actually ‘genesis-blocks’, not only ‘block’. I had to type the whole error message from screenshot because I forgot to copy it directly when the error appeared.
I’ve tried deleting the line [
declare(strict_types=1);
]. It also doesn’t work.I would like to remind you that the error happens when I go for deployment of my changes/customization from staging site to live site.
My site info (copied):
### wp-core ### version: 5.6.2 site_language: en_US user_language: en_US permalink: /%postname%/ https_status: true user_registration: 0 default_comment_status: open multisite: false user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home3/slippysl/public_html wordpress_size: 86.74 MB (90953358 bytes) uploads_path: /home3/slippysl/public_html/wp-content/uploads uploads_size: 146.98 KB (150512 bytes) themes_path: /home3/slippysl/public_html/wp-content/themes themes_size: 12.79 MB (13412736 bytes) plugins_path: /home3/slippysl/public_html/wp-content/plugins plugins_size: 115.09 MB (120682257 bytes) database_size: 5.78 MB (6062080 bytes) total_size: 220.55 MB (231260943 bytes) ### wp-dropins (2) ### db-error.php: true maintenance.php: true ### wp-active-theme ### name: Genesis Sample (genesis-sample) version: 3.4.0 author: StudioPress author_website: https://www.studiopress.com/ parent_theme: Genesis (genesis) theme_features: core-block-patterns, menus, post-thumbnails, title-tag, automatic-feed-links, body-open, genesis-inpost-layouts, genesis-archive-layouts, genesis-admin-menu, genesis-seo-settings-menu, genesis-import-export-menu, genesis-readme-menu, genesis-customizer-theme-settings, genesis-customizer-seo-settings, genesis-auto-updates, genesis-breadcrumbs, genesis-menus, genesis-structural-wraps, widgets, genesis-custom-logo, html5, genesis-accessibility, genesis-after-entry-widget-area, genesis-footer-widgets, custom-logo, editor-styles, editor-style, align-wide, responsive-embeds, custom-line-height, custom-units, editor-font-sizes, editor-color-palette theme_path: /home3/slippysl/public_html/wp-content/themes/genesis-sample ### wp-parent-theme ### name: Genesis (genesis) version: 3.3.3 author: StudioPress author_website: https://www.studiopress.com/ theme_path: /home3/slippysl/public_html/wp-content/themes/genesis ### wp-themes-inactive (4) ### Sinatra: version: 1.2.0, author: Sinatra Team Twenty Nineteen: version: 1.9, author: the WordPress team Twenty Twenty: version: 1.6, author: the WordPress team Twenty Twenty-One: version: 1.1, author: the WordPress team ### wp-mu-plugins (1) ### Endurance Page Cache: version: 2.0.6, author: Mike Hansen ### wp-plugins-active (19) ### Akismet Anti-Spam: version: 4.1.9, author: Automattic Bluehost: version: 2.5.4, author: Bluehost Creative Mail by Constant Contact: version: 1.3.3, author: Constant Contact Genesis Blocks: version: 1.2.1, author: StudioPress Genesis Custom Blocks: version: 1.1.0, author: Genesis Custom Blocks Genesis eNews Extended: version: 2.2.0, author: Brandon Kraft Genesis Simple Edits: version: 2.3.1, author: StudioPress Genesis Simple Hooks: version: 2.3.0, author: StudioPress Genesis Simple Share: version: 1.1.5, author: StudioPress Google Analytics for WordPress by MonsterInsights: version: 7.16.2, author: MonsterInsights Health Check & Troubleshooting: version: 1.4.5, author: The www.ads-software.com community Jetpack by WordPress.com: version: 9.5, author: Automattic OptinMonster: version: 2.2.0, author: OptinMonster Team PHP Compatibility Checker: version: 1.5.0, author: WP Engine Pretty Links: version: 3.2.1, author: Pretty Links Really Simple SSL: version: 4.0.9, author: Really Simple Plugins Simple Social Icons: version: 3.0.2, author: StudioPress UpdraftPlus - Backup/Restore: version: 1.16.47, author: UpdraftPlus.Com, DavidAnderson WPForms Lite: version: 1.6.5, author: WPForms ### wp-plugins-inactive (1) ### Hello Dolly: version: 1.7.2, author: Matt Mullenweg ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1650 imagemagick_version: ImageMagick 6.7.2-7 2017-03-22 Q16 https://www.imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: 14 GB imagick::RESOURCETYPE_DISK: -1 imagick::RESOURCETYPE_FILE: 12288 imagick::RESOURCETYPE_MAP: 48 MB imagick::RESOURCETYPE_MEMORY: 48 MB imagick::RESOURCETYPE_THREAD: not available gd_version: bundled (2.1.0 compatible) ghostscript_version: 8.71 ### wp-server ### server_architecture: Linux 4.14.146-225.ELK.el6.x86_64 x86_64 httpd_software: Apache php_version: 7.4.15 64bit php_sapi: cgi-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: 60 upload_max_size: 512M php_post_max_size: 516M curl_version: 7.75.0 OpenSSL/1.1.1j suhosin: false imagick_availability: true server-headers: date: Wed, 03 Mar 2021 19:08:28 GMT content-type: text/html; charset=UTF-8 expires: Wed, 11 Jan 1984 05:00:00 GMT cache-control: no-cache, must-revalidate, max-age=0 link: <https://slippysloppy.com/wp-json/>; rel="https://api.w.org/", <https://slippysloppy.com/wp-json/wp/v2/pages/24>; rel="alternate"; type="application/json", <https://slippysloppy.com/>; rel=shortlink vary: Accept-Encoding host-header: c2hhcmVkLmJsdWVob3N0LmNvbQ== x-endurance-cache-level: 2 cf-cache-status: DYNAMIC cf-request-id: 089b16e64300002f49a40dc000000001 expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" server: cloudflare cf-ray: 62a527506ea62f49-DFW content-encoding: gzip htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.6.41-84.1 client_version: mysqlnd 7.4.15 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home3/slippysl/public_html/wp-content WP_PLUGIN_DIR: /home3/slippysl/public_html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### jetpack ### site_id: 189431844 ssl_cert: No time_diff: undefined version_option: 9.5:1614730106 old_version: 9.4:1612348704 public: Public master_user: #1 tussharctg current_user: #1 tussharctg tokens_set: Blog User blog_token: miXAx4kBmj0DrzXJdswU06SeI@7A*!ca user_token: ^sRaXi9fVUQ7qF1UDIzcPBRJah@uROVi version: 9.5 jp_plugin_dir: /home3/slippysl/public_html/wp-content/plugins/jetpack/ plan: free protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false} full_sync: {"started":"Tue, 16 Feb 2021 18:50:57 +0000","finished":"Tue, 16 Feb 2021 18:51:13 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true},"users":{"total":"1","sent":1,"finished":true,"last_sent":"1"},"network_options":{"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[1],"network_options":true}} sync_size: undefined sync_lag: 0 seconds full_sync_size: undefined full_sync_lag: 0 seconds idc_urls: {"home":"https:\/\/slippysloppy.com\/","siteurl":"https:\/\/slippysloppy.com\/","WP_HOME":"","WP_SITEURL":""} idc_error_option: false idc_optin: true cxn_tests: All Pass. ### wpforms ### version: 1.6.5 lite: Feb 3, 2021 @ 2:31am upload_dir: Writable db_tables: PH1_wpforms_tasks_meta total_forms: undefined total_submissions: undefined ### genesis ### update: 1 blog_title: text site_layout: content-sidebar comments_posts: 1 comments_pages: 1 entry_meta_before_content: [post_date] by [post_author_posts_link] [post_comments] [post_edit] entry_meta_after_content: [post_categories] [post_tags] content_archive: full image_size: genesis-singular-images image_alignment: aligncenter posts_nav: numeric footer_text: Copyright ?2021 — silppysloppy.com | All rights reserved. theme_version: 3.3.3 db_version: 3301 upgrade: 1 blog_cat_num: 6
@tussharctg Could you expand on how you trigger the error, please? Does it happen during regular use? During migration? During deployment?
If you could provide steps to reproduce the problem that would better help me understand what’s happening.
@lukecarbis The error happens during DEPLOYMENT of changes or edits I make to live WordPress using STAGING WordPress.
Step 1: First I install the plugin in my live/main WordPress.
Step 2: Then I update my staging WordPress from live WordPress through my hosting plugin. That way I get the Genesis Blocks plugin in my STAGING WordPress.
Step 3: Then I edit or make change to my site in STAGING WordPress.
Step 4: When I go for deployment of those editing or changes to my live WordPress through (again) my hosting plugin in my STAGING WordPress, that time the error happens to my both WordPress site before finishing the whole deployment process (it can’t finish).
I hope you understand.
Hi @tussharctg – I’ve tried deploying from Staging to Prod in my WP Engine environment, and it worked perfectly. This seems like a problem very specific to your setup. Could you maybe try using a different deployment method and see if that changes anything? Additionally, could you try without any additional plugins enabled?
-
This reply was modified 3 years, 11 months ago by
Luke Carbis.
Hi @lukecarbis Primarily, I’ve discovered that this issue was insisting for other plugins. There might be confliction of Genesis Blocks with other plugins. After deactivating 12 plugins, I was able to successfully deploy my changes to production site. I don’t know which plugin is causing the problem. Hopefully I’ll be able to narrow it down.
I’ll try to update you about it soon.List of deactivated plugins: ? Creative Mail by Constant Contact ? Genesis Custom Blocks ? Genesis Simple Edits ? Google Analytics for WordPress by MonsterInsights ? Health Check & Troubleshooting ? Hello Dolly ? Jetpack by WordPress.com ? OptinMonster ? Pretty Links ? Simple Social Icons ? UpdraftPlus - Backup/Restore ? WPForms Lite
Hi @lukecarbis Something is going on with this plugin. Now again I’ve discovered that; Genesis Blocks is running smoothly with all of these plugin activated also. Which is a good news. Although I can see Genesis Blocks has gotten an update 5 days ago. I don’t know if the error will appear in future or not. I hope for not. If appears again, I’ll seek help through this thread, if the thread remains open.
Thanks for your patient support.
-
This reply was modified 3 years, 11 months ago by
- The topic ‘Critical Error when migrating’ is closed to new replies.