Trying to load a report into the Report Dashlet and nothing loads. Found the error below.
Any help would be appricated.
[Mon Sep 19 20:31:39.610428 2022] [proxy_fcgi:error] [pid 99270:tid 140059175831296] [client 10.40.10.129:50132] AH01071: Got error 'PHP message: PHP Warning: Undefined array key āparameter_valueā in /bitnami/suitecrm/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php on line 142
PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /bitnami/suitecrm/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:142
Stack trace: #0 /bitnami/suitecrm/include/MVC/Controller/SugarController.php(893): AORReportsDashlet->saveOptions() #1 /bitnami/suitecrm/include/MVC/Controller/SugarController.php(522): SugarController->action_configuredashlet() #2 /bitnami/suitecrm/include/MVC/Controller/SugarController.php(491): SugarController->do_action() #3 /bitnami/suitecrm/include/MVC/Controller/SugarController.php(465): SugarController->handle_action() #4 /bitnami/suitecrm/include/MVC/Controller/SugarController.php(361): SugarController->process() #5 /bitnami/suitecrm/include/MVC/SugarApplication.php(101): SugarController->execute() #6 /bitnami/suitecrm/index.php(52): SugarApplication->execute() #7 {main}\n thrown in /bitnami/suitecrm/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php on line 142ā, referer: http://10.10.39.1/index.php?module=Home&action=index
[Mon Sep 19 20:31:39.865035 2022] [proxy_fcgi:error] [pid 659:tid 140058816280320] [client 10.40.10.129:50133] AH01071: Got error āPHP message: PHP Warning: Attempt to read property āidā on null in /bitnami/suitecrm/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php on line 57ā, referer: http://10.10.39.1/index.php?module=Home&action=index
[Mon Sep 19 20:31:44.318835 2022] [proxy_fcgi:error] [pid 99270:tid 140058648426240] [client 10.40.10.129:50134] AH01071: Got error āPHP message: PHP Warning: Attempt to read property āidā on null in /bitnami/suitecrm/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php on line 93PHP message: PHP Warning: Attempt to read property ānameā on null in /bitnami/suitecrm/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php on line 94PHP message: PHP Warning: Undefined array key āLBL_DASHLET_SELECT_REPORTā in /bitnami/suitecrm/cache/smarty/templates_c/%%D7^D74^D74EEC47%%dashletConfigure.tpl.php on line 38PHP message: PHP Warning: Undefined array key āLBL_DASHLET_SELECT_REPORTā in /bitnami/suitecrm/cache/smarty/templates_c/%%D7^D74^D74EEC47%%dashletConfigure.tpl.php on line 39PHP message: PHP Warning: Undefined array key āLBL_DASHLET_CLEAR_REPORTā in /bitnami/suitecrm/cache/smarty/templates_c/%%D7^D74^D74EEC47%%dashletConfigure.tpl.php on line 57PHP message: PHP Warning: Undefined array key āLBL_DASHLET_CLEAR_REPORTā in /bitnami/suitecrm/cache/smarty/templates_c/%%D7^D74^D74EEC47%%dashletConfigure.tpl.php on line 59ā, referer: http://10.10.39.1/index.php?module=Home&action=index
delete the cached file /bitnami/suitecrm/cache/smarty/templates_c/%%D7^D74^D74EEC47%%dashletConfigure.tpl.php , it will get re-created and might come up different
Go to this file
include/generic/SugarWidgets/SugarWidgetFieldname.php
search for SugarWidgetFieldid::_get_column_select
and replace it with $this->_get_column_select
Is there an Issue and a a PR with this fix already on GitHub? If there is, someone please post a link here. Iād there isnāt, someone please open it
EDIT: although initially I had proposed the same solution that @abuzarfaris gave above, later I found out that there are more instances of the static call that need correction, and more importantly, that the correct fix is this:
Instead of using $this to call the method, a new object must be instantiated, because $this is not the correct class for the intended method, itās another one.
I am getting a console error when I am trying to save or edit any dashlet on home screen.
How did you resolve this issue?
MySugar.js?v=6WY0eIRvQx-xSuYs2iwxMg:49 Uncaught ReferenceError: newTop is not defined
at Object.fillInConfigureDiv (MySugar.js?v=6WY0eIRvQx-xSuYs2iwxMg:49:481)
at Object.handleTransactionResponse (sugar_grp1_yui.js?v=6WY0eIRvQx-xSuYs2iwxMg:31:4422)
at sugar_grp1_yui.js?v=6WY0eIRvQx-xSuYs2iwxMg:31:3935