Fatal Error: property_exists() on null in LiteCurrentLocation.php
-
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 TypeErroroccurring inLiteCurrentLocation.phpon line 35. It appearsproperty_exists()is receivingnullinstead 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]
You must be logged in to reply to this topic.