mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Exception in Controller: Subpanel was not defined #4311
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4311
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ebogaard on GitHub (Jun 3, 2020).
Issue
I have several SuiteCRM instances running. All configured similarly and on the same version. 7.10.25 at the moment, but I've seen this error message in older versions as well.
Expected Behavior
I expect no errors about undefined Subpanels in any way or form. Only if there are actual config errors in the vardefs.
Actual Behavior
In some CRMs and only with some users and in some modules, I see the following error in the php log:
I can't replicate this in any way or form when I login with my own user or with any other users that don't experience this issue.
The users don't seem to experience any kind of negative impact: the CRM is working for them as usual.
Possible Fix
I suspect some user settings are the culprit. For example when a certain view is saved, but then one of those subpanels is removed from the view using studio or otherwise.
But after looking through all the user related settings in the database, I couln't find anything of this kind of user related config.
Steps to Reproduce
As said earlier, it's not possible for me to replicate this issue. But I see it in multiple CRMs and woth multiple users.
I'm willing to participate in tracing and fixing this bug. For this, I see two first steps:
Context
Your Environment
@pgorod commented on GitHub (Jun 3, 2020):
This #8640 would get you all the information you need.
@ebogaard commented on GitHub (Jun 4, 2020):
With additional logging, I could trace the issue coming from the following URI:
Based on "include/SubPanel/SubPanelViewer.php", it seems that the "action=SubPanelViewer" isn't a valid action without a "subpanel=" parameter in the REQUEST.
I did a grep, but can't find code that refers the SubpanelViewer action, without also adding and filling the subpanel parameter to the url. Anyone know of a location this happens?
@pgorod commented on GitHub (Jun 5, 2020):
It would be easier with the full stack trace and the parameter values at each step. I am curious as to how this error is coming from the Controller actions, not from a view, because normally the subpanel would only get called when rendering the view.
This reference is coming either from
action_file_maporaction_view_map