
Today, a netizen told Naiba that his WordPress website could not be opened and asked for help.
Opening his website prompts „Fatal error: Call to undefined function wp_doing_ajax() in /home/vgr8rn8v8/wwwroot/wp-content/plugins/siteorigin-panels/siteorigin-panels.php on line 45"
Cause of the problem
From the error cause, the problem lies in the wp_doing_ajax() function file.
The wp_doing_ajax() function is a new function added after WordPress 4.7, and this user happens to be using an older version of WordPress.
For related information, refer to the official documentation:https://developer.wordpress.org/reference/functions/wp_doing_ajax/
wp_doing_ajax()
Used to determine whether the current request is an Ajax request. If it is a WordPress Ajax request, it returns true; otherwise, false.
function wp_doing_ajax() {
/**
* Filters whether the current request is a WordPress Ajax request.
*
* @since 4.7.0
*
* @param bool $wp_doing_ajax Whether the current request is a WordPress Ajax request.
*/
return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
}Solution
From the error prompt, it is clear that the problem lies in line 45 of siteorigin-panels/siteorigin-panels.php. The issue is plugin compatibility.
To solve the problem simply, use an FTP tool to delete the siteorigin-panels folder on the web server.
If you still want to use this plugin, you need to upgrade WordPress to a new version first, then reinstall it. If you cannot upgrade, you need to check whether your server environment meets the hardware requirements of the new WordPress version.WordPress Configuration Requirements Hardware Conditions Needed to Install WordPress
Other situations
Sometimes, the website not opening may not be due to plugin issues. Naiba previously shared the Ultimate Troubleshooting Guide for WordPress Website 503 Error, which interested readers can refer to.
Ultimate Troubleshooting Guide for WordPress Website 503 Error