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

Fatal error in AOR Reports dashlet #10353

Open
fluffyballs opened this issue Feb 6, 2024 · 1 comment
Open

Fatal error in AOR Reports dashlet #10353

fluffyballs opened this issue Feb 6, 2024 · 1 comment
Labels
Area: Reports Issues & PRs related to all things regarding reports Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase

Comments

@fluffyballs
Copy link

Issue

When loading the dashboard containing an AOR Reports dashlet which is linked to a deleted report a fatal error is thrown.
PHP Fatal error: Uncaught Error: Attempt to assign property "user_parameters" on bool in xx/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44

Expected Behavior

The dashboard should load without issue.

Actual Behavior

The dashboard fails to load and the following error is thrown:
PHP Fatal error: Uncaught Error: Attempt to assign property "user_parameters" on bool in xx/modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.php:44

Possible Fix

Check report exists before trying to use it.

Steps to Reproduce

  1. Create a report
  2. Add report dashlet to dashboard and select the newly created report
  3. Delete the report
  4. Reload the dashboard

Context

High priority - Dashboard unusable

Your Environment

  • SuiteCRM Version used: 7.14.3
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome Version 121.0.6167.140 (Official Build) (64-bit)
  • Environment name and version (e.g. MySQL, PHP 7): PHP 8.2
  • Operating System and version (e.g Ubuntu 16.04): Debian 11.8
@serhiisamko091184
Copy link
Contributor

Hello @fluffyballs,

thanks for the issue raised and the fix provided.

Regards,
Serhii

fluffyballs added a commit to freerein/SuiteCRM that referenced this issue Feb 8, 2024
@johnM2401 johnM2401 added Type: Bug Bugs within the core SuiteCRM codebase Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Reports Issues & PRs related to all things regarding reports Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Reports Issues & PRs related to all things regarding reports Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants