CGcalendar - no events in admin

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
akke
Forum Members
Forum Members
Posts: 13
Joined: Tue Jan 18, 2011 4:00 pm

CGcalendar - no events in admin

Post by akke »

In admin section, the events tab don't display any events. Events are in the database and shows in the calendar.

Sourcecode throw this error at line 219:

Code: Select all

function eraseCookie(name){createCookie(name,"",-1);}
$(document).ready(function(){var cur_date=new Date();var tmp=readCookie('calendar_date');if(tmp!=null)cur_date=new Date(tmp);$('#calendarview').fullCalendar({events:{url:'MASKED/admin/moduleinterface.php?mact=CGCalendar,m1_,admin_ajax_fetchevents,0&_sx_=03ac0c846e466e00&showtemplate=false',type:'GET',data:{'m1_showchildren':1},error:function(){alert('Oops... something happened when we were talking to the server, please try again');}},year:cur_date.getFullYear(),month:cur_date.getMonth(),date:cur_date.getDate(),header:{left:'prev,next,today',center:'title',right:'month,agendaWeek,agendaDay'},eventColor:'#009900',eventTextColor:'#ffffff',monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan.","feb.","mars","april","mai","juni","juli","aug.","sep.","okt.","nov.","des."],dayNames:,dayNamesShort:,buttonText:{today:'Today',week:'Week',month:'Month',day:'Day'},theme:true,firstDay:1,defaultEventMinutes:15,slotMinutes:15,editable:true,viewRender:function(view,element){cur_date=$('#calendarview').fullCalendar('getDate');createCookie('calendar_date',cur_date,7);},viewDestroy:function(view){closeDialog('#eventpreview');closeDialog('#find_panel');closeDialog('#find_results_panel');},eventClick:function(event,jsEvent,view){$('#event_start').html(formatDate(event.start,!event.allDay));$('#event_desc').html(event.summary);$('#eventpreview .parent_block').hide();$('#eventpreview .child_block').hide();if(event.child){$('#eventpreview .child_block').show();}
cmsms: 1.11.11
PHP: 5.5.19
mysql: 5.5.40
CGcalendar: 1.14.4
CGExtensions: 1.44.3
CGSimpleSmarty: 1.7.4
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: CGcalendar - no events in admin

Post by JohnnyB »

Some folks that had a similar problem found that their event foreground color was the same as the background color (white on white).
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
akke
Forum Members
Forum Members
Posts: 13
Joined: Tue Jan 18, 2011 4:00 pm

Re: CGcalendar - no events in admin

Post by akke »

This is in the admin section, not frontend.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: CGcalendar - no events in admin

Post by velden »

I don't see the error.

Sure you don't have the filter set to a month with no events?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: CGcalendar - no events in admin

Post by JohnnyB »

This is in the admin section, not frontend.
The admin has a new option to set the foreground and background colors for displaying events listed in the admin. For some, this started as white on white (don't know why).
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
akke
Forum Members
Forum Members
Posts: 13
Joined: Tue Jan 18, 2011 4:00 pm

Re: CGcalendar - no events in admin

Post by akke »

velden wrote:I don't see the error.

Sure you don't have the filter set to a month with no events?
Hi.

The filter option does not show. See screencapture. (Norwegian language)
CGcalendar.jpg
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: CGcalendar - no events in admin

Post by JohnnyB »

"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
chandra

Re: CGcalendar - no events in admin

Post by chandra »

Have you tried to grade down to PHP 5.4 yet?
reinhardmohr
Forum Members
Forum Members
Posts: 112
Joined: Sun Aug 06, 2006 2:36 pm
Location: Munich, Germany

Re: CGcalendar - no events in admin

Post by reinhardmohr »

Hi, I have the same problem here. No events are shown in the backend.
• German language
• CMSms 1.11.11
• CGCalendar 1.14.4
• CG Extensions 1.44.4
• php 5.5.18

I researched the forum and read the bug reports (some are closed already). So I tried a lot of different things and maybe I can provide some additional information:

• It happens only in German. English works fine. Dutch is fine, too. French throws an error as soon as I try to go to calendar in the backend: ERROR: at line 129 in file /mnt/web9/d2/65/52258765/htdocs/modules/CGExtensions/lib/jsmin.php:
Message: Unterminated string literal.
• Downgrading to php 5.3 helps, upgrading to php 5.6 does not help (my provider does not provide php 5.4).
• Another browser does not make a difference (Firefox instead of Safari).
• Uninstalling CGCalendar 1.14.4 and installing CGCalendar 1.14.3 does not make a difference.
• In German language there must be a problem with an umlaut, too: The German word for march (März) does not show in the monthly overview when the system is working in php 5.3. And adding a new event also shows a problem in the spelling for März in the dropdown list. I tried to edit the language file for the module but it didn't help.
• And: Even when the calendar is working in php 5.3 the colors for text and background are always set to white – no matter how I adjust the colors in the settings pane. So I can click the events as I know they are there. But I cannot see them.

It would be great if someone could help. Or maybe someone could reopen an already closed bug report?
Thanks a lot for reading and helping and providing this great CMS and the great modules!

Reinhard
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: CGcalendar - no events in admin

Post by Jeff »

If it is only with the different lang (English works correctly) then I would check the lang string file for the module and lang. There maybe a character in one of the strings that is causing problems in the admin template.
chandra

Re: CGcalendar - no events in admin

Post by chandra »

reinhardmohr wrote: • In German language there must be a problem with an umlaut, too: The German word for march (März) does not show in the monthly overview when the system is working in php 5.3. And adding a new event also shows a problem in the spelling for März in the dropdown list. I tried to edit the language file for the module but it didn't help.
What have you tried?

Have you tried debug mode too? Have you activate php error messages?
reinhardmohr
Forum Members
Forum Members
Posts: 112
Joined: Sun Aug 06, 2006 2:36 pm
Location: Munich, Germany

Re: CGcalendar - no events in admin

Post by reinhardmohr »

Hi,
thanks for posting replies and helping!
I tried two things:
1) The first thing I did was searching for the word "März“ in the German language file. It only occurs once in line 501. I changed it to „Maerz“. But this didn't help.
2) The second attempt to get things going was to copy all the content of the original file en_US.php to the German language file. But this didn't help either.

When I looked at the source code of the CGCalendar admin page it seems that the long names for the months are not loaded. Here I include some snippets:
This is the source code for German language in the admin and the original German language file:

Code: Select all

monthNames:,monthNamesShort:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],
This is the source code for German language in the admin and a German language file that is completely overwritten with the English language:

Code: Select all

monthNames:,monthNamesShort:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]
And this is the source code setting the overall language in admin to English and thus using the English language file:

Code: Select all

monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
IMPORTANT ! (at least I hope so?):
While I was just double checking the above information I noticed that while viewing the source code my browsers console marked the complete line 217 in red – thus indicating an error. It says:

Code: Select all

[Error] SyntaxError: Unexpected token ','
	(anonyme Funktion) (moduleinterface.php, line 217)
I am not a programmer – but maybe someone could use this information?

Thanks everybody for helping

Reinhard
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: CGcalendar - no events in admin

Post by Jeff »

monthNames:,monthNamesShort

In between the : and , is suppose to be a list of the full month names like it is in english.
reinhardmohr
Forum Members
Forum Members
Posts: 112
Joined: Sun Aug 06, 2006 2:36 pm
Location: Munich, Germany

Re: CGcalendar - no events in admin

Post by reinhardmohr »

Yes, here is the snippet from the German language file:

Code: Select all

$lang['cal_january'] = 'Januar';
$lang['cal_february'] = 'Februar';
$lang['cal_march'] = 'März';
$lang['cal_april'] = 'April';
$lang['cal_may'] = 'Mai';
$lang['cal_june'] = 'Juni';
$lang['cal_july'] = 'Juli';
$lang['cal_august'] = 'August';
$lang['cal_september'] = 'September';
$lang['cal_october'] = 'Oktober';
$lang['cal_november'] = 'November';
$lang['cal_december'] = 'Dezember';
But these names are not imported/included (I am not a programmer).

Except for the ä in März I don't see anything that could cause a problem. And I had already changed it to Maerz without a result.
So probably there is an error somewhere else in the code for the module?

Thanks for helping

Reinhard
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: CGcalendar - no events in admin

Post by Jeff »

You can maybe check the admin template for where the long month is getting setup for the javascript.

I don't any foreign lang sites so I can't debug it myself.
Locked

Return to “Modules/Add-Ons”