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 4. May 2024, 11:09

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  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Uploader undefined
PostPosted: 25. Nov 2008, 15:24 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
Hello there !

Before I explain my problem, know that I have tried the various solutions from these threads :

Deleted... 'cause I couldn't post with these links
and the FAQ.

Maybe, I've missed something, but I did the best I could.

I'm using Joomla 1.5.7 and JFU 2.8.1.
My server is a Debian with Apache2 & PHP5.
As it is not the only website running on my server, I have to use auto session start for joomla.


That is where I think I have a problem :

I have uncommented the debug lines in tfu_upload.php and I have in tfu.log :
Code:
11.25.2008 12:48:16 - session id : 491e8e5f4a68118a156ec9e300e4a540

11.25.2008 12:48:16 - session TFU: 491e8e5f4a68118a156ec9e300e4a540

11.25.2008 12:48:16 - login: true

11.25.2008 12:48:16 - dir: upload

11.25.2008 12:48:16 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 95: move_uploaded_file(upload/company_logo.png) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: No such file or directory

11.25.2008 12:48:16 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 95: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpjCVGmW' to 'upload/company_logo.png'

11.25.2008 12:48:16 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 107: move_uploaded_file(upload/company_logo.png) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: No such file or directory

11.25.2008 12:48:16 - ERROR 2 in joomla_flash_uploader/tfu/tfu_upload.php, line 107: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpjCVGmW' to 'upload/company_logo.png'


The value we see here as session id appears in my Session Cookies with a key that looks like a random 64bits value, and not the expected PHPSESSID. But my PHPSESSID is different.

My problem is the left browser is empty and the files won't upload...

I hope this will be enough for you to help me !

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 16:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The left window is empty all the time? right after the start?

Because the upload folder from the debug is only the default and therefore the errors that come are o.k. The problem is at a different place.
This error below come when you upload.

Does the undefined error come in the backend Uploader right away?
Normally the main joomla directory is shown.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 17:11 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
Sorry I didn't explain well.

It never shows anything. The browser is always empty in both frontend and backend.

When I just request the page (without uploading) I get an error in the log file :
Code:
11.25.2008 12:48:16 - Illigal direct access or missing session settings - browser has to be closed to get a new session: PHPSESSID=491e8e5f4a68118a156ec9e300e4a540


That line was just abose my previous quote, I forgot to copy/paste it :/

I created a group of user (n°2) which contains all the users and I set all rights to create/browse/write/... to make some tests. But as my problem happens in both frontend and backend view, I don't think it comes from that.


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 17:48 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The backend should work first. You don'T have to upload anything. First the server view (the left side) has to be shown.

Have you set your session management to none in the configuration?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 17:54 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
Yes, I have.
I also removed all the cookies before connecting in again. No change.
I think I followed all the FAQ steps and did it ok, but the result was always the same.

Thanks for answering so fast :)

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 18:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
is a session_cache folder in the tfu directory and are files in there?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 18:18 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
Yes there is a session_cache folder with :
- 12 files with random names (session names I guess)
- _cache_day_2008_11_25.tmp (empty)

session_cache folder has chmod 777.
Most files have chmod 666 and two of them have 644, I don't know why the difference...

This is one of the contents :
Code:
a:7:{s:9:"TFU_LOGIN";s:4:"true";s:6:"TFU_RN";s:31:"1223773375254484308457612521171    ";s:7:"TFU_DIR";s:6:"upload";s:12:"TFU_ROOT_DIR";s:6:"upload";s:8:"TFU_USER";s:13:    "192.168.13.43";s:16:"TFU_LAST_UPLOADS";a:0:{}s:20:"TFU_UPLOAD_REMAINING";s:1:"1";    }


I hope it helps !

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 18:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
What you see there is the internal session handling of JFU.

The debug tells me that the variables from the Joomla wrapper are not passed to the files the flash uses.

I can send you an updated version here I have enhanced the session handling again.

But you have to test it ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 18:31 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
I don't think I have enough time today to try it (end of the day hurray!), but I will sure do it tomorrow morning.

Thank you very much for your help !

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: 26. Nov 2008, 13:21 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
Hello Michael !

I tried both versions you sent me, and... sorry, none of them worked.

That's my tfu.log (for the 2nd version) :
Code:
 11.26.2008 12:20:17 - Illigal direct access or missing session settings - browser has to be closed to get a new session: PHPSESSID=31d448cce2346ea6a82289cb622ad8ef

