Jump to content

[Fixed]Error when trying to download

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
kboardcrash

kboardcrash

    Newbie

  • Members
  • Pip
  • 3 posts
I've installed IonFiles, set the config and uploaded an download to test it.

But then, when you want to download the file, I get an error. But due to this forum, I cannot write the error, nor the link where it happens.

Anybody some tips? Help?

#2
kboardcrash

kboardcrash

    Newbie

  • Members
  • Pip
  • 3 posts
Preview: ~www.marijeweterings.nl~
Then try to download it and I got the error:

This is the error

Quote

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /storage/mijndomein/users/021453/public/sites/www.marijeweterings.nl/components/com_ionfiles/download.php on line 44

Fatal error: Call to undefined function curl_init() in /storage/mijndomein/users/021453/public/sites/www.marijeweterings.nl/components/com_ionfiles/download.php on line 170


#3
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
I was wondering when a safe mode bug would rear its ugly head :(

Will look into it.

Edit: Believed I've found the cause, will test and post a patch.

Edit: Thanks for the report! Now, this'll need a little work. Open up your trusted editor and find the file 'download.php'. Next, search for the line
set_time_limit(0);
And replace it with:
$val = ini_get('safe_mode');
if($val == 0 || $val == "Off")
	set_time_limit(0);

Save, and try again. Please tell me if this fixes your problem!

#4
kboardcrash

kboardcrash

    Newbie

  • Members
  • Pip
  • 3 posts
One error less, now I get the error:

Quote

Fatal error: Call to undefined function curl_init() in /storage/mijndomein/users/021453/public/sites/www.marijeweterings.nl/components/com_ionfiles/download.php on line 151

TkTech said:

I was wondering when a safe mode bug would rear its ugly head :(

Will look into it.

Edit: Believed I've found the cause, will test and post a patch.

Edit: Thanks for the report! Now, this'll need a little work. Open up your trusted editor and find the file 'download.php'. Next, search for the line
set_time_limit(0);
And replace it with:

$val = ini_get('safe_mode');

if($val == 0 || $val == "Off")

	set_time_limit(0);


Save, and try again. Please tell me if this fixes your problem!


#5
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
The errors in the function remotefsize($url, $user = "", $pw = "") function. Still looking into it.