📣 We're Hiring!

Cannot edit fields in Studio – error Failed to retrieve data

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

— environment —
PHP 8.0
MySQL 5.7.35
Apache 2.4.49
SuiteCRM 8.0.0-rc

I would really appreciate if somebody can help me solve this problem.

Thank you.

Hi @Cadej,

Yet again, thanks for the feedback.

Could you send a screenshot of the error, please? and also check the browser’s network tab and console to see if there are any errors?

Could also check your legacy .htaccess please? In public/legacy/.htaccess

If your vhost is directly pointing to SuiteCRM’s public folder, the RewriteBase on the above file should be something like:

    RewriteBase /legacy

if your instance is at https://<some-host>.com/subfolder/

The your RewriteBase should be:

    RewriteBase /subfolder/public/legacy

Please let me know if this helped.

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

I tested several values and tested each one:

RewriteBase /public/legacy

RewriteBase /public_html/public/legacy

![Notification 02 failed|690x200](upload://snrn5RQOv1RTquBpsftzjIgT51G.png) ![Notification 02 failed|690x200](upload://snrn5RQOv1RTquBpsftzjIgT51G.png) ![Notification 02 failed|690x200](upload://snrn5RQOv1RTquBpsftzjIgT51G.png) ![Undefined|690x263](upload://3u00z22WwOl7lp1mW5zQalLWDeP.png)

In every version I’ve also got those errors in console (posted above).


After change in RewriteBase new pop-up appeared in Studio saying “undefined”.