Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8054 Posts in 1860 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationProblems and SolutionsCannot Add Events - Same Problem Others Had...
Pages: [1]   Go Down
Print
Author Topic: Cannot Add Events - Same Problem Others Had...  (Read 1582 times)
0 Members and 1 Guest are viewing this topic.
bizcoach_designer
New Member
*

Karma: 0
Offline Offline

Posts: 11


« on: December 17, 2007, 07:35:36 PM »

Hello Everyone!  I read the post from July/August where someone could not add events.  I am having the same problem.  When I go through the process to add the event and then to add the times, I get a success message from both screens.  However, the event does not appear on the calendar.

I can see that the system has added the information to calendars/default/events.txt and to calendars/default/schedule.txt but I cannot see the events on the actual calendar.

When I click to edit/delete events they do NOT show up there.

When I click to approve events, they do NOT show up there either. 

Here is what I have done to trouble-shoot:

     - I have double-checked the permissions and all folders and files in calendarscript are 777 (calendar.pl and calendar_admin.pl are not under calendarscript and are both 755).

     - I have cleared the cache for temp files and cookies.

     - I am logged in as the Administrator.

     - I have even checked to make sure that the text color is one that would be visible.


I do not know what else to check.

Can anybody tell me what could be wrong?

BTW, I do not understand the comments about the Events.inc file and I also do not want to remove the approval process anyway.

Anything that can be shared to help me resolve this is appreciated.

Thanks!
Logged
DanO
Full Member
***

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: December 18, 2007, 02:38:58 AM »

** I do not understand the comments about the Events.inc file **

Since we do not know which message you're referring to, it is impossible for us to try to explain.

** the event does not appear on the calendar **

Check for a corrupted events.txt or schedule.txt file as per previous forum message "line-feeds in events.txt == "missing" events".

I don't know what else it could be if the data was actually added to those files.

JMO

Dan O.

Logged
bizcoach_designer
New Member
*

Karma: 0
Offline Offline

Posts: 11


« Reply #2 on: December 21, 2007, 12:50:47 AM »

Thanks, DanO, for your response.  I checked the events.txt file for the line-break and "M" issue mentioned in the post you referenced.  I do not see anything to indicate that this is the problem.

Here is a copy of what is in the calendars/default/events.txt file:

Quote
#format:id   parent_id   title   description   author_id   author_name   time_added   private   approved

2      Test Event   nothing more to day   Administrator      1197933495   0   yes
3      test event   nothing here   Administrator      1197933661   0   
4      Test Event   testing   Administrator      1198214528   0   

Here is a copy of what is in the calendars/default/schedule.txt file:

Quote
#format:id   event_id   start   end   recurrence_type   recurrence_id   month   date   day   which   all_day   start_time   end_time   recurring_schedule

3   2   1198065600   1198065600         12   19            1200   1300   
4   3   1198072800   1198072800         12   19            1400   1600   
5   4   1198540800   1198540800         12   25         1         


I am not a programmer so I do not know how to check for corruption other than to follow specific instructions (smile).  As stated above, I did not see the symbols mentioned in the post you referenced (\n or M).


You mentioned that you did not know which message I was referring to in regards to the Event.inc file.  The message was posted on July 31st with a title of: "Re: Cannot add events".  I have pasted it below:

Quote
I've added events (They are in the events.    txt & schedule.    txt files) But they are not appearing on the calendar or in the Add/Edit in the admin utility.   

When I comment out the following in the Event.  inc the event appears. 
# Skip the event unless it's approved
# next unless ($event_details->{$s->{'event_id'}}->{'approved'});

Update: The solution was found in another part of the forum. . . 
the server permissions for all files & folders under calendarscript need to be chmod to 777.

I don't know that this has anything to do with the problem I am experiencing.

DanO, I hope you can help me get this resolved.  Please let me know if there are other files that should be checked.

Thanks!
Logged
DanO
Full Member
***

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: December 21, 2007, 10:18:29 PM »


A corrupted file might look like:

Quote
#format:id   parent_id   title   description   author_id   author_name   time_added   private   approved

2      Test Event   nothing more to day   Administrator      1197933495   0   yes
3      test event   nothing here   Administrator      1197933661   0   

4      Test Event   testing   Administrator      1198214528   0
5      Testing Event   test   Administrator      1198214528   0

or

Quote
#format:id   parent_id   title   description   author_id   author_name   time_added   private   approved

2      Test Event   nothing more to day   Administrator      1197933495   0   yes
3      test event   nothing here   
Administrator      1197933661   0   
4      Test Event   testing   Administrator      1198214528   0
5      Testing Event   test   Administrator      1198214528   0


Try looking around the records that aren't displaying or slightly before them.

Dan O.
Logged
DanO
Full Member
***

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: December 21, 2007, 10:22:43 PM »


On second thought, is this a brand new installation and are those the only events which have been added thus far?

If so, try downloading a fresh archive and reuploading the script. There may be a problem in some of its files.

If this is a previously operating installation, look for problems in the data files.

