Author Topic: Album no longer works.  (Read 3306 times)

0 Members and 1 Guest are viewing this topic.

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Album no longer works.
« on: March 30, 2003, 16:37:44 »
http://www.jupitreas.com/cgi-bin/temp/album.pl

I uploaded the files again, changed their permissions but  just after it starts the configuration screen it stalls.

All happened after I was uploading a few photos. One of the photos did not give an upload succesful message and after that album did not work anymore...

Does it look like I'm forgetting something?
Thats how he drinks, ice cold, no mistakes

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album no longer works.
« Reply #1 on: March 30, 2003, 18:50:14 »
404 means the file isn't there any more!! If you fix that, you'll be on the right track.

At the moment, it's not an album.pl problem... :)

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Album no longer works.
« Reply #2 on: March 30, 2003, 18:53:32 »
check this one: http://www.jupitreas.com/cgi-bin/album/album.pl

its not a 404 error...

oh thanks for the fast response!

basically the first bit of the configuration screen is shown and then nothing! If I hand edit the cfg file and then set the first time running thing to false nothing shows up! I began to wonder if it is from the webhost...
Thats how he drinks, ice cold, no mistakes

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album no longer works.
« Reply #3 on: March 30, 2003, 18:57:39 »
Yeah, something's definitely wrong there. What happens when you turn on debugging? That should give a better indication of where the failure is...

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Album no longer works.
« Reply #4 on: March 30, 2003, 18:59:10 »
how do u turn on debugging?

one other thing, the webhost didn't have md5, would that be the cause?
« Last Edit: March 30, 2003, 19:00:47 by alperuzi »
Thats how he drinks, ice cold, no mistakes

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Album no longer works.
« Reply #5 on: March 30, 2003, 19:38:12 »
ok I found out about the debugging and went ahead with it...
it detects the browser, then returns 0 then it says

8103: Configuring album for the first time.

shows the debug level (2)

then shows the text for the cgi_dir but doesn't show the field and stalls there.

here's what I get when I change to configured mode:
Code: [Select]
326: Starting execution, debugging is on (2)...

7827: Reading configuration information from /home/users/J/jupitreas.com-56171/public_html/Album//album.cfg...

7911: No local config file found, returning...

9975: Cookie Contents Follow:

9989: [YaBBusername] = [alperuzi]

9989: [YaBBpassword] = [something]

9989: [albumusername] = [alperuzi]

9989: [albumpassword] = [something]
« Last Edit: March 30, 2003, 19:56:22 by alperuzi »
Thats how he drinks, ice cold, no mistakes

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album no longer works.
« Reply #6 on: March 31, 2003, 15:16:03 »
Hmmm. It seems to be dying on this command:

$::cwd=cwd;

Try commenting that line out (384ish) to see if it gets any further...

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Album no longer works.
« Reply #7 on: March 31, 2003, 16:04:11 »
yeah, that did it I think.

At least I'm able to view the page now!
Thanks,

oh and whats the catch? why would it do this?
Thats how he drinks, ice cold, no mistakes

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album no longer works.
« Reply #8 on: March 31, 2003, 16:25:19 »
It looks like your server doesn't have the Cwd package installed. Not really that important, it'll just cause some of your "newconfig" guesses to be really wrong. An album that's already set up doesn't need this at all...

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Album no longer works.
« Reply #9 on: March 31, 2003, 16:29:50 »
ok, so that would be why I cannot run with newconfig=true right?

looks like I'll have to manually edit the files :)
I still don't get how it worked perfectly when I first installed the board though.

Thanks a lot Mike, this script awesome!
Thats how he drinks, ice cold, no mistakes

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album no longer works.
« Reply #10 on: March 31, 2003, 16:52:04 »
Yeah, that's exactly why the config screen would hang initially. Not sure why the sudden change though... :(

Well, hopefully you'll get it in working order now...

Cheers

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Album no longer works.
« Reply #11 on: April 01, 2003, 01:22:07 »
well, the album works, I haven't encountered any login or cookie problems yet but have a new problem  :)

I want to use Image Magick to make thumbnails and resize my photos, so I set the directory and upload the pic but it does not resize and when creating the thumbnails stops with this code:

Code: [Select]
7721: $::file=/home/users/j/jupitreas.com-56171/public_html/album/Party_5.JPG, $myobject=Party_5.JPG

10208: Entering subroutine: genThumb(/home/users/j/jupitreas.com-56171/public_html/album/Party_5.JPG,/home/users/j/jupitreas.com-56171/public_html/album//thmb_Party_5.JPG,0)
Thats how he drinks, ice cold, no mistakes

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album no longer works.
« Reply #12 on: April 01, 2003, 07:31:13 »
Wow, that's really weird. There's no "dangerous" stuff between that and the next debug statement:

Code: [Select]
   debug("Entering subroutine: genThumb($myobject,$image_thumb,$mode)",4,__LINE__);

   $system_call="\"$::imagemagick/convert\" ";
   if ($::thumb_quality)
   {
      $system_call.="-quality $::thumb_quality ";
   }

   # Some older ImageMagick installs don't know "resize" so use "scale" instead
#   $system_call.="-scale ";
   $system_call.="-resize ";

   if ($mode)
   {
      $system_call.="$::pic_resize";
   }
   else
   {
      if ($::thumb_width)
      {
         $system_call.=$::thumb_width;
      }
      if ($::thumb_width || $::thumb_height)
      {
         $system_call.="x";
      }
      if ($::thumb_height)
      {
         $system_call.=$::thumb_height;
      }
   }
   $system_call.=" \"$myobject\" \"$image_thumb\"";

   # Resize into desired quality and dimensions
   debug("IMAGEMAGICK: $system_call",2,__LINE__);

It just sets a variable and then debug output's it. If possible, your best bet is to copy debug statements within this block to try to isolate where it's failing...

Offline alperuzi

  • album.pl Tester
  • **
  • Posts: 22
  • Karma: +0/-0
  • Hasta la bu Vista
Re:Album no longer works.
« Reply #13 on: April 01, 2003, 18:29:18 »
ok now I think I found what the problem is, convert is returning a 0 for the status message instead of -1 when there is no errors.

I actually tested this with Gallery 1.3.3 and it also caused problems while generating thumbnails. When I changed the error identifier from -1 to 0 everything began working!

Is there a way to change this in album too?
Thats how he drinks, ice cold, no mistakes

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album no longer works.
« Reply #14 on: April 02, 2003, 09:17:33 »
That should be fine! album.pl actually ignores the return code, and just displays errors from convert, if there were any...

If you disable using imagemagick with album.pl temporarily, does it work?