PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error
-
Getting this error in my error.log file, due to this critical error is showing up on my woocommerce website,
Kindly help,
Error :
[04-Sep-2020 05:56:02 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/zy35yphxogji/public_html/wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-geolocation.php:148
Stack trace:
#0 /home/zy35yphxogji/public_html/wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-geolocation.php(38): Xoo_Ml_Geolocation::geolocate_via_api(‘148.66.145.25’)
#1 /home/zy35yphxogji/public_html/wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-otp-handler.php(20): Xoo_Ml_Geolocation::get_data()
#2 /home/zy35yphxogji/public_html/wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-otp-handler.php(14): Xoo_Ml_Otp_Handler->__construct()
#3 /home/zy35yphxogji/public_html/wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-otp-handler.php(276): Xoo_Ml_Otp_Handler::get_instance()
#4 /home/zy35yphxogji/public_html/wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-otp-handler.php(278): xoo_ml_otp_handler()
#5 /home/zy35yphxogji/public_html/wp-content/plu in /home/zy35yphxogji/public_html/wp-content/plugins/mobile-login-woocommerce/includes/class-xoo-ml-geolocation.php on line 148
- The topic ‘PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error’ is closed to new replies.