Author Topic: album offline  (Read 4488 times)

0 Members and 1 Guest are viewing this topic.

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
album offline
« on: March 17, 2008, 03:32:01 »
My album has gone offline. The URL for it:

http://www.ozpolitic.com/cgi-bin/album.pl

I checked cpanel and the file is there, 261kb, CHMOD 755.

I cannot attach the file - too large.
Founding member of

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: album offline
« Reply #1 on: March 17, 2008, 22:14:25 »
doesn't sound like a problem with album.pl. Have you tried any other scripts in that cgi-bin directory? Will they run?

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: album offline
« Reply #2 on: April 04, 2008, 21:56:42 »
I tried uploading all the files again - didn't work. There are no other scripts in the folder to test with.

Many of the images you have listed as gif or jpg here are png files. Is that a problem?
« Last Edit: April 04, 2008, 22:42:27 by freediver »
Founding member of

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: album offline
« Reply #3 on: April 06, 2008, 10:37:28 »
No, the images won't cause the problem... Since you're getting a 404 error the web server clearly isn't looking where the file is. I see you're using apache, which by default stores cgi-bin files in an alternate location (/var/www/cgi-bin instead of /var/www/html for example). If you look in the root of your home directory, is there a cgi-bin there too? (There may be two... one in your home dir, one in your web dir.)


Cheers
Mike

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: album offline
« Reply #4 on: April 06, 2008, 21:41:11 »
Yes there is one there also. I'll try copying the files into there.

Should there be any .htaccess file in the cgi-bin directory?
Founding member of

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: album offline
« Reply #5 on: April 07, 2008, 06:40:34 »
I tried copying the files into the other cgi-bin directory. I still get the same error. I checked the CHMODS again and also tried a fresh copy of album.pl. The relative paths will be all screwed up, but I don't think that matters if it can't even find album.pl - right?

On the other hand it can find this one in the public_html directory. I only copied the album.pl file there so it gets another error, but at least the server can find it. I guess that means I should reinstall somewhere else, but I'd rather not change all my URLs.

url=http://www.ozpolitic.com/  album.pl]http://www.ozpolitic.com/  album.pl/url] - edited, file now removed
« Last Edit: July 08, 2008, 04:50:57 by freediver »
Founding member of

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: album offline
« Reply #6 on: April 09, 2008, 13:13:46 »
Weird that it works from the web root like that, CGI scripts shouldn't even run there... you could drop the Modules dir in at the root too and see what happens. You're right though, first task is to get the web server to even find the script... after that you can worry about permissions etc.

When you dropped album.pl into the "other" cgi-bin dir did you get the same 404 message or was it something slightly different?

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: album offline
« Reply #7 on: April 09, 2008, 17:16:40 »
I get exactly the same error.

I've had two different hosts now and they both allow scripts to run from anywhere. Foe example my forum script is in the /forum directory, so I don't have cgi-bin in the URL, which is handy.
Founding member of

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: album offline
« Reply #8 on: April 11, 2008, 04:34:07 »
Well, I'd be tempted to just run album.pl from a regular old subdir then! The current "software error" you get is fixed by uploading the rest of the album files (Modules, etc.) You'd of course have to update your paths in album.cfg.

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: album offline
« Reply #9 on: April 11, 2008, 04:39:39 »
I have faith that the good people from hostingdepartment.net will respond to my support ticket in a timely manner, once they get their website back up and running.  ;D
Founding member of

Offline freediver

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +0/-0
    • OzPolitic
Re: album offline
« Reply #10 on: May 18, 2008, 05:06:02 »
Just an update. I eventually got round to copying the directory, and got it working after a bit of fiddling around. Shortly after, the host server crashed and has been offline for about four days. I signed up to a new host (iipanel.net - also dirt cheap, but good support) and the cgi-bin is working well. I also solved another problem with password protecting one of my albums by moving the album.pl into the password protected directory. All the PM files are in the cgi-bin/Modules and are being used by two different albums, but I had to copy the languages file and cfg file over with album.pl. Is there a simple guide to moving the album.pl file around and using multiple versions? I can never seem to get it right without a lot of trial and error.

If I try to create a folder where I don't have 'permission' I get this error:

Software error:

Undefined subroutine &main::javaAlert called at /home/ozpolit/public_html/cgi-bin/Modules/album_admin.pm line 1284.

For help, please send mail to the webmaster (webmaster@ozpolitic.com), giving this error message and the time and date of the error.

but it works OK if I create one in my members/freediver folder - no biggie, I can do it via ftp or cpanel.
« Last Edit: May 18, 2008, 05:08:45 by freediver »
Founding member of

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: album offline
« Reply #11 on: May 19, 2008, 11:48:51 »
The javaAlert function is in album_display.pm. When you get that message, it seems to be because album.pl can no longer find album_display.pm. (Whch is weird, since it can clearly find album_admin.pm!)

I guess checking the permissions, ensuring that all the module files are present, and checking your configured module path would be a good start.

Sounds like you're making progress though!