Showing posts with label bdtask sales erp internal server error after login. Show all posts
Showing posts with label bdtask sales erp internal server error after login. Show all posts

Thursday, January 19, 2023

BDTask Sales ERP - Dashboard is not loading in php 8.0+

BDTask Sales ERP - Internal Server Error

Solution :

Enable logs in the file saleserp_v10/application/config/config.php

$config['log_threshold'] = 0;
to
$config['log_threshold'] = 1;
Check error in logs application/logs
if it is
ERROR - 2023-xx-xx xx:xx:xx --> Severity: error --> Exception: Unsupported operand types: string + int /var/www/html/saleserp_v10/application/modules/dashboard/views/home/home.php 452
Update file
/var/www/html/saleserp_v10/application/modules/dashboard/views/home/home.php

Change
   
     value='<?php $seperatedData = explode(',', $chart_data); echo html_escape(($seperatedData[0] + 10));?>' name=""

 

to

        value='<?php $seperatedData = explode(',', $chart_data); echo html_escape(((int)$seperatedData[0] + 10));?>' name=""
Now try again.