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


Login with username, password and session length

Search

 
Advanced search

8040 Posts in 1853 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: ASCII Trouble  (Read 426 times)
0 Members and 1 Guest are viewing this topic.
mc_sassenach
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: June 22, 2005, 09:14:00 PM »

Calendar.pl dispays correctly as does calendar_admin.pl

I can edit the display however I cannot enter events, having searched this forum for an answer, I ran debug.pl
and it is telling me that about 30 files mostly from my template folder were not tranferred in ASCII which they definately were using 3 different methods to be sure!

My next hunch is that as I am uploading from a windows machine to an Apache server that I may need to use the tar.gz download however my expertise falters at this point

could anyone give me guidence on how to install the tar.gz download I have reaserched gzip and tar and it's all greek to me!

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #1 on: June 22, 2005, 10:44:00 PM »

** I am uploading from a windows machine to an Apache server that I may need to use the tar.gz download however my expertise falters at this point **

I doubt it but it wouldn't hurt to try.

BTW. Do not rely on an FTP client's 'automatic detection' to choose which files to transfer in ascii mode. Set it to use ascii mode manually.

** could anyone give me guidence on how to install the tar.gz download **

First just try unzipping (like with WinZip) it locally and FTPing those files. Maybe the ones in the .zip file you tried first where just corrupt?

Failing that, check with your host as you'll need shell access to un-tar the files directly on the server. I'm sure they would installed them for you if you just asked.

JMO

Dan O.


[This message has been edited by DanO (edited July 25, 2005).]

Logged
mc_sassenach
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: June 23, 2005, 10:59:00 PM »

"First just try unzipping (like with WinZip) it locally and FTPing those files. Maybe the ones in the .zip file you tried first where just corrupt?"

do you mean the .zip download or the tar.gz one

If you mean .zip, ...i tried

I also set the ASCII mode manually

one thing I did discover when I first tried to set it up was that the path to perl needed to be changed to

#!user/bin/perl -w

for the apache server, this probably irrelevant to this problem but I thought it worth a mention.

so....does this just leaves me with the tar.gz option?

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #3 on: June 24, 2005, 01:25:00 AM »

** do you mean the .zip download or the tar.gz one **

I meant the .gz but you can try another download of the .zip too if the .gz isn't any better for you.

** I first tried to set it up was that the path to perl needed to be changed to #!user/bin/perl -w **

That will be different on just about every server. Check your host's CGI FAQs.

Dan O.

------------------

Logged
mc_sassenach
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: July 25, 2005, 08:45:00 AM »

I have tried the .gz install and I am still getting the "file not transferred using ASCII" when I run debug.pl

I have even transferred every file manually (one by one!), to be sure. But STILL I get that same result!

It even looks like others have a simllar problems
http://www.calendarscript.com/support/forum/Forum2/HTML/000860.html  

I am at the end of my tether now, I have followed your instructions and scoured this forum, but I seem to be getting nowhere. It looks like I am going to have to pay extra for a system that is easier to set up.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #5 on: July 25, 2005, 12:38:00 PM »

** It even looks like others have a similar problems **

I don't see anywhere in the message you linked to that says files were not transferred an ascii mode. Just because someone is having a problem of some kind does not mean it is the same cause as yours.

** I have even transferred every file manually (one by one!), to be sure. But STILL I get that same result! **

Maybe try asking your host's support if they can suggest anything?

Dan O.

------------------

Logged
mc_sassenach
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #6 on: August 05, 2005, 10:43:00 PM »

Ok, I seem to have managed to install and set up the calendarscript after 2 months of headbanging!

I thought it may be helpful to someone else and save them a lot of trouble, if I expained how I did it.

I am uploading from a Windows PC to a remote Apache server,

First off I tried the install.bat method

I found that calendar.pl & calendar_admin.pl only returned a white "file not found" screen unless I modified the path to perl to "!# user/bin/perl -w" the "-w" apparently is simply to tell the server to report errors, search me but, it wouldn't work without it! I do believe some other Apache users have also encountered this anomaly.

After that my next problem was that events were not appearing in the calendar or the list for approval, although they were listed in the event files.

Debug returned a huge list of files "Not transferred in ASCII" No matter what I did, and whatever ftp program I tried I got the same result. I even tried uploading every file indiviually whist setting the default ftp to ASCII and resetting it before each transfer. STILL NO LUCK! I tried AceFTP, CuteFTP, WSFTP, FileZilla you name it!

Next I tried downloading the tar.gz version. I learned about tar files and gzip....in the end I found a program called 7-ZIP that untarred and unzipped the files in a jiffy.

still the same event and FTP problems and debug.pl was the same.

I looked at the untarred files on my PC in notepad and immediatly recognized that there were no line breaks and that the code looked slightly different from the files in the 321.zip download.

Working on a hunch that somehow in the ftp process these files were getting corrupted or the ftp was not really transferring in ASCII despite my efforts, I resorted to the command prompt.

First, I used my ftp program and uploaded the whole application to the cgi-bin on the apache sever, then I deleted all the files in Calendarscript so that I was left simply with the emplty directory structure.

I went to the command prompt and used the "cd" command to get to the local files on my PC and then used the ftp command and logged into my server. I then "cd'd" to the calendarscript directory. Taking one folder at a time I first used the command "ascii" and then "mput * folder.name" I then had approve every individual transfer. It took a long time and I had to log out and back in a number of times, but eventually I had refilled all the directories with the correct files.

Then I went through and reset the file permissions as stated in the setup instructions.

I tried to view calendar.pl and once again, "file not found"! but then I remembered the "!#user/bin/perl -w" anomaly and made the change and.......hey presto!

can you believe it, it works!

I know, it doesn't make sense but that how I did it!

This is a really cool app, but the set up problems appear to differ greatly across different platforms, and there are a bunch of queries in the "Getting Started" thread that address similar issues to the ones I faced.

It would be useful if someone took the time to compile a list of the "quirks" that have been discovered with differrent OS and servers (there are many scatterred across this forum) so that the "blind or stupid" LIKE ME do not have to suffer...quite as much!

Now I have it working, I just need to persuade my bosses to cough up the $50 to pay for my 2 months of headbanging!

The moral of this story?....DON'T GIVE UP!

I hope this saga will be a help or " a warning" to someone!

------------------

[This message has been edited by mc_sassenach (edited August 05, 2005).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

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


WWW
« Reply #7 on: August 06, 2005, 12:21:00 AM »

** I learned about tar files and gzip....in the end I found a program called 7-ZIP that untarred and unzipped the files in a jiffy. **

WinZip will handle .tar.gz files.

** Now I have it working **

Glad to hear it.

Dan O.

------------------

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