Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Plesk WordPress website with PHP 8 is inaccessible: There has been a critical error on this website

 
domainsgophpphp settingsplesk for linux

Symptoms

  • WordPress website displays the following error in a browser:

    There has been a critical error on this website.
    Learn more about debugging in WordPress.

  • In Plesk > Domains > example.com > Logs the error message like the following can be found:

    AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected token "", expecting end of file in /var/www/vhosts/example.com/wp-content/themes/eleven40/functions.php on line 194'


    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /var/www/vhosts/example.com/wp-content/plugins/arscode-ninja-widget/arscode-ninja-widget.php:140nStack trace:n#0 /var/www/vhosts/example.com/wp-settings.php(388): include_once()n#1 /var/www/vhosts/example.com/wp-config.php(80): require_once('...')n#2 /var/www/vhosts/example.com/wp-load.php(37): require_once('...')n#3 /var/www/vhosts/example.com/wp-blog-header.php(13): require_once('...')n#4 /var/www/vhosts/example.com/index.php(17): require('...')n#5 {main}n thrown in /var/www/vhosts/example.com/wp-content/plugins/arscode-ninja-widget/arscode-ninja-widget.php on line 140'


    AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /var/www/vhosts/example.com/public_html/wp-config.php on line 80PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property "plugins" on bool in /var/www/vhosts/example.com/public_html/wp-content/plugins/simply-gallery-block/freemius/start.php:74n...


    PHP message: PHP Warning: Undefined variable $madara_ajax_search in /var/www/vhosts/example.com/httpdocs/wp-content/themes/madara/madara-core/manga-search.php on line 48

  • PHP version 8.0 is selected in Domains > example.com > PHP Settings.

Cause

Theme/plugin from the error message is incompatible with PHP 8.

Resolution

Apply one of possible solutions:

Change PHP to a lower version

  1. Log into Plesk.
  2. Go to Domains > example.com > PHP Settings.
  3. Switch PHP handler to a version lower than 8.0.

Disable incompatible plugin/theme

  1. Log into Plesk.
  2. Go to WordPress > example.com.
  3. Disable the incompatible plugin and/or switch to another theme that is compatible with PHP 8.0.
Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Ruby on Rails vs PHP: Which one’s right for your needs?

Read More »

How to Host a Go App on Plesk

Read More »

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »
Knowledge Base

A WordPress website hosted in Plesk shows the error: open_basedir restriction in effect

Read More »

A website based on WordPress is inaccessible: 500 Internal server error, PHP Parse error: syntax error

Read More »

A WordPress website is not accessible: ERR_TOO_MANY_REDIRECTS

Read More »

A copied WordPress instance in Plesk redirects to original domain

Read More »

Hosting Wiki

  • Django
  • Google Cloud CDN
  • PhpMyAdmin
  • phpPgAdmin
  • Linux
  • PHP
  • MongoDB
  • Domain
  • WordPress
  • Plesk
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family