Fatal error in AOR Reports dashlet #5162

Open
opened 2026-02-20 16:30:46 -05:00 by deekerman · 1 comment
Owner

Originally created by @fluffyballs on GitHub (Feb 6, 2024).

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
Originally created by @fluffyballs on GitHub (Feb 6, 2024). #### 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
Author
Owner

@serhiisamko091184 commented on GitHub (Feb 7, 2024):

Hello @fluffyballs,

thanks for the issue raised and the fix provided.

Regards,
Serhii

@serhiisamko091184 commented on GitHub (Feb 7, 2024): Hello @fluffyballs, thanks for the issue raised and the fix provided. Regards, Serhii
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5162
No description provided.