PROBLEM - Error: true

verso9302329

New Member
YetiShare User
Mar 22, 2013
8
0
0
Hi all,

I have a big problem with last version: Error: true
Doesn`t matter what type of file or what dimension i try, this error shows to me.
I have 1é hours for execution limit time, test script shows 1.5TB for temp...

I tryed all stuff: permisions, space,php.ini...
I user paralleles PLESK as cpanel on CENTOS last version.

THANKS!
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
I found the problem

The problem is, end requires a reference. explode(".", $fileUpload->name) cannot be turned into a reference. That's why you have to assign the result of explode(".", $fileUpload->name) to a variable.

Open /includes/class.uploader.php

Find on line 441
Code:
$extension   = end(explode(".", $fileUpload->name));
Replace with:
Code:
$uploadTmp          = explode(".", $fileUpload->name);
$extension          = end($uploadTmp);
 

verso9302329

New Member
YetiShare User
Mar 22, 2013
8
0
0
Tahnk you very much!!!

I made the changes. I will come back with infos...work or not
Thanks again
 

verso9302329

New Member
YetiShare User
Mar 22, 2013
8
0
0
Didn't help very much..
Now error show for first file. by example i upload a file, firs time shows error after that i try again and works.
Is happen for every user. First time error.

Is a way to fix?
Thanks
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
This is whats in my error_log, it only does it if you try to upload a file without visiting any other page on the site, ie: go to the site, upload, if you have to log in then upload, no problem.

Code:
[09-Apr-2013 02:45:13 Europe/London] PHP Notice:  Undefined index: HTTP_REFERER in /home2/username/public_html/includes/functions.inc.php on line 1234
[09-Apr-2013 02:45:13 Europe/London] PHP Notice:  Undefined offset: 2 in /home2/username/public_html/includes/functions.inc.php on line 1236