Calendar still not showing, even after 7.7.1

Hello,

There was a known bug with the calendar not showing in the 7.7 version. Just upgraded from 7.6.6. to 7.7.1, and stil the same problem …

Are you getting Parse error: syntax error, unexpected ‘[’ in /var/www/html/sugar/sc_dev/modules/Calendar/CalendarDisplay.php on line 182 ?

This is what I get

Pretty certain its down to PHP version

My calendar was showing in 7.7. After upgrading to 7.7.1 it still shows, however there’s a ton of errors, dunno if these are related to your issue.

Top of Dashboard:
Warning: Creating default object from empty value in /var/www/suitecrm/modules/Calendar/Dashlets/CalendarDashlet/CalendarDashlet.php on line 66
Notice: Undefined property: JotPadDashlet::$seedBean in /var/www/suitecrm/include/Dashlets/Dashlet.php on line 245
Notice: Trying to get property of non-object in /var/www/suitecrm/include/Dashlets/Dashlet.php on line 245

Inside Calendar Dashlet:
Notice: Undefined property: FP_events::$rel_users_table in /var/www/suitecrm/modules/Calendar/CalendarActivity.php on line 188
Notice: Undefined property: Task::$rel_users_table in /var/www/suitecrm/modules/Calendar/CalendarActivity.php on line 188
Notice: Undefined index: LBL_PREVIOUS_AGENDAWEEK in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 511
Notice: Undefined index: LBL_NEXT_AGENDAWEEK in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 492

August 7 2016 - August 13 2016
Notice: Undefined index: CalendarColors in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 240
Notice: Undefined index: CalendarColors in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 241
Notice: Undefined index: CalendarColors in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 240
Notice: Undefined index: CalendarColors in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 241
Notice: Undefined index: CalendarColors in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 240
Notice: Undefined index: CalendarColors in /var/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 241

The calendar is visible underneath the wall of errors.

No idea to finally fix it ? Maybe a PHP version conflict ? I use 5.6. I had to change from 5.4 to 5.6 to be compatible to Suite 7.7 …

Hi Fred5550, what environment are you running? i.e. PHP version, Server etc. It is recommended that you refresh your browser cache and set the file permissions as recommended and let us know some more info to help you resolve it.

Not sure. It’s a shared pro hosting @ Hostmonster (Bluehost). PHP version is 5.6, they do not offer 7.

I have this too
Reverted until fixed
PHP 5.5.38

For all those not sure of PHP version info:
Create a .txt file with the following in:

<?php phpinfo(); ?>

Save the file as phpinfo.php in to your hosting root directory
open the file in your browser (i.e. http://www.domainname.ext/phpinfo.php).

Me too, already tried 3 times … each time same bug in the calendar : not showing.

And it seems that is not our installations. Same problem with the official demo (see printscreen) :blink: Or could it be a local problem ? I tried the demo with IE, Forefox and Chrome on 3 different computers …

Hi all,

My calendar works now with these changes under centos7 with virtualmin:

  1. upgrade from 7.7 to 7.1
  2. Upgraded php 5.4 to 5.6

So far so good.

Regards,

Steven

Tested - still not working
Process:

  1. Update PHP to 7.0.9 [I can use a .htaccess to update it]
  2. Verified PHP version using the diags tool
  3. update to 7.71 [no problems reported]
  4. Ran ‘Quick Repair’
  5. Dumped browser cache
  6. Tested

Calendar still not stowing anything on homepage widget or calendar section with the week or day view.
Seems to work on the Month view - can someone please verify this…
Tested all 3 themes, different PCs, Chrome and IE (with and without compatibility mode).

Reverting…

*on the + side Suite seems faster using PHP7! Sticking with it…

Calendar is not working for me either after upgrading to 7.7.1. I’ve enabled “Display stack trace of errors” and am seeing the following:

Notice: Trying to get property of non-object occurred in /opt/bitnami/apps/suitecrm/htdocs/modules/Favorites/Favorites.php on line 104 [2016-08-21 18:42:51] display_stack_trace caller, file: /opt/bitnami/apps/suitecrm/htdocs/include/utils.php line#: 3370
/opt/bitnami/apps/suitecrm/htdocs/modules/Favorites/Favorites.phpL:104
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:480
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:152
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:363
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:310
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/SugarApplication.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/index.phpL:52
Notice: Trying to get property of non-object occurred in /opt/bitnami/apps/suitecrm/htdocs/modules/Favorites/Favorites.php on line 105 [2016-08-21 18:42:51] display_stack_trace caller, file: /opt/bitnami/apps/suitecrm/htdocs/include/utils.php line#: 3370
/opt/bitnami/apps/suitecrm/htdocs/modules/Favorites/Favorites.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:480
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:152
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:363
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:310
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/SugarApplication.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/index.phpL:52
Notice: Trying to get property of non-object occurred in /opt/bitnami/apps/suitecrm/htdocs/modules/Favorites/Favorites.php on line 108 [2016-08-21 18:42:51] display_stack_trace caller, file: /opt/bitnami/apps/suitecrm/htdocs/include/utils.php line#: 3370
/opt/bitnami/apps/suitecrm/htdocs/modules/Favorites/Favorites.phpL:108
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:480
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:152
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:363
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:310
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/SugarApplication.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/index.phpL:52

Calendar

Unknown Error (8192): Non-static method CalendarActivity::get_activities() should not be called statically, assuming $this from incompatible context occurred in /opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/Calendar.php on line 389 [2016-08-21 18:42:51] display_stack_trace caller, file: /opt/bitnami/apps/suitecrm/htdocs/include/utils.php line#: 3370
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/Calendar.phpL:389
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/index.phpL:81
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:738
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/views/view.classic.phpL:74
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:160
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:363
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:310
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/SugarApplication.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/index.phpL:52
Notice: Undefined property: FP_events::$rel_users_table occurred in /opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/CalendarActivity.php on line 188 [2016-08-21 18:42:51] display_stack_trace caller, file: /opt/bitnami/apps/suitecrm/htdocs/include/utils.php line#: 3370
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/CalendarActivity.phpL:188
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/Calendar.phpL:389
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/index.phpL:81
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:738
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/views/view.classic.phpL:74
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:160
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:363
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:310
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/SugarApplication.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/index.phpL:52
Notice: Undefined property: Task::$rel_users_table occurred in /opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/CalendarActivity.php on line 188 [2016-08-21 18:42:51] display_stack_trace caller, file: /opt/bitnami/apps/suitecrm/htdocs/include/utils.php line#: 3370
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/CalendarActivity.phpL:188
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/Calendar.phpL:389
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/index.phpL:81
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:738
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/views/view.classic.phpL:74
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:160
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:363
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:310
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/SugarApplication.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/index.phpL:52
Unknown Error (4096): Argument 1 passed to TimeDate::tzGMT() must be an instance of DateTime, null given, called in /opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/CalendarActivity.php on line 97 and defined occurred in /opt/bitnami/apps/suitecrm/htdocs/include/TimeDate.php on line 870 [2016-08-21 18:42:51] display_stack_trace caller, file: /opt/bitnami/apps/suitecrm/htdocs/include/utils.php line#: 3370
/opt/bitnami/apps/suitecrm/htdocs/include/TimeDate.phpL:870
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/CalendarActivity.phpL:97
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/CalendarActivity.phpL:219
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/Calendar.phpL:389
/opt/bitnami/apps/suitecrm/htdocs/modules/Calendar/index.phpL:81
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:738
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/views/view.classic.phpL:74
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/View/SugarView.phpL:160
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:363
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/Controller/SugarController.phpL:310
/opt/bitnami/apps/suitecrm/htdocs/include/MVC/SugarApplication.phpL:105
/opt/bitnami/apps/suitecrm/htdocs/index.phpL:52

In the initial upgrade from 7.7.0 to 7.7.1 before adding an item in the calendar it seemed the old calendar issues were fixed.
After adding a new meeting in Calendar its now broken. No screen at all.
Its completely broken.

I think we can stop trying. Even the official demo seems to be broken. See attached printscreen of this morning …

Yep that looks my screen too. Blank.
Happy to provide logs etc if asked…

Hi Guys,

Seems to be a number of issues that people are experiencing - just want to round off what ones have been tackled since 7.7.1 in case anyone wants to see if they resolve their issue just now.

  1. Calendar on PHP 5.3 - Issue https://github.com/salesagility/SuiteCRM/issues/1903 - PR https://github.com/salesagility/SuiteCRM/pull/2008
  2. Calendar issues with Day, Week & Month views on 7.7.1 - Issue (https://github.com/salesagility/SuiteCRM/issues/1938) - PR - https://github.com/salesagility/SuiteCRM/pull/1993
  3. Calendar Settings are not working as desired - issue - https://github.com/salesagility/SuiteCRM/issues/1960 - PR - https://github.com/salesagility/SuiteCRM/pull/1963
  4. Fixed #1939 Calendar Fatal error on tasks without Due date - PR - https://github.com/salesagility/SuiteCRM/commit/7d24ad300cd825960242a71c100dbf57560d3ecd

Let us know how you get on.

1 Like

Hi samus-aran,
had the errors below but applied the fix you recommended…

“4. Fixed #1939 Calendar Fatal error on tasks without Due date - PR - github.com/salesagility/SuiteCRM/commit/...a71c100dbf57560d3ecd

Now the shared calendar is back in all its glory :woohoo:

PHP 5.6.24
7.7.1

thanks.

[23-Aug-2016 08:01:34 Australia/Sydney] PHP Catchable fatal error: Argument 1 passed to TimeDate::tzGMT() must be an instance of DateTime, null given, called in /usr/local/www/suitecrm/modules/Calendar/CalendarActivity.php on line 97 and defined in /usr/local/www/suitecrm/include/TimeDate.php on line 870
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined property: FP_events::$rel_users_table in /usr/local/www/suitecrm/modules/Calendar/CalendarActivity.php on line 188
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined property: Task::$rel_users_table in /usr/local/www/suitecrm/modules/Calendar/CalendarActivity.php on line 188
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined index: Meeting in /usr/local/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 232
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined index: Call in /usr/local/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 232
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined index: Task in /usr/local/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 232
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined index: Meeting in /usr/local/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 232
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined index: Call in /usr/local/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 232
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined index: Task in /usr/local/www/suitecrm/modules/Calendar/CalendarDisplay.php on line 232
[23-Aug-2016 08:01:41 Australia/Sydney] PHP Notice: Undefined property: Task::$rel_users_table in /usr/local/www/suitecrm/modules/Calendar/CalendarActivity.php on line 188

Just upgraded to 7.7.2 … Calendar still blank …

And tried to find point 2 (2. Calendar issues with Day, Week & Month views on 7.7.1 - Issue (github.com/salesagility/SuiteCRM/issues/1938) - PR - github.com/salesagility/SuiteCRM/pull/1993), but doesn’t seem to be present in 7.7.2 …

FYI, after implementing fix no 4 by samus-aran i upgraded to 7.7.2 with no issues.
Bear in mind i only have a couple of simple calendar entries.

That was because it was later set as wrong branch

https://github.com/salesagility/SuiteCRM/pull/2010

The above is the merged PR.