#1 2012-02-10 20:10:22

kojiroh
Member
Registered: 2011-09-06
Posts: 72
Website

MediaManager fails due to lost session data

Hi, I'm getting a "Your session has expired" error when I try to upload an image. My conclusion is that my upload token is somehow getting destroyed, I've still yet to find the actual reason.

I've done a little bit of investigating, and here's what I've got so far (the filemanager library uses a variable called $event to determine if the user is uploading an image or not):

- When the file manager is first launched, the $event is not 'upload' and tokens are fine. The one the panel posts and the one on the server side (session) match
- When the user changes the folder view on filemanager or navigates to other folders, the $event isn't 'upload' and the tokens are fine again
- When the user clicks on the "Upload" button, the $event variable is 'upload' and the server side token (the one in session) is destroyed; "$this->session->userdata('uploadTokken');" returns an empty string

I'm still trying to find the actual reason, and I'll post my results when I get them.

Edit: I have access to four installations of Ionize (one local, three remote), and only a single one of the remote ones is working right now. I've just made the local installation was from a fresh copy of Ionize and it doesn't work either. Both not working remote installations are actually clones of the working one. The only difference between all these installations is that the working one is running on IIS while other ones run on Apache.

Last edited by kojiroh (2012-02-10 20:26:21)

Offline

#2 2012-02-11 13:31:05

kojiroh
Member
Registered: 2011-09-06
Posts: 72
Website

Re: MediaManager fails due to lost session data

Well, it appears that the current build on github (0.9.7.7) has this problem solved. I upgraded my installation to 0.9.7.7 and it solved my problem.

However, 0.9.7.7 introduces new tables and columns on the database, and there isn't an upgrade script yet, so I had to create all tables and columns manually.

If you have this problem I suggest you wait until the official release before upgrading to it.

Offline

#3 2012-02-13 00:23:21

thedoglett
Member
Registered: 2011-07-15
Posts: 128

Re: MediaManager fails due to lost session data

Try setting uploads to single and not multiple - log out and clear your cache and uploads should work.

That's how I got it working.

Offline

#4 2012-02-16 10:27:26

Some_Guy
Member
Registered: 2012-02-15
Posts: 4

Re: MediaManager fails due to lost session data

thedoglett wrote:

Try setting uploads to single and not multiple - log out and clear your cache and uploads should work.

That's how I got it working.

how do you do that? set the upload to single that is

Offline

#5 2012-02-16 11:12:17

thedoglett
Member
Registered: 2011-07-15
Posts: 128

Re: MediaManager fails due to lost session data

Go the the menu Settings > Advanced Settings > Medias tab and then in the grey box on the right side of the screen there are two radio buttons at the bottom - multiple file and single file.

Offline

#6 2012-03-15 12:10:48

jnbn
Member
From: Istanbul, Turkey
Registered: 2012-03-02
Posts: 20
Website

Re: MediaManager fails due to lost session data


I am whatever you say I am..
If I wasn't then why would I say "I am"..

@jnbn

Offline

#7 2012-03-15 19:03:13

thedoglett
Member
Registered: 2011-07-15
Posts: 128

Re: MediaManager fails due to lost session data

^ I posted in the thread you link to that jnbn's fix indeed works.

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel , Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : www.ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Translations on GitHub