| Author |
Message |
wilson
Beginner


Joined: Aug 19, 2003 Posts: 18
|
Posted: Thu Sep 04, 2003 11:33 am Post subject: Problem with adding photos by URL |
|
|
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?
----
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): |
|
| Back to top |
|
|
AdBot
|
| Post subject: Problem with adding photos by URL |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Thu Sep 04, 2003 12:25 pm Post subject: |
|
|
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/ |
|
| Back to top |
|
|
wilson
Beginner


Joined: Aug 19, 2003 Posts: 18
|
Posted: Thu Sep 04, 2003 9:00 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
|
slackbladder
Moderator


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


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Fri Sep 05, 2003 4:32 am Post subject: |
|
|
| Also what Graphics Toolkit are you using? ImageMagick or NetPBM? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Fri Sep 05, 2003 7:34 am Post subject: |
|
|
| is the web server running on your XP machine? if so, is it apache or IIS? |
|
| Back to top |
|
|
wilson
Beginner


Joined: Aug 19, 2003 Posts: 18
|
Posted: Sat Sep 06, 2003 3:22 am Post subject: |
|
|
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. |
|
| Back to top |
|
|
wilson
Beginner


Joined: Aug 19, 2003 Posts: 18
|
Posted: Fri Sep 12, 2003 9:12 am Post subject: |
|
|
any input, anyone!?  |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Fri Sep 12, 2003 9:19 am Post subject: |
|
|
Do you have access to your web servers ERROR LOG?
Does uploading single images work OK? |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
|
| Back to top |
|
|
wilson
Beginner


Joined: Aug 19, 2003 Posts: 18
|
Posted: Mon Sep 15, 2003 10:59 am Post subject: |
|
|
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!
-__- |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
|
| Back to top |
|
|
wilson
Beginner


Joined: Aug 19, 2003 Posts: 18
|
Posted: Tue Sep 16, 2003 3:19 am Post subject: |
|
|
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. =\ |
|
| Back to top |
|
|
|
|
|
|
|