Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 26. Apr 2024, 23:19

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: SafeMode Problem
PostPosted: 3. Sep 2007, 04:27 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
Hi I recently moved TWG to a new server and am getting this error on the flash uploader....

"Safemode is enabled. All actions for files in this folder are disabled."


I have checked and SafeMode is off on my server.

Its my own dedicated server so I can do what I need to make TWG work so please let me know your suggestions. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 09:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
seems like php is returning a wrong safe mode status.

or your folders are not writeable at all. you can modify the admin/upload/tfu_helper.php there is a check for safemode.

or you go to the tfu_readDir.php and serach for safemode - you only have to return a different value to make this work (&dir_create=true). But make sure then that your permissions are really o.k.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 14:44 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
Changing &dir_create=false to &dir_create=true did the trick. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 14:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
can you call info.php? does it say that safe mode is off or on?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 14:47 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
Says it is off. I checked permissions and everything. Not sure why its seeing safemode as on.


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 14:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you said you changed

dir_create=false

then it's not safe mode (I might use one error message for this two things - I have to check this ;).) but your directory was simply not writeable.

because first I check

if (is_writeable($dir)){

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 14:59 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
what directory do you think is not writeable?


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 15:05 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
the one you want to upload - at least php thinks this ;).


Top
 Profile  
 
 Post subject:
PostPosted: 3. Sep 2007, 15:13 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
yea not sure. I double checked permissions on all folders and files and have everything writable that needs to be. Either way the little code change made it work :) Thanks again!


Top
 Profile  
 
 Post subject:
PostPosted: 6. Sep 2007, 03:42 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
hmm guess I spoke to soon. I went to upload pics today for the 1st time and am getting the safemode on error again. I rechecked all permissions and that php info is showing safemode as off. Also I checked in WHM and it says its off too. Is there another place in the code I can change? I looked at admin/upload/tfu_helper.php bu not sure what I need to change.


Top
 Profile  
 
 Post subject:
PostPosted: 6. Sep 2007, 09:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
which error do you get - because when you upload the upload file does not care about dafemode anymore - if you don't have enough right to write a file is simply does not work and tells you this.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 6. Sep 2007, 17:27 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
I get...
"Safemode is enabled. All actions for files in this folder are disabled."

But only when I try and upload images. I can create folders and everything now. I am guessing there is a 2nd place in the code to diable the safemode check for file uploads?


Top
 Profile  
 
 Post subject:
PostPosted: 6. Sep 2007, 17:29 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
after the upload is a refresh of the filelist - are files uploaded or not?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 6. Sep 2007, 18:40 
Offline

Joined: 3. Sep 2007, 04:23
Posts: 8
No I can not upload images. I sent you a PM with login info so you dont mind taking a look.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy