Exception in Controller: Subpanel was not defined

Hello

I often see one BUG in my suitecrm.

When I try to add a new record in subpanel I get freezy on 1-2 sec and it dropped my any result fill

extended example:

  1. Go to Contact module
  2. Select any existing record
  3. Scroll down to subpanels view
  4. Try to add new record use Create button
  5. Fill needed fields
  6. Click Save button
  7. Get something like 1-2 sec freezy
  8. Subpanel quick menu disappears and nothing is saved

At this time I get an error in suitecrm.log

   Mon Nov 16 09:11:43 2020 [256789][ecb443e0-0930-f573-a527-5deab54ce66f][FATAL] Exception handling in /var/www/suitecrm/include/MVC/Controller/SugarController.php:400
   Mon Nov 16 09:11:43 2020 [256789][ecb443e0-0930-f573-a527-5deab54ce66f][FATAL] Exception in Controller: Subpanel was not defined
    Mon Nov 16 09:11:43 2020 [256789][ecb443e0-0930-f573-a527-5deab54ce66f][FATAL] backtrace:
    #0 /var/www/suitecrm/include/SubPanel/SubPanelViewer.php(61): sugar_die()
    #1 /var/www/suitecrm/include/MVC/Controller/SugarController.php(1087): require_once('/var/www/suitec...')
    #2 /var/www/suitecrm/include/MVC/Controller/SugarController.php(468): SugarController-handleActionMaps()
    #3 /var/www/suitecrm/include/MVC/Controller/SugarController.php(373): SugarController-process()
    #4 /var/www/suitecrm/include/MVC/SugarApplication.php(113): SugarController->execute()
    #5 /var/www/suitecrm/index.php(54): SugarApplication->execute()
    #6 {main}

One peculiarity - I noticed that it is easy for me to repeat this bug when I quickly add records to a subpanel. Also, some time ago I noticed that this appeared when I enabled PHP opCache, and disabling it helped, but now it repeats again and opCache is turned off

What could it be? how can I fix this?

I have SuiteCRM 7.11.15

Hey,

Is this happening on one specific subpanel, by chance?

If so, are you able to create records on the Module itself, and relate them back to Contacts from there?
and, is this a Custom Module?


It might be worth running both:
-Quick Repair and Rebuild
-Rebuild Relationships

If anything appears to “Execute” after the Quick Repair, please do so

Hi

yes, it’s correct work if I created records on Module and related then back
it’s Custome module
and issue apear not specified module it’s aperas beetwen 2-3 my custom module

I did QRR many times, but don’t remember if I do RRelatinship so I’ll do it now and give message back if I can catch the issue again

it’s still actual

It repeated about 1/10 case when I’m trying to create a new record via subpanel

Hello, did you manage to solve this problem?

I have a similar experience. In production the record is created from the subpanel, but not the relationship. The message appears

Sun May 26 22:44:23 2024 [32193][6468507c-367f-601c-60e9-6055259c7428][FATAL] Exception handling in Subpanel was not defined

In my local and in development it works correctly. But I have this behavior on the production server.

I’m familiar with running QRR, but isn’t Rebuild Relationships safe?

Greetings and thanks for any ideas