CGCalendar not displaying with error about cgc_utils

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
SFITCS
Forum Members
Forum Members
Posts: 11
Joined: Mon Aug 29, 2016 8:59 am

CGCalendar not displaying with error about cgc_utils

Post by SFITCS »

It seems I have the dependencies for CGCalendar installed, the back-end works as it should, but the Calendar does not display. Server logs show errors every time I create an event. Nothing installed provides the class mentioned in the error messages (could it require the module CGContentUtils??)

server log error:-

Code: Select all

PHP Fatal error:  Class 'cgc_utils' not found in /var/www/cmsms/modules/CGCalendar/action.admin_add_event.php on line 74, referer: $Blah/cmsms/admin/moduleinterface.php?mact=CGCalendar,m1_,admin_add_event,0&_sk_=e6e9f967a48228b3&m1_event_id=-1&m1_submit=Submit&m1_startdate_Month=09&m1_startdate_Day=7&m1_startdate_Year=2016&m1_startdate_Hour=09&m1_startdate_Minute=00&m1_enddate_valid=1&m1_enddate_Month=09&m1_enddate_Day=7&m1_enddate_Year=2016&m1_enddate_Hour=11&m1_enddate_Minute=00&m1_event_title=Practise%20session&m1_event_recur_period=weekly&m1_event_recur_interval=1&m1_event_recur_date_Month=09&m1_event_recur_date_Day=7&m1_event_recur_date_Year=2016&m1_event_recur_count=-1&m1_module_error=One%20or%20more%20of%20the%20date%20values%20entered%20were%20invalid&m1_do_get_from_params=0
CGCalendar/action.admin_add_event.php line 74:-

Code: Select all

if( isset($params['do_get_from_params']) && $params['do_get_from_params'] == 1 ) \cgc_utils::get_event_from_params($event,$params);
CMSMS v2.1.5 with modules AdminSearch v1.0.2, CGCalendar v2.1.4.1, CGExtensions v1.53.10, CGSimpleSmarty v2.1.2, CGSnapshot v1.2.1, CMSContentManager v1.1.1, CMSMailer v6.2.14, DesignManager v1.1.1, FileManager v1.5.2, MicroTiny v2.0.3, ModuleManager v2.0.4, Navigator v1.0.3, News v2.50.5, and Search v1.50.2.
Server is Debian Jessie with apache2 v2.4.10-10+deb8u, php5 v5.6.24+dfsg-0+d and mysql-server v5.5.50-0+deb8u1.
SFITCS
Forum Members
Forum Members
Posts: 11
Joined: Mon Aug 29, 2016 8:59 am

Re: CGCalendar not displaying with error about cgc_utils

Post by SFITCS »

SFITCS wrote: server log error:-

Code: Select all

<snipped>
_sk_=e6e9f967a48228b3&m1<snipped>
Aha, got it! PEBCAK. the sk value is used in the GET for fullcalendar javascript... a dependency of my calendar template. When I looked for that I found it was loaded too early.

I corrected the order in which javascripts are called in the head and now the error disappears from the server logs, and the calendar now displays (bonus).
Locked

Return to “Modules/Add-Ons”