- This topic has 3 replies, 3 voices, and was last updated 2 years ago by .
- The topic ‘Genesis Blocks – Fatal Error’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Tagged: Genesis Blocks
Morning...I have not as yet migrated from Atomic Blocks to Genesis Blocks but the latter plugin has been installed.
However, about an hour ago I was notified by WordPress of a potentially fatal error with this plugin, details below
An error of type E_COMPILE_ERROR was caused in line 26 of the file /home4/golfinh9/public_html/wp-content/plugins/genesis-blocks/lib/BlockLoader/Module.php. Error message: Declaration of Genesis\Blocks\BlockLoader\Module::activate(array $context): Genesis\Blocks\BlockLoader\void must be compatible with Genesis\Blocks\Interfaces\ModuleInterface::activate(array $context): Genesis\Blocks\Interfaces\void
At the time I was attempting to clone from production to staging within Bluehost. When I deactivated this plugin everything worked OK.
Thus my question is...is this a known problem with the new Genesis Blocks plugin or is this something I need to go back to BlueHost with...as until resolved I will not be migrating from Atomic to Genesis and will leave the latter de-activated.
I recommend checking that:
- The production and staging environments are both running PHP 7.1 or higher.
- All plugin files were successfully copied during the migration. (Try deleting Genesis Blocks and reinstalling it.)
Bianca / Nick
Thanks so much for your respective responses. I definitely have the correct version of PHP so looks like I need to address the actual plugin...will have a look at the link that you sent Bianca and failing that delete and reinstall.
Will mark as closed on the assumption this will now work by following your advice.
© 2022 WPEngine, Inc.