Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when changing relationships - Undefined constant "view_module" in parser.label.php:279 #10535

Open
sy-subrc opened this issue Oct 2, 2024 · 2 comments
Labels
Area: Studio Issues & PRs related to all things regarding studio & module builder Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Type: Bug Bugs within the core SuiteCRM codebase

Comments

@sy-subrc
Copy link

sy-subrc commented Oct 2, 2024

Issue

The attempt to change a relationship in SuiteCRM Studio ends with the error message “An error has occurred”.
This error message appears when you try to change any relationship.
There is no indication of this error in SuiteCRM-Log.
The following error message appears in the Apache/PHP log each time a change is attempted
PHP Fatal error: Uncaught Error: Undefined constant "view_module" in /suitecrm/public/legacy/modules/ModuleBuilder/parsers/parser.label.php:279

Possible Fix

If I deactivate the bug fix contained in the file public/legacy/modules/ModuleBuilder/parsers/parser.label.php (Lines 278-382), changes to relationships can be posted again without errors.

Steps to Reproduce the Issue

The error probably occurs after the creation of custom modules (in the system in which the error occurs, the German language is also installed)
1. creation of a custom module
2. creation of relationships between custom modules and standard SuiteCRM modules
3. change of any relationship leads to an error message

Context

The error occurred again after creating a custom module via the Module Builder. The custom module has relationships to standard SuiteCRM modules.

Version

8.6.2

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

mysql Ver 15.1 Distrib 10.11.9-MariaDB, for Linux (x86_64), PHP Version => 8.2.20

Operating System and Version

openSUSE Leap 15.6

@sy-subrc sy-subrc added the Type: Bug Bugs within the core SuiteCRM codebase label Oct 2, 2024
@johnM2401 johnM2401 added Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Studio Issues & PRs related to all things regarding studio & module builder Severity: Moderate Key function failed, but no or little impact labels Oct 3, 2024
@johnM2401 johnM2401 transferred this issue from salesagility/SuiteCRM-Core Oct 3, 2024
@johnM2401
Copy link
Contributor

Hey!
Thank you for raising this.

Just to let you know, I've transfered this issue over to the SuiteCRM repo as this issue is replicable in SuiteCRM7 too.
(Meaning, when resolved here, the fix will be pulled into both SuiteCRM7 and SuiteCRM8)

Thank you again!

@sy-subrc
Copy link
Author

sy-subrc commented Oct 3, 2024

Hi, thank you for your quick response.
I am happy that the error is reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Studio Issues & PRs related to all things regarding studio & module builder Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants