Qloapps / QloApps

QloApps is a Free and Open-source hotel management and reservation system to take a hotel business online. QloApps offers a Property Management System (PMS), a Booking Engine, and an attractive Hotel Website. Elevate hotel operations with QloApps to streamline processes and provide an enhanced experience for both hoteliers and guests.
https://qloapps.com
Open Software License 3.0
4.5k stars 483 forks source link

BUG develop: Context::getContext()->language->id return null #493

Open wdammak opened 1 year ago

wdammak commented 1 year ago

Why the Context::getContext()->language->id return null? (in admin pages)

Warning on line 2845 in file \www\hotelcommerce\classes\controller\AdminController.php [2] simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found

Warning on line 2845 in file \www\hotelcommerce\classes\controller\AdminController.php [2] simplexml_load_string(): {"errors":{"code":"0015","label":"Fatal error : method is undefined."}}

Warning on line 2845 in file \www\hotelcommerce\classes\controller\AdminController.php [2] simplexml_load_string(): ^

Notice on line 2150 in file \www\hotelcommerce\classes\controller\AdminController.php [8] Trying to access array offset on value of type null

lakshya-webkul commented 1 year ago

Hi @wdammak ,

Thanks for raising this issue, it will surely help us to improve QloApps.

We request you please provide steps to reproduce the "Context language id returns null value" issue.

So that we can check it out at our end.

Thank you.