Topic Title: Problem with adding photos by URL

Forum Index » Gallery 1 Integration » Problem with adding photos by URL
Topic URL: http://www.nukedgallery.net/postt215.html

AuthorMessage
Post Title: Problem with adding photos by URL
wilson
Joined: Aug 19, 2003
Posts: 18

Posted: Thu Sep 04, 2003 11:33 am
My gallery is basically working ok. I tried uploading photos by using the URL method. I first created /tmp under the web parent path.

After submitting the URL by typing "tmp", the photo paths were displayed correctly. The I moved on and clicked "add files". A small windows prompted up and the it just turned blank. It didn't response.

Anyone knows how i can fix this problem? Embarassed

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.3.4-pl1
Apache version:
PHP version (don't just say PHP 4, please): 4.3.1
Graphics Toolkit:
Operating system: WINXP SP1
Web browser/version (if applicable):

AuthorMessage
Post Title:
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Sep 04, 2003 12:25 pm
make sure that the directory is readable by all users (set perms to 0777 temporarily).
you'll also want to make sure you're typing in the whole URL, not just "tmp/", for example:
http://www.mysite.com/tmp/

AuthorMessage
Post Title:
wilson
Joined: Aug 19, 2003
Posts: 18

Posted: Thu Sep 04, 2003 9:00 pm
Thx for the advice. I tried but it still could not fix the problem. As I am using WinXP, I think "0777" is not an issue. I typed out the whole URL. Somehow files under /icons/ were appeared as well.

Anyway, I picked a single file for uploading. The small window prompted up and it turned blank agan. Neutral

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Fri Sep 05, 2003 4:29 am
Re-run gallery/setup and turn DEBUG ON - then post the ERROR message that is generated here.

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Fri Sep 05, 2003 4:32 am
Also what Graphics Toolkit are you using? ImageMagick or NetPBM?

AuthorMessage
Post Title:
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Fri Sep 05, 2003 7:34 am
is the web server running on your XP machine? if so, is it apache or IIS?

AuthorMessage
Post Title:
wilson
Joined: Aug 19, 2003
Posts: 18

Posted: Sat Sep 06, 2003 3:22 am
I turned the debug mode on but I didn't see any error message. Would there be an error log or something?

To the graphics toolkit, I am using NetPBM and I didn't not install ImageMagick.

I am using WinXP with apache.

AuthorMessage
Post Title:
wilson
Joined: Aug 19, 2003
Posts: 18

Posted: Fri Sep 12, 2003 9:12 am
any input, anyone!? Sad

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Fri Sep 12, 2003 9:19 am
Do you have access to your web servers ERROR LOG?

Does uploading single images work OK?

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Fri Sep 12, 2003 9:31 am
Try here:

http://gallery.menalto.com/index.php?na ... pic&t=6081

AuthorMessage
Post Title:
wilson
Joined: Aug 19, 2003
Posts: 18

Posted: Mon Sep 15, 2003 10:59 am
Yes, I've found this from the error log:

[Mon Sep 15 23:43:53 2003] [error] PHP Warning: (null)() [<a href='http://www.php.net/ref.outcontrol'>ref.outcontrol</a>]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0
jpegtopnm: WRITING PPM FILE
pnmscale: Scaling by 0.375000 horizontally to 150 columns.
pnmscale: Scaling by 0.376667 vertically to 113 rows.
pnmscale: 0.000000 of right column stretched due to arithmetic imprecision
pnmscale: 0.000000 of bottom row stretched due to arithmetic imprecision

It wasn't working even if I uploaded one picture. I guess size should not be the reason to the problem.

Something is very weird, I uploaded a picture again with "Debug" mode on and all of the sudden it' was working and I was using the host machine. Then i turned off the debug mode and it worked too.

As for completeness, I tried that with another machine as well and then the same problem came back. I turned on the debug mode again, it wasn't working. Switched back to the host machine, it's still not working. Back to point 0 again. How weird!

-__-

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Mon Sep 15, 2003 11:30 am
Found this on GALLERY forums - may help your problem:

http://gallery.menalto.com/index.php?na ... pic&t=8490

Looks like a compression problem with PHP

AuthorMessage
Post Title:
wilson
Joined: Aug 19, 2003
Posts: 18

Posted: Tue Sep 16, 2003 3:19 am
I had a look at the link you gave me from Gallery forums. It suggested that the error was caused by calling "ob_gzhandler" twice without calling "ob_end_clean();".

I searched for the content of the gallery files, and I couldn't find any coding that is calling "ob_gzhandler", so there is nothing I can do.

One more observation, I found that even though the little window turned blank... the picture was uploaded to the album's folder and a thumb version of the picture was created [by viewing the actual file directory]. However, when I viewed the album through gallery, it had no content. =\

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group