• Resolved Evan Herman

    (@eherman24)


    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;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Evan Herman

    (@eherman24)

    Also just an FYI, the stable tag in your readme.txt plugin header shouldn’t be ‘trunk’ but it should be the current version of your plugin, 7.3.1.

    === Optima Express + MarketBoost IDX Plugin ===
    Contributors: iHomefinder
    Tags: MLS, IDX, IDX Plugin, IDX Solutions, WordPress IDX, Real Estate, Multiple Listing Service, Optima Express
    Author URI: https://www.ihomefinder.com
    Plugin URI: https://www.ihomefinder.com/idx-plugin-for-wordpress/
    Requires at least: 4.2.0
    Tested up to: 6.2.2
    Stable tag: trunk
    Embed real estate property listings, market reports & MLS data on your WordPress site. Responsive design, great SEO & proven lead capture.

    https://plugins.svn.www.ads-software.com/optima-express/trunk/readme.txt

    Stable Tag – The stable version of the plugin. This is not the version of WordPress, but the version of the plugin itself. Only use numbers and periods, and SemVer formatting is recommended.

    https://developer.www.ads-software.com/plugins/wordpress-org/how-your-readme-txt-works/#readme-header-information
    Plugin Author iHomefinder, Inc.

    (@ihomefinder)

    Hello, thank you for reaching out and providing this information to us! Our engineers are currently aware of this issue. I will provide this information on to them and hope this helps them resolve the issue. In the meantime, the current workaround for the fatal issue is to roll back sites to PHP versions to 7.4 or prior.

    Plugin Author iHomefinder, Inc.

    (@ihomefinder)

    As of our most recent plugin update, the fatal error should no longer prove an issue for websites using PHP versions 8.0 and above. If anyone is still experiencing this error after updating the plugin, reach out to iHomefinder support at [email protected]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error on PHP 8’ is closed to new replies.