JMO

Dan O.
Logged
bizcoach_designer
New Member
*

Karma: 0
Offline Offline

Posts: 11


« Reply #5 on: December 21, 2007, 11:17:37 PM »

It's a brand new installation.  Great idea to download the files again.  I'll give that a try.

In the meantime, I ran the debugger script and it says that files were not uploaded in ASCII.  I know that I did upload them in ASCII but just to be sure, I deleted everything, double-checked the upload mode and uploaded everything again being sure it was done in ASCII mode.

Same problem...same message in the debugger.

I will now try deleting all copies of the script and downloading it again from the calendarscript website.  I'll let you know if that works.

Thanks for responding to my messages!
Logged
bizcoach_designer
New Member
*

Karma: 0
Offline Offline

Posts: 11


« Reply #6 on: December 22, 2007, 01:38:59 AM »

Okay, I did a fresh install after downloading the archive again.  Same problem. 

I ran the debugger again and took special notice of which files were listed as not being uploaded in ASCII.  Next, I individually deleted and reuploaded each of those files...a long, tedious process.

Side Note: Previously I had uploaded the whole folder so it would retain its directory structure, so the files were not being uploaded individually.  I had my FTP program (CuteFTP v6.0) set for uploading in ASCII.  I learned from this experience that even if you set it to ASCII, if there are files in the group that are binary, they will not be uploaded in ASCII unless you do it individually.

Back to the story...

After uploading all the listed files individually and then adjusting the CHMOD as required, I then ran the debugger again and this time I got a new message:

Quote
CalendarScript Debugger

There is a problem with generation a unique session ID for cookies.

The unique ID that was generated is: 0

Please report this using the Support Forum so that this problem can be fixed and systems with your configuration may be supported. Once this problem is fixed, please re-run this debugger to check for any further errors!


So - as requested - I have now "officially reported" this problem using the forum.  Smiley  Does anyone know who will be fixing this and when that might happen?  Is there any further information needed from me?

I was trying to get this resolved so I can finish this project this weekend.

Anything towards that goal would be a big help.

Thanks!
Logged
bizcoach_designer
New Member
*

Karma: 0
Offline Offline

Posts: 11


« Reply #7 on: December 22, 2007, 02:36:30 AM »

Oh, my...another mystery...

I went back to the page where I had gotten the message that a unique session ID could not be created and I clicked the refresh button, just for the heck of it.  This time I got a message that said:

Quote
CalendarScript Debugger

Success!

No problems were found with your installation.
You should be able to run calendar and calendar_admin successfully!


Oh joy!...well, not quite...

I then went to the admin panel and entered an event (there was no longer an "approved" field, but we'll let that go for now).

In the drop down menu in the admin panel, I then clicked "view calendar" so I could see if the event would show up.  This time I got an error message that says:

Quote
ERROR:

The template file specified does not exist.

This is the URL that was shown:  http://www.espartnersinart.org/cgi-bin/calendar.pl?template=add_edit_event.html?calendar=default

I then went to make sure the add_edit_event.html was in the directory.  It is. 

Just to give it another try, I deleted that file and uploaded it again, taking care to use ASCII and change the CHMOD to 777.

Same problem.

I opened another window and used the public URL to view the calendar and viola!...the event was listed!  However, when I clicked the event name, I got the same error message as above.  This time the URL shown was: http://www.espartnersinart.org/cgi-bin/calendar.pl?template=add_edit_event.html?view=Event&event_id=2


Not quite sure what to make of this or how to resolve it.  The script is not "seeing" the add_edit_event.html file. 

In the meantime, I have deleted all cookes and temp files and restarted the computer, just to be sure there wasn't anything in the cache that was effecting this.  Same error message as above when attempting to view calendar from the admin panel and also when I click the event title on the calendar.

Any ideas on what to try next?

Thanks!
 
Logged
DanO
Full Member
***

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #8 on: December 22, 2007, 03:39:53 AM »

When you re-uplaod the files did you go though the setup process again?

**  ww.espartnersinart.org/cgi-bin/calendar.pl?template=add_edit_event.html?calendar=default **

That is not the correct URL. It should be ... /cgi-bin/calendar_admin.pl?template=add_edit_event.html

and there should be no second "?" in it.

What you're seeing is what can happen if you hadn't yet gone through the setup process in the proper manor as the administration URL will not have been set yet or if set, set incorrectly.

JMO

Dan O.
« Last Edit: December 22, 2007, 03:43:17 AM by DanO » Logged
bizcoach_designer
New Member
*

Karma: 0
Offline Offline

Posts: 11


« Reply #9 on: January 14, 2008, 05:56:49 PM »

Just so everyone knows what finally happened Grin. . . I ended up re-installing yet again. . . this time I uploaded each file one at a time to be sure the FTP didn't switch to auto.   That and manually changing the permissions on each file did the trick.   Tedious, but it worked.

Thanks for the input and help in getting this resolved.

 
Logged
Pages: [1]   Go Up
Print
Jump to: