Calendar not working 7.8.2 #1846

Closed
opened 2026-02-20 15:16:19 -05:00 by deekerman · 1 comment
Owner

Originally created by @bellbot on GitHub (Apr 13, 2017).

Calendar not showing.

Issue

There was an inproper decalatrion of variable in "CalendarDisplay.php" which cause PHP fatal error:
PHP Fatal error: Uncaught Error: [] operator not supported for strings in C:\inetpub\wwwroot\examplesuite\modules\Calendar\CalendarDisplay.php:178
Stack trace:
#0 C:\inetpub\wwwroot\examplesuite\modules\Calendar\index.php(99): CalendarDisplay->display()
#1 C:\inetpub\wwwroot\examplesuite\include\MVC\View\SugarView.php(761): include_once('C:\inetpub\wwwr...')
#2 C:\inetpub\wwwroot\examplesuite\include\MVC\View\views\view.classic.php(74): SugarView->includeClassicFile('modules/Calenda...')
#3 C:\inetpub\wwwroot\examplesuite\include\MVC\View\SugarView.php(169): ViewClassic->display()
#4 C:\inetpub\wwwroot\examplesuite\include\MVC\Controller\SugarController.php(363): SugarView->process()
#5 C:\inetpub\wwwroot\examplesuite\include\MVC\Controller\SugarController.php(310): SugarController->processView()
#6 C:\inetpub\wwwroot\examplesuite\include\MVC\SugarApplication.php(105): SugarController->execute()
#7 C:\inetpub\wwwroot\examplesuite\index.php(51): SugarApplication->execute()
#8 {main}
thrown in C:\inetpub\wwwroot\examplesuite\modules\Calendar\CalendarDisplay.php on line 178

Expected Behavior

Browse Calendar properly.

Actual Behavior

Calendar not showing.

Possible Fix

After changing declaration: $location_array = "";
to: $location_array = Array();
Calendar seems to work fine.

Steps to Reproduce

Context

Noticed right after installing fresh SuiteCRM 7.8.2

Your Environment

  • SuiteCRM Version used: Version 7.8.2
  • Environment name and version (e.g. MySQL, PHP 7): PHP 7.1.1, MSSQL
  • Operating System and version (e.g Ubuntu 16.04): Windows Server 2012 R2 Standard
Originally created by @bellbot on GitHub (Apr 13, 2017). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> Calendar not showing. #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> There was an inproper decalatrion of variable in "CalendarDisplay.php" which cause PHP fatal error: PHP Fatal error: Uncaught Error: [] operator not supported for strings in C:\inetpub\wwwroot\examplesuite\modules\Calendar\CalendarDisplay.php:178 Stack trace: #0 C:\inetpub\wwwroot\examplesuite\modules\Calendar\index.php(99): CalendarDisplay->display() #1 C:\inetpub\wwwroot\examplesuite\include\MVC\View\SugarView.php(761): include_once('C:\\inetpub\\wwwr...') #2 C:\inetpub\wwwroot\examplesuite\include\MVC\View\views\view.classic.php(74): SugarView->includeClassicFile('modules/Calenda...') #3 C:\inetpub\wwwroot\examplesuite\include\MVC\View\SugarView.php(169): ViewClassic->display() #4 C:\inetpub\wwwroot\examplesuite\include\MVC\Controller\SugarController.php(363): SugarView->process() #5 C:\inetpub\wwwroot\examplesuite\include\MVC\Controller\SugarController.php(310): SugarController->processView() #6 C:\inetpub\wwwroot\examplesuite\include\MVC\SugarApplication.php(105): SugarController->execute() #7 C:\inetpub\wwwroot\examplesuite\index.php(51): SugarApplication->execute() #8 {main} thrown in C:\inetpub\wwwroot\examplesuite\modules\Calendar\CalendarDisplay.php on line 178 #### Expected Behavior <!--- Tell us what should happen --> Browse Calendar properly. #### Actual Behavior <!--- Tell us what happens instead --> Calendar not showing. #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> After changing declaration: $location_array = ""; to: $location_array = Array(); Calendar seems to work fine. #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. 2. 3. 4. #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> Noticed right after installing fresh SuiteCRM 7.8.2 #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: Version 7.8.2 * Environment name and version (e.g. MySQL, PHP 7): PHP 7.1.1, MSSQL * Operating System and version (e.g Ubuntu 16.04): Windows Server 2012 R2 Standard
Author
Owner

@CamoMacdonald commented on GitHub (Apr 13, 2017):

@bellbot This has been fixed in 7.8.3 #3225

@CamoMacdonald commented on GitHub (Apr 13, 2017): @bellbot This has been fixed in 7.8.3 #3225
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#1846
No description provided.