Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Error 8/2048 poping up randomly
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1555
Page 1 of 1

Author:  o2pb [ 11. Jun 2008, 06:55 ]
Post subject:  Error 8/2048 poping up randomly

This has been bugging me for a while. This error shows up in the tfu.log file after I try uploading something. The worst part is, that it comes and goes.... quite randomly.

06.11.2008 0:02:03 - ERROR 8 in /home/users/abc/public/tfu_helper.php, line 493: date_default_timezone_set() [<a href='function.date-default-timezone-set'>function.date-default-timezone-set</a>]: Timezone ID '' is invalid

06.11.2008 0:02:03 - ERROR 2048 in /home/users/abc/public/tfu_helper.php, line 495: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead

Author:  TinyWebGallery [ 11. Jun 2008, 08:21 ]
Post subject: 

Hi,

Which version are you using? Because I do set the timezone but the line numbers are like 300 lines different.
I think I have changed this like a year ago ...

And this is nomally not a problem at all because only the timezone cannot be set then.

/Michael

Author:  o2pb [ 11. Jun 2008, 17:20 ]
Post subject: 

Im using 2.4

I forgot to mention that the upload fails when the error comes up. It shows the ok message, but the files are not there, nor does the mysql query execute in tfu_upload.php

Author:  TinyWebGallery [ 11. Jun 2008, 17:28 ]
Post subject: 

in 2.4 (now ~ 1 1/2 years old) the timezone was not set yet. This was needed by one of the 5.x versions of php.

You should update to the latest version of TFU.
Especially because 2.7.1 was a security update!

/Michael

Author:  o2pb [ 11. Jun 2008, 18:53 ]
Post subject: 

I have the script extensively modified, and it would be a huge bitch to redo it all.

Is there any work around I can do to prevent this from happening? I dont use this script in public, its only used for an admin function, so security isnt really a huge issue, since its all protected already.

Author:  TinyWebGallery [ 11. Jun 2008, 20:09 ]
Post subject: 

then simply set the timezone like I do in the latest version.
Download it and look how this can be done. tfu_helper.php

/Michael

Author:  o2pb [ 12. Jun 2008, 07:11 ]
Post subject: 

Well, that stopped the error from showing up, but the files are still not being uploaded.

This is insane, because I have 2 other instances running on the same server, and they work perfectly.

Author:  TinyWebGallery [ 12. Jun 2008, 08:43 ]
Post subject: 

weired - there is no tfu.log or any other message in the server log that shows any problems?


/Michael

Author:  o2pb [ 12. Jun 2008, 19:26 ]
Post subject: 

Nope, none at all. Upload bar goes to 100%, says complete, but nothing is uploaded, and the mysql query at the end of the upload is not ran either. Its as if it doesnt even get to tfu_upload.php file to do any work.

Author:  TinyWebGallery [ 13. Jun 2008, 08:29 ]
Post subject: 

after the include of the tfu_helper.php you can debug to the tfu.log by simply adding e.g.
debug('enter tfu_upload.php');

there you can check if the file is called properly. If you call the tfu_upload.php directly: is there maybe an error shown?

/Michael

Author:  o2pb [ 13. Jun 2008, 16:05 ]
Post subject: 

Ahh why didnt I think of that!


It says "not logged in", so that means $_SESSION["TFU_LOGIN"] doesnt get set.

I can remove that check, but what sets $_SESSION["TFU_LOGIN"]?

Author:  TinyWebGallery [ 13. Jun 2008, 16:10 ]
Post subject: 

it is set in the tfu_config.php.

Quite some servers have a problem transfering the session properly through the flash. I have a lot of workarounds in the newer versions to make this work without problems. Depending on the server different solutions are needed which I try one after another ;).

Your problem is that the upload directory is in the session too! in 2.4 it could be possssile that it is in the request as well. should be sent a parameter 'dir'.

Have you really made that many modifications? tfu_upload.php is not really big ;).

/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/