Fatal Error on PHP 8 (original) (raw)
- Activating this plugin on a PHP 8 site causes a fatal error on the front of site. This is because you are trying to access a query var when the $wp_query global is not set.
Call to a member function get() on null in /var/www/wp-includes/query.php:29 Stack trace: #0 /var/www/wp-content/plugins/optima-express/iHomefinderVirtualPageDispatcher.php(38): get_query_var(‘ihf-type’)
In wp-content/plugins/optima-express/iHomefinderVirtualPageDispatcher.php, on line 36, your plugin has the following code:
global $wp_query; If you check that $wp_query is set before continuing, that should fix the issue.
global $wp_query;
if ( ! $wp_query ) {
return;
}