Hello,
As title suggests, I am getting an PHP Fatal Error.
PHP Fatal error: Uncaught Error: Attempt to assign property "export" on null in /var/www/html/suitecrm/custom/include/Dashlets/DashletGeneric.php:399
Stack trace:
#0 /var/www/html/suitecrm/modules/Home/index.php(244): DashletGeneric->process()
#1 /var/www/html/suitecrm/modules/Home/views/view.list.php(55): include('...')
#2 /var/www/html/suitecrm/include/MVC/View/SugarView.php(210): HomeViewList->display()
#3 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(432): SugarView->process()
#4 /var/www/html/suitecrm/include/MVC/Controller/SugarController.php(363): SugarController->processView()
#5 /var/www/html/suitecrm/include/MVC/SugarApplication.php(101): SugarController->execute()
#6 /var/www/html/suitecrm/index.php(52): SugarApplication->execute()
#7 {main}
thrown in /var/www/html/suitecrm/custom/include/Dashlets/DashletGeneric.php on line 399
Code at line 399 is:
$this->lvs->export = false;
Function code is:
/**
* Does all dashlet processing, here's your chance to modify the rows being displayed!
*/
function process($lvsParams = array()) {
$currentSearchFields = array();
$configureView = true; // configure view or regular view
$query = false;
$whereArray = array();
$lvsParams['massupdate'] = false;
if ($useCustomMetadata) {
$this->loadCustomMetadata();
}
$this->addCustomFields();
// apply filters
if(isset($this->filters) || $this->myItemsOnly) {
$whereArray = $this->buildWhere();
}
$this->lvs->export = false;
$this->lvs->multiSelect = false;
// columns
$displayColumns = array();
if(!empty($this->displayColumns)) { // use user specified columns
foreach($this->displayColumns as $name => $val) {
$displayColumns[strtoupper($val)] = $this->columns[$val];
$displayColumns[strtoupper($val)]['label'] = trim($displayColumns[strtoupper($val)]['label'], ':');// strip : at the end of headers
}
}
else if (isset($this->columns)){
// use the default
foreach($this->columns as $name => $val) {
if(!empty($val['default']) && $val['default']) {
$displayColumns[strtoupper($name)] = $val;
$displayColumns[strtoupper($name)]['label'] = trim($displayColumns[strtoupper($name)]['label'], ':');
}
}
}
$this->lvs->displayColumns = $displayColumns;
$this->lvs->lvd->setVariableName($this->seedBean->object_name, array());
$lvdOrderBy = $this->lvs->lvd->getOrderBy(); // has this list been ordered, if not use default
$nameRelatedFields = array();
PHP v8.2.x
v7.14.3
Please help to debug this error!