Hi, we just updated our PHP to version 8.0 but we are now having some issues with the POS Dashboard. How can we fix that? Thank you!
- MSAnswered
Hello,
Please try to remove line 138 in
themes/default/views/dashboard.php
<!-- <span class="badge bg-yellow"><?= sizeof($suspended_sales); ?></span> -->
If you still have issue, please check your server php error logs and let me know the error details.
Thank you
- RAnswered
Thank you but that didn’t work. This part was already commented out to begin with so didn’t have any effects once we removed it. Any other ideas? just to be exact the new version is PHP 8.0 FastCGI
- MSAnswered
Hello,
Sizeof will generate error in php8 for null. The comment was php. There was not clue about what messed. Anyway, if you are talking about sessions then I am not sure why flash data is not being cleared. You can add the lines below in the
page_construct
method ofapp/core/MY_Controller.php
before$this->load->view
lines to manually clear it$this->session->unset_userdata('error'); $this->session->unset_userdata('message'); $this->session->unset_userdata('warning');
Thank you
- RAnswered
Great, This fixed the error! Thank you!
- Login to Reply