• Resolved wineitot

    (@wineitot)


    Hi,

    My website recently crashed with a fatal error related to the Amelia plugin. Based on the error log, it seems to be a compatibility issue with the PHP version I am running.

    Here are the details of my environment:

    • WordPress Version: 6.9
    • PHP Version: 8.5.1
    • Amelia Version: 2.0.2

    The Error: The error is an Uncaught TypeError occurring in LiteCurrentLocation.php on line 35. It appears property_exists() is receiving null instead of an object or string.

    Stack Trace:

    Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in .../wp-content/plugins/ameliabooking/src/Application/Services/Location/LiteCurrentLocation.php:35
    
    Stack trace:
    #0 .../LiteCurrentLocation.php(35): property_exists(NULL, 'country_code')
    #1 .../SettingsStorage.php(669): AmeliaBooking\Application\Services\Location\LiteCurrentLocation->getCurrentLocationCountryIso('')
    #2 .../SettingsService.php(90): AmeliaBooking\Infrastructure\WP\SettingsService\SettingsStorage->getBackendSettings()
    

    Could you please advise if this is a known issue with this PHP version or if I need to update the plugin manually?

    Thanks!

    The page I need help with: [log in to see the link]

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

You must be logged in to reply to this topic.