Author Topic: Download Image Downloads Zero Kb currpt image.  (Read 9571 times)

0 Members and 1 Guest are viewing this topic.

Offline geniusrohit

  • Pre-Newbie
  • Posts: 2
    • View Profile
Download Image Downloads Zero Kb currpt image.
« on: August 06, 2008, 05:15:49 PM »
Hello ,

URL : http://www.rajmudra.com
Version : 1.7.6

Error Description : Whenever any user ( Admin/Normal User/Guest) tries to download image or download as zip it downloads 0 Kb Currupt file. But while showing in gallery it shows proper.
Please Help me out.

Rohit

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Download Image Downloads Zero Kb currpt image.
« Reply #1 on: August 06, 2008, 05:22:21 PM »
Hello,

GZip ask the level of compression in the ACP to 0.

Then it should go . Gzip or off

nobby

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Download Image Downloads Zero Kb currpt image.
« Reply #2 on: August 06, 2008, 05:43:37 PM »
Its because of these error messages:
Quote
<br />
<b>Warning</b>:  file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <b>download.php</b> on line <b>235</b><br />
<br />
<b>Warning</b>:  file_get_contents(http://domain/orkut/albums2/ATYAAABik98jy05U8Iw1wFvKXr-2DUrTFGV
(actual paths are edited ;))

You have three choices:
1) don't use remote images
2) contact your host administrator and ask them enable allow_url_fopen option in PHP settings.
3) move your site to another host.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline geniusrohit

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Download Image Downloads Zero Kb currpt image.
« Reply #3 on: August 07, 2008, 05:49:08 AM »
thanks. I will check out and will get back soon if it successful or not  thanks

Offline husk

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Download Image Downloads Zero Kb currpt image.
« Reply #4 on: August 19, 2008, 09:49:04 PM »
thanks. I will check out and will get back soon if it successful or not  thanks
   
I have the same problem with my gallery, I have tried many things, even reinstall 4images but nothing happens and I still downloading images from 0 kb, please someone who can help

my web gallery: www.psplaylife.com/gallery

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Download Image Downloads Zero Kb currpt image.
« Reply #5 on: August 20, 2008, 01:20:23 AM »
If you have access to server logs, check for any errors.

Otherwise, in global.php replace error_reporting(E_ERROR E_WARNING E_PARSE);


with this:error_reporting(E_ALL);

After that download your image again and open it in a text editor, see if anything useful in it ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline husk

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Download Image Downloads Zero Kb currpt image.
« Reply #6 on: August 21, 2008, 12:56:01 AM »
I have been working all day with this and I have not even given any solution to the problem, I think my hosting supplier does not know where the problem lies, we comment on something that could be related to the function: allow_url_fopen is not it?
He told me what could make serious attempt to install Gallery or Coppermine, but I am very pleased with 4images and I do not want to change it.
anything I can tell to my supplier to solve the problem?
Thanks a lot.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Download Image Downloads Zero Kb currpt image.
« Reply #7 on: August 21, 2008, 02:29:29 AM »
So, did you do what I suggested above?

P.S. are you using remote URL for your image downloads?

P.P.S. strange, but zip download works fine...did you change anything in download.php file?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline husk

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Download Image Downloads Zero Kb currpt image.
« Reply #8 on: August 21, 2008, 07:19:48 PM »
here this everything I have done:

after realizing the problem again got the files via FTP replacement, as anything other hand, reinstall the application (both erasing all the files as the database) and the problem remained, after I contacted my hosting provider and told me he was going to review the problem, we discuss about allow_url_fopen option but I am not resolve anything

As for what if I'm using remote images, no, I did not, the images are hosted on my site, and he reviewed what the zip and if you download it but when it comes to expand it does not open the file is corrupted.

One thing I do not understand is this:

Quote
Its because of these error messages:
Quote
<br />
<b>Warning</b>:  file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <b>download.php</b> on line <b>235</b><br />
<br />
<b>Warning</b>:  file_get_contents(http://domain/orkut/albums2/ATYAAABik98jy05U8Iw1wFvKXr-2DUrTFGV
(actual paths are edited Wink)
What is?

I replace the text in global.php

and not even not change anything in download.php

thanks for you time V@no.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Download Image Downloads Zero Kb currpt image.
« Reply #9 on: August 22, 2008, 01:05:32 AM »
That error message tells that you can not use remote images in downloads.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline husk

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Download Image Downloads Zero Kb currpt image.
« Reply #10 on: August 22, 2008, 05:14:18 PM »
nop. I not using remote images.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Download Image Downloads Zero Kb currpt image.
« Reply #11 on: August 23, 2008, 01:10:14 AM »
well that error shows when used remote images, perhaps you get similar, but not identical error.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline dplmartin

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Download Image Downloads Zero Kb currpt image.
« Reply #12 on: December 05, 2008, 10:42:51 AM »
I have a similar problem with the download button (not the zip function). I download a zero KB file. The php.ini has the allow_url_fopen set to on. The software is only being used on an internal network, so all references are to servers on the local network. I'm specifying the download URL as file://///server%20name/share/directory/image%20name.jpg. Has anyone got any ideas.

Dominic