Title: Fatal error when plugin activated
Last modified: August 1, 2023

---

# Fatal error when plugin activated

 *  [abrightclearweb](https://wordpress.org/support/users/abrightclearweb/)
 * (@abrightclearweb)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-5/)
 * I get a fatal error activating the plugin:
 * Parse error: syntax error, unexpected ‘string’ (T_STRING), expecting function(
   T_FUNCTION) or const (T_CONST) in C:\Users\Asus\Local Sites\block-theme\app\public\
   wp-content\plugins\create-block-theme\admin\create-theme\cbt-zip-archive.php 
   on line _8_
 * I’ve tried deactivating plugins, and I’m using Twenty Twenty Three theme.
 * Can anyone help?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-plugin-activated-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-5/#post-16939801)
 * Hi [@abrightclearweb](https://wordpress.org/support/users/abrightclearweb/) –
   I’m unable to recreate this issue in my testing at the moment. Did you install
   the plugin by uploading the ZIP file, or through the Plugins interface in WP 
   Admin?
 * I noticed the URL is a localhost one – can you tell me what system/application
   you’re using to test locally like that?
 *  [ahm77222](https://wordpress.org/support/users/ahm77222/)
 * (@ahm77222)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-5/#post-16965696)
 * I am facing the same issue while trying to activate create block theme plugin
 *  [Felipe Velzani](https://wordpress.org/support/users/felipevelzani/)
 * (@felipevelzani)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-5/#post-16967260)
 * Hi [@ahm77222](https://wordpress.org/support/users/ahm77222/)! If you are facing
   a similar issue, please [create your own topic](https://wordpress.org/support/plugin/create-block-theme/),
   so we can check this further.
 *  Moderator [Dion Hulse](https://wordpress.org/support/users/dd32/)
 * (@dd32)
 * Meta Developer
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-5/#post-16973011)
 * Hi all,
 * This error may happen when you’re running an out-of-date PHP version.
 * The plugin incorrectly states it supports PHP 7.0+, but PHP 7.4+ is actually 
   required. The simplest option for you is to upgrade your development environment
   to run at least PHP 7.4.
 * I’ve filed a bug report for this here: [https://github.com/WordPress/create-block-theme/issues/444](https://github.com/WordPress/create-block-theme/issues/444)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error when plugin activated’ is closed to new replies.

 * ![](https://ps.w.org/create-block-theme/assets/icon-256x256.png?rev=2777957)
 * [Create Block Theme](https://wordpress.org/plugins/create-block-theme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/create-block-theme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/create-block-theme/)
 * [Active Topics](https://wordpress.org/support/plugin/create-block-theme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/create-block-theme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/create-block-theme/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 5 participants
 * Last reply from: [Dion Hulse](https://wordpress.org/support/users/dd32/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-plugin-activated-5/#post-16973011)
 * Status: not resolved