11.26.2008 12:20:17 - It can be possible that someone tried to upload something without permissions! If you think this is the case the IP of this user is logged: 192.168.13.43. He tried to upload the following file: test.gif

11.26.2008 12:20:17 - Or it is possible that the session handling of the server is not o.k. Therefore TFU simulates a basic session handling and uses the session_cache folder for that.

11.26.2008 12:20:17 - Directory session_cache could be created! TFU does now an internal session handling. Delete the directory session_cache to turn the internal handling off.

11.26.2008 12:20:38 - Illigal direct access or missing session settings - browser has to be closed to get a new session: PHPSESSID=31d448cce2346ea6a82289cb622ad8ef

11.26.2008 12:20:38 - It can be possible that someone tried to upload something without permissions! If you think this is the case the IP of this user is logged: 192.168.13.43. He tried to upload the following file: test.gif

11.26.2008 12:20:38 - It seems that the session handling of the server is not o.k. TFU already tried a workaround that does not seem to work. TFU deleted the session_cache folder. Maybe it was created because of a wrong request! Please report this in the forum to find a solution!


It feels like I've done something wrong, but after uninstalling and installing it again and again, I think maybe I should re-install the whole Joomla package and start from something cleaner.

The problem is I can't do it right now, as there's people working on Joomla, but I will keep you aware of the problems I may have.

I'm still OK to do some tests if you wish.

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: 26. Nov 2008, 13:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You should not upload anything yet. The new version was only that the remote listing is shown. This has to work first.

If you check the session_cache folder. check the newest file and see if there are now much more variables than the last time. I send ~ 30 settings to the flash. Right now all of them are not there.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 28. Nov 2008, 12:16 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
Hi again !

Sorry I didn't show up yesterday, I had a lot of work.

So, I fully desinstalled (with the checkbox option) the uploader, installed it again, uncommented the 4 debug lines, cleared the session cookies and loaded the page.

This is what my tfu.log looks like :
Code:
11.28.2008 11:04:01 - Illigal direct access or missing session settings - browser has to be closed to get a new session: PHPSESSID=ac3c467aa2173406d026f85d8c4b91d4

11.28.2008 11:04:17 - Illigal direct access or missing session settings - browser has to be closed to get a ne    w session: PHPSESSID=ac3c467aa2173406d026f85d8c4b91d4



I don't have any message about the session folder creation, did you remove that ?
Again, the session ID is not my PHPSESSID, this is my cookies :
Code:
Name   PHPSESSID
Value   032c8f0b579d6f0914552b3a78432efc
Host   xxxxxxxxxx
Path   /
Secure   No
Expires   At End Of Session

---------------------

Name   ae39587f4f938f4dfc3bd5733761bbfb
Value   ac3c467aa2173406d026f85d8c4b91d4
Host   xxxxxxxxxx
Path   /
Secure   No
Expires   At End Of Session


I hope it helps.

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: 28. Nov 2008, 12:24 
Offline
Site Admin
User avatar

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

You don't have to uncomment the debug info because you are not in the upload yet.

First you have to get the directoy listing from the server.

If the session_cache directoy does not exist please create it manually.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 28. Nov 2008, 12:34 
Offline

Joined: 25. Nov 2008, 15:02
Posts: 9
OK I did create the session_cache folder and then a file was created in it.

But still :
Code:
11.28.2008 11:24:51 - Illigal direct access or missing session settings - browser has to be closed to get a new session: PHPSESSID=860bffd11c55d9ebe7e69ebf85f7f81d


That's the session file called 860bffd11c55d9ebe7e69ebf85f7f81d :
Code:
a:5:{s:9:"TFU_LOGIN";s:4:"true";s:6:"TFU_RN";s:31:"1222738362787477966797864210998";s:7:"TFU_DIR";s:6:"upload"    ;s:12:"TFU_ROOT_DIR";s:6:"upload";s:8:"TFU_USER";s:13:"192.168.13.43";}


I hope it doesn't get too much on your nerves, I'm starting to feel guilty having so much problems :?

Patrick


Top
 Profile  
 
 Post subject:
PostPosted: 28. Nov 2008, 13:58 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi. It would be intersting for me to debug on this system. Can I get access somehow?

/Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 9 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:
powered by phpbb | Datenschutz/ Privacy policy