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 23. Apr 2024, 23:06

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  [ 30 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: 29. Jan 2010, 16:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
But this is not the log you get when you enable upload debugging on the config page.

Make sure you have enabled this.


but it seems your session gets lot. have you already created a folder called session_cache in the tfu folder?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 29. Jan 2010, 20:58 
Offline

Joined: 27. Jan 2010, 22:56
Posts: 10
I've have Enable Upload Debug on yes the entire time.

It says next to it "If you have problems uploading files you can enable the upload debug. Then all steps of the upload are logged to the file tfu.log. This file is displayed on the Info/Limits/Register page."

That's where I got those errors on my last post, from that log.

There is no folder called session_cache in the tfu folder right now. Should I create that folder manually?


Top
 Profile  
 
 Post subject:
PostPosted: 30. Jan 2010, 02:35 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Yes,

please try to create this folder an set it to 777.

Normally the debug lot should have prints like:

5. Before move_uploaded_file. ....



- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 2. Feb 2010, 17:39 
Offline

Joined: 27. Jan 2010, 22:56
Posts: 10
Okay, that seemed to work...

Now the thing is...we have it setup so that it automatically creates a subfolder under "jfu_uploads" whenever a user submits a file (ex: johnsmith). It's doing that part correctly, but when I try to upload a file, the status says: The folder has no write permissions. All actions are disabled.

When I manually change the permission rights of the folders (jfu_uploads and these subfolders) to 777 in my FTP client and refresh the page, I have the correct permissions and I am able to upload successfully. How can this be setup automatically so I don't have to do anything?


Top
 Profile  
 
 Post subject:
PostPosted: 2. Feb 2010, 17:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
your server is setting wrong folder permissions.

you can set the permissions for new folders on the main config page of JFU.

- Michael


Top
 Profile  
 
 Post subject: Error 2 again
PostPosted: 14. May 2010, 15:17 
Offline

Joined: 14. May 2010, 15:03
Posts: 6
Hi Michael, im getting error 2 too. Ive tried everything that is mentioned here that im aware off, so probably its a server issue. Anyway ill need your assistance:

- tfu moved to component
- session_cache folder created 777
- upload works ok on default images joomla folder within backend
- upload DO NOT work on user subdirectory on default images joomla folder within backend
- upload DO NOT work on front end
- Joomla Flash Uploader Info / Limits / Register limits sets to 777

Thanks for the help. Im on a vps so if i have to change some configuration tellme so.


-----------------------log---------------

Code:
05.14.2010 5:58:39 - ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2154: opendir(./__/__/__/images/admin) [_a href='function.opendir'_function.opendir_/a_]: failed to open dir: Permission denied
Request: /components/com_joomla_flash_uploader/tfu/tfu_file.php?action=dir&dir=&ts=1273841918039&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&tfu_ut=-1&TFUSESSID=26b908a90e40e29198c3cab073372a93
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2154: opendir(./../../../images/admin) [
Stack: ::on_error:2:opendir(./../../../images/admin) [function.opendir]: failed to open d:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_helper.php:2154:Array( [dir] => ./../../../images/admin [myFiles] => Array ( ) [myDirs] => Ar
Stack: tfu_helper.php:2154:opendir:./../../../images/admin
Stack: tfu_file.php:149:read_dir:./../../../images/admin:Array():Array()::Array( [0] => data.pxp [1] => _vti_cnf [2] => .svn [3] => CVS [4] => thumbs):
05.14.2010 5:58:39 - ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2155: readdir(): supplied argument is not a valid Directory resource
Request: /components/com_joomla_flash_uploader/tfu/tfu_file.php?action=dir&dir=&ts=1273841918039&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&tfu_ut=-1&TFUSESSID=26b908a90e40e29198c3cab073372a93
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2155: readdir(): supplied argument is not
Stack: ::on_error:2:readdir(): supplied argument is not a valid Directory resource:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_helper.php:2155:Array( [dir] => ./../../../images/admin [myFiles] => Array ( ) [myDirs] => Ar
Stack: tfu_helper.php:2155:readdir:
Stack: tfu_file.php:149:read_dir:./../../../images/admin:Array():Array()::Array( [0] => data.pxp [1] => _vti_cnf [2] => .svn [3] => CVS [4] => thumbs):
05.14.2010 5:58:39 - ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2177: closedir(): supplied argument is not a valid Directory resource
Request: /components/com_joomla_flash_uploader/tfu/tfu_file.php?action=dir&dir=&ts=1273841918039&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&tfu_ut=-1&TFUSESSID=26b908a90e40e29198c3cab073372a93
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2177: closedir(): supplied argument is not
Stack: ::on_error:2:closedir(): supplied argument is not a valid Directory resource:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_helper.php:2177:Array( [dir] => ./../../../images/admin [myFiles] => Array ( ) [myDirs] => Ar
Stack: tfu_helper.php:2177:closedir:
Stack: tfu_file.php:149:read_dir:./../../../images/admin:Array():Array()::Array( [0] => data.pxp [1] => _vti_cnf [2] => .svn [3] => CVS [4] => thumbs):
05.14.2010 5:58:49 - 1. Config loaded
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:40:tfu_debug:1. Config loaded
05.14.2010 5:58:49 - 2. Authenification sucessfull
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:56:tfu_debug:2. Authenification sucessfull
05.14.2010 5:58:49 - 3. Directory read: ./__/__/__/images/admin
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:58:tfu_debug:3. Directory read: ./../../../images/admin
05.14.2010 5:58:49 - 4. Check valid extension: 0522_palermo.jpg
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:74:tfu_debug:4. Check valid extension: 0522_palermo.jpg
05.14.2010 5:58:49 - 4a. Extension valid.
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:76:tfu_debug:4a. Extension valid.
05.14.2010 5:58:49 - 5. Before move_uploaded_file : /home/mydomain/tmp/phpF63brJ -_ ./__/__/__/images/admin/0522_palermo.jpg
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:99:tfu_debug:5. Before move_uploaded_file : /home/mydomain/tmp/phpF63brJ -> ./../../../images/admin/0522_pale
05.14.2010 5:58:49 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 101: move_uploaded_file(./__/__/__/images/admin/0522_palermo.jpg) [_a href='function.move-uploaded-file'_function.move-uploaded-file_/a_]: failed to open stream: Permission denied
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 101: move_uploaded_file(./../../../images/
Stack: ::on_error:2:move_uploaded_file(./../../../images/admin/0522_palermo.jpg) [:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_upload.php:101:Array( [GLOBALS] => Array *RECURSION* [_POST] => Array ( [Filename] => 0522_
Stack: tfu_upload.php:101:move_uploaded_file:/home/mydomain/tmp/phpF63brJ:./../../../images/admin/0522_palermo.jpg
05.14.2010 5:58:49 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 101: move_uploaded_file() [_a href='function.move-uploaded-file'_function.move-uploaded-file_/a_]: Unable to move '/home/mydomain/tmp/phpF63brJ' to './__/__/__/images/admin/0522_palermo.jpg'
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 101: move_uploaded_file() [function.move-uploaded-file]: Unable:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_upload.php:101:Array( [GLOBALS] => Array *RECURSION* [_POST] => Array ( [Filename] => 0522_
Stack: tfu_upload.php:101:move_uploaded_file:/home/mydomain/tmp/phpF63brJ:./../../../images/admin/0522_palermo.jpg
05.14.2010 5:58:49 - 5a. after move_uploaded_file.
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:111:tfu_debug:5a. after move_uploaded_file.
05.14.2010 5:58:49 - 5b. retry move_uploaded_file : ./__/__/__/images/admin/0522_palermo.jpg
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:116:tfu_debug:5b. retry move_uploaded_file : ./../../../images/admin/0522_palermo.jpg
05.14.2010 5:58:49 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 117: move_uploaded_file(./__/__/__/images/admin/0522_palermo.jpg) [_a href='function.move-uploaded-file'_function.move-uploaded-file_/a_]: failed to open stream: Permission denied
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 117: move_uploaded_file(./../../../images/
Stack: ::on_error:2:move_uploaded_file(./../../../images/admin/0522_palermo.jpg) [:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_upload.php:117:Array( [GLOBALS] => Array *RECURSION* [_POST] => Array ( [Filename] => 0522_
Stack: tfu_upload.php:117:move_uploaded_file:/home/mydomain/tmp/phpF63brJ:./../../../images/admin/0522_palermo.jpg
05.14.2010 5:58:49 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 117: move_uploaded_file() [_a href='function.move-uploaded-file'_function.move-uploaded-file_/a_]: Unable to move '/home/mydomain/tmp/phpF63brJ' to './__/__/__/images/admin/0522_palermo.jpg'
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 117: move_uploaded_file() [function.move-uploaded-file]: Unable:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_upload.php:117:Array( [GLOBALS] => Array *RECURSION* [_POST] => Array ( [Filename] => 0522_
Stack: tfu_upload.php:117:move_uploaded_file:/home/mydomain/tmp/phpF63brJ:./../../../images/admin/0522_palermo.jpg
05.14.2010 5:58:49 - 6. NOT uploaded.
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:185:tfu_debug:6. NOT uploaded.
05.14.2010 5:58:49 - 9. End upload
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:225:tfu_debug:9. End upload
05.14.2010 5:58:49 - 10. End store session
Request: /components/com_joomla_flash_uploader/tfu/tfu_upload.php?dir=&TFUSESSID=26b908a90e40e29198c3cab073372a93&size=100000&firstStart=true&zeit=1273841925216&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&remaining=1
Stack: tfu_upload.php:227:tfu_debug:10. End store session
05.14.2010 5:58:50 - ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2154: opendir(./__/__/__/images/admin) [_a href='function.opendir'_function.opendir_/a_]: failed to open dir: Permission denied
Request: /components/com_joomla_flash_uploader/tfu/tfu_file.php?action=dir&dir=&ts=1273841928314&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&tfu_ut=5&check_upload=true&TFUSESSID=26b908a90e40e29198c3cab073372a93
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2154: opendir(./../../../images/admin) [
Stack: ::on_error:2:opendir(./../../../images/admin) [function.opendir]: failed to open d:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_helper.php:2154:Array( [dir] => ./../../../images/admin [myFiles] => Array ( ) [myDirs] => Ar
Stack: tfu_helper.php:2154:opendir:./../../../images/admin
Stack: tfu_file.php:149:read_dir:./../../../images/admin:Array():Array()::Array( [0] => data.pxp [1] => _vti_cnf [2] => .svn [3] => CVS [4] => thumbs):
05.14.2010 5:58:50 - ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2155: readdir(): supplied argument is not a valid Directory resource
Request: /components/com_joomla_flash_uploader/tfu/tfu_file.php?action=dir&dir=&ts=1273841928314&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&tfu_ut=5&check_upload=true&TFUSESSID=26b908a90e40e29198c3cab073372a93
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2155: readdir(): supplied argument is not
Stack: ::on_error:2:readdir(): supplied argument is not a valid Directory resource:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_helper.php:2155:Array( [dir] => ./../../../images/admin [myFiles] => Array ( ) [myDirs] => Ar
Stack: tfu_helper.php:2155:readdir:
Stack: tfu_file.php:149:read_dir:./../../../images/admin:Array():Array()::Array( [0] => data.pxp [1] => _vti_cnf [2] => .svn [3] => CVS [4] => thumbs):
05.14.2010 5:58:50 - ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2177: closedir(): supplied argument is not a valid Directory resource
Request: /components/com_joomla_flash_uploader/tfu/tfu_file.php?action=dir&dir=&ts=1273841928314&tfu_rn=1274447647191756600803842615896&tfu_is_flash_10=1&tfu_ut=5&check_upload=true&TFUSESSID=26b908a90e40e29198c3cab073372a93
Stack: tfu_helper.php:110:tfu_debug:ERROR 2 in joomla_flash_uploader/tfu/tfu_helper.php, line 2177: closedir(): supplied argument is not
Stack: ::on_error:2:closedir(): supplied argument is not a valid Directory resource:/home/mydomain/public_html/components/com_joomla_flash_uploader/tfu/tfu_helper.php:2177:Array( [dir] => ./../../../images/admin [myFiles] => Array ( ) [myDirs] => Ar
Stack: tfu_helper.php:2177:closedir:
Stack: tfu_file.php:149:read_dir:./../../../images/admin:Array():Array()::Array( [0] => data.pxp [1] => _vti_cnf [2] => .svn [3] => CVS [4] => thumbs):

[/quote][/code]


Top
 Profile  
 
 Post subject:
PostPosted: 14. May 2010, 16:20 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
seems the folder you want to upload to gives a permission denied.

what are the permissions of images/admin ?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 14. May 2010, 16:48 
Offline

Joined: 14. May 2010, 15:03
Posts: 6
Thanks Michael, indeed have an issue with that but i dont know how to manage to every new user gets other permissions

Now admin had 274 (never saw this before: owner only can write)


Top
 Profile  
 
 Post subject:
PostPosted: 14. May 2010, 16:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
who is creating the folders? If you use JFU (master profile) you can set the permissions of new created folders in the config.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 14. May 2010, 17:23 
Offline

Joined: 14. May 2010, 15:03
Posts: 6
JFu is creating them, seted as 777 but seems not to be working. Ill go back for this later since i have to solve other issues. Thanks for your prompt reply.


Top
 Profile  
 
 Post subject:
PostPosted: 14. May 2010, 17:27 
Offline

Joined: 14. May 2010, 15:03
Posts: 6
this is a restored site, moved from other domain. no new users were created, so maybe this could be an issue?


Top
 Profile  
 
 Post subject:
PostPosted: 14. May 2010, 17:59 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Then you have to check the permissions manually. But most ftp programs can change permissions recursive.

- Michael


Top
 Profile  
 
 Post subject: issue
PostPosted: 17. May 2010, 07:27 
Offline

Joined: 14. May 2010, 15:03
Posts: 6
Michael, the only way to get this working on my setup is to change manually the permisions folder for the users. When ever JFU creates a user the permisions are 411. I tryed to set permissions to 777 here: "Some server create the files in the tfu directory with permissions that they cannot be accessed directly. Some server only allow 0755 but not 0777 or 0666. The current permission of tfu_config.php is 0
Because of security reasons only the permissions below can be set here. Please use a ftp software if you need different permissions. Only change this if you get the error that the configuration cannot be found!"

But is not working. What can i do?


Top
 Profile  
 
 Post subject:
PostPosted: 17. May 2010, 10:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You can set the new permissions of folders in the JFU config. I don't mean the permissions of the tfu files itself.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 17. May 2010, 17:26 
Offline

Joined: 14. May 2010, 15:03
Posts: 6
The goodness on knowing is that you can do a huge benefit from a comparative little effort (once you have it). Your words Michael worth hours to me and just a couple of seconds to you. Thank you pal.

The issue was tha in config the permisions where 777 insted of 0777. Change that and problem solved.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 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