When I go Admin → Studio → Accounts → Fields → an error pops up - Failed to retrieve data
When I try to edit Fields in any Module in Studio I get this error.
When I click on Studio → Accounts → Relationships. The relationships open, but I cannot add a relationship. → an error pops up - Failed to retrieve data
I can edit other components e.g.
Labels, Layouts, Subpanels
Studio > Accounts > Layouts > Edit View
Studio > Accounts > Layouts > Detail View
…
Another strange bug.
When I click Studio > Accounts → an error pops up - Failed to retrieve data. If I then click on Labels, Relationships, Layouts, Subpanels, nothing happens.
I have to go back to studio and then one again Accounts and then Labels. Then I can edit Labels.
— error_log —
[13-Oct-2021 12:47:42 UTC] PHP Fatal error: Uncaught Error: Attempt to modify property “vardefs” on null in /home/crm8/public_html/public/legacy/modules/ModuleBuilder/views/view.modulefields.php:109
Stack trace: #0 /home/crm8/public_html/public/legacy/include/MVC/View/SugarView.php(210): ViewModulefields->display() #1 /home/crm8/public_html/public/legacy/include/MVC/Controller/SugarController.php(432): SugarView->process() #2 /home/crm8/public_html/public/legacy/include/MVC/Controller/SugarController.php(363): SugarController->processView() #3 /home/crm8/public_html/public/legacy/include/MVC/SugarApplication.php(101): SugarController->execute() #4 /home/crm8/public_html/public/legacy/index.php(52): SugarApplication->execute() #5 {main}
thrown in /home/crm8/public_html/public/legacy/modules/ModuleBuilder/views/view.modulefields.php on line 109
The content of initial .htaccess installed file:
RewriteBase /public//legacy
The console errors after pressing the »Fields« icon in Studio - Accounts:
I’ve also clicked around the SuiteCRM. Logout, login, cleared cache, clicked around Studio. I’ve got 3 different errors in console after click on the »Fields« icon in Studio – Accounts (the difference is in the last line).
sugar_grp1_yui.js?v=JSEC7fOwzNB5aagMLRZSVw:31 POST https://crm8.domain.si/public/legacy/index.php?to_pdf=1&sugar_body_only=1&module=ModuleBuilder&action=modulefields&view_package=studio&view_module=Accounts 500 (Internal Server Error)
asyncRequest @ sugar_grp1_yui.js?v=JSEC7fOwzNB5aagMLRZSVw:31
asyncRequest @ ModuleBuilder.js?v=JSEC7fOwzNB5aagMLRZSVw:1175
getContent @ ModuleBuilder.js?v=JSEC7fOwzNB5aagMLRZSVw:529
onclick @ index.php?module=ModuleBuilder&action=index&type=studio:1
sugar_grp1_yui.js?v=JSEC7fOwzNB5aagMLRZSVw:31 POST https://crm8.domain.si/public/legacy/index.php?to_pdf=1&sugar_body_only=1&module=ModuleBuilder&action=modulefields&view_package=studio&view_module=Accounts 500 (Internal Server Error)
asyncRequest @ sugar_grp1_yui.js?v=JSEC7fOwzNB5aagMLRZSVw:31
asyncRequest @ ModuleBuilder.js?v=JSEC7fOwzNB5aagMLRZSVw:1175
getContent @ ModuleBuilder.js?v=JSEC7fOwzNB5aagMLRZSVw:529
onclick @ index.php?type=studio&module=ModuleBuilder&action=index:1
sugar_grp1_yui.js?v=JSEC7fOwzNB5aagMLRZSVw:31 POST https://crm8.domain.si/public/legacy/index.php?to_pdf=1&sugar_body_only=1&module=ModuleBuilder&action=modulefields&view_package=studio&view_module=Accounts 500 (Internal Server Error)
asyncRequest @ sugar_grp1_yui.js?v=JSEC7fOwzNB5aagMLRZSVw:31
asyncRequest @ ModuleBuilder.js?v=JSEC7fOwzNB5aagMLRZSVw:1175
getContent @ ModuleBuilder.js?v=JSEC7fOwzNB5aagMLRZSVw:529
onclick @ VM1969 index.php:1
Below line in view.modulefields.php is giving error - Uncaught Error: Attempt to modify property “vardefs” on null., because mbvardefs is null, is it because of Php 8 ?