I briefly explain the type of error:
when I try to access a record in a custom module, a blank page appears with an error message "an error has occurred. Please try again laterâ.
I should point out that until recently there was no problem and nothing has changed. itâs as if the problem is related to this specific laptop.
I have also tried logging in from this laptop with administrator credentials and the result is the same, whereas from other machines, trying with user credentials and administrator credentials, there is no problem. No errors appear in suitecrm.log
Can you give me an explanation? Thank you.
This is the version of Suite:
Version 7.10.20
Sugar Version 6.5.25 (Version 344)
i was checking the browserâs developer console and it gives error 500 on ajaxui, which is strange because it was working until recently. the browser is Microsoft Edge
I am resuming this discussion because, the problem continues and I have to clear the cache every time.
I think I figured out the problem, I entered in logic_hook:
$hook_array[âprocess_recordâ] = Array();
âŚ
and this loops the linked subpanels, within the custom module.
In php_error log:
PHP Fatal error: Uncaught Error: Call to a member function format() on bool in C:\xampp\htdocs\suitecrm\custom\modules\<CUSTOM_MODULE>\Highlight.php:20
Stack trace:
#0 C:\xampp\htdocs\suitecrm\include\utils\LogicHook.php(272): Highlight->highlightIndustry(Object(<CUSTOM_MODULE>), 'process_record', NULL)
#1 C:\xampp\htdocs\suitecrm\include\utils\LogicHook.php(208): LogicHook->process_hooks(Array, 'process_record', NULL)
#2 C:\xampp\htdocs\suitecrm\data\SugarBean.php(3109): LogicHook->call_custom_logic('<CUSTOM_MODULE>', 'process_record', NULL)
#3 C:\xampp\htdocs\suitecrm\include\ListView\ListViewSubPanel.php(299): SugarBean->call_custom_logic('process_record')
#4 C:\xampp\htdocs\suitecrm\include\ListView\ListViewSubPanel.php(159): ListViewSubPanel->process_dynamic_listview_rows(Array, Array, 'dyn_list_view', '<CUSTOM_MODULE_PARENT>...', Object(aSubPanel))
#5 C:\xampp\htdocs\suitecrm\include\SubPanel\SubPanel.php(220): ListViewSubPanel->process_dynamic_listview('<CUSTOM_MODULE_PARENT>', Object(<CUSTOM_MODULE> in C:\xampp\htdocs\suitecrm\custom\modules\<CUSTOM_MODULE>\Highlight.php on line 20
No, the name is right, maybe there is something wrong with the date at all, yet I printed on the screen both before the conversion and after and everything is okay, I donât understand what is bothering
I think I spotted the problem, some dates result NULL and I donât know why, $bean->date doesnât contain any values (but it should), I had to put checks, the only filled value is $bean->name which also contains the date.
Crazy round to get it (with explode), but for now it seems to work (at least it doesnât error), I will have to test it thoroughly