Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 07:49 am EDT

Geeklog Forums

Media Gallery: Media Uploads by non-admin users


Status: offline

tjgeiger

Forum User
Newbie
Registered: 11/15/05
Posts: 6
Location:Belleville
I am having a problem giving access to non-admin users to upload media using Media Gallery (ver 0.80). The user in question has mediagallery.admin permissions -- they can create a photo album. However, when navigating to the Upload Media page, the "album" list is blank -- that is, none of the existing albums -- including the one they created -- is populated in the list of albums.

To date, the only way I have been able to upload media to any album is to do so while logged in as "admin" user.

GL version is 1.3.11sr2

Thanks in advance for any ideas/suggestions/advice!
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Your best bet is to upgrade to the latest version 0.91. v0.90 brought a whole lot of changes / fixes that deal specifically with allowing non-admin users the ability to upload media.

v0.91 is available for download here and here.

Be sure to read the upgrade instructions, there are a lot of changes, but the process is pretty straight forward.

Thanks!
Mark
 Quote

Status: offline

tjgeiger

Forum User
Newbie
Registered: 11/15/05
Posts: 6
Location:Belleville
Mark,

Thanks for the very quick reply. When following the upgrade instructions to move from MG 0.80 to 0.91, I note that the instructions say to remove all files named mg_*.php in the two mediagallery directories of interest. However, I have no files in either of those directories that begin with "mg_". Shold I just whack all files and replace them with the new ones in the version 0.91 tarball? Additionally, when I look at the files in the the tarball, I don't even see any in there that start with "mg_". I must be missing something here -- help!
 Quote

Status: offline

tjgeiger

Forum User
Newbie
Registered: 11/15/05
Posts: 6
Location:Belleville
Mark,

Please ignore my last post -- I certainly did have files that started with the name "mg_". And, I think I understand now (having re-read your instructions -- which I should have done a few more times before my last post!) that the files that used to be named mg_* have been renamed. My bad. Embarassed

Joe
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Joe,

No problem, actually, if you have any suggestions for improving the docs, I'm all ears! I know what I'm trying to say, but sometimes I don't convey it that well Smile

I hope the upgrade has taken care of the original problem, please let me know.

Thanks!
Mark
 Quote

Status: offline

tjgeiger

Forum User
Newbie
Registered: 11/15/05
Posts: 6
Location:Belleville
Mark,

WOW - the interface has changed quite a bit for MG. I like the changes BTW. The good news is that it appears as though non-admin users can now add media -- at least it lets me select a an album and then attempt to "Add Media". The not-so-good news is now I can't upload media *at all*. No users can -- I get the same error for everyone (including admin):

Tue Nov 15 23:25:11 2005 - MG Upload - Mime type is : jpg
Tue Nov 15 23:25:11 2005 - MG Upload - Php detected type is : image/jpeg
Tue Nov 15 23:25:11 2005 - MG Upload - Stored filename is : 062ed4a4a93919f69ab593319f9ac600.jpg
Tue Nov 15 23:25:11 2005 - MG Upload - Attempting to read exif data
Tue Nov 15 23:25:11 2005 - MG Upload - About to move/copy file
Tue Nov 15 23:25:11 2005 - MG Upload - Calling move_uploaded_file()
Tue Nov 15 23:25:11 2005 - Media Upload - Error moving uploaded file....
Tue Nov 15 23:25:11 2005 - Error uploading a media object

I have tried to track down the function move_upload_file (btw: I added that log outpu line about calling this function) and can not find it anywhere.

Any ideas on what might be going on here?

Another problem since moving to 0.91 is that now my WMV files -- which played just fine with ver 0.80 -- no longer work. The app window opens up like normal o start playing the video file -- however, all I get are garbage characters showing up in the window.

Thanks again in advance!

Joe
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Joe,

move_uploaded_file() is a standard php function, it is what copies the file from the temp location to it's final destination. Many times this can be caused by a permission problem with the destination. Try going into the Media Gallery Admin Configuration screen, choose Save and it will do a check of permissions. Make sure everything is OK there.

As for the media files, yes I made a change to try and fix non-windows users and it looks like it broke the video playing. I'm working on a fix for the next release (a day or two away) that should satisfy both Windows and non Windows users.

Thanks!
Mark
 Quote

Status: offline

tjgeiger

Forum User
Newbie
Registered: 11/15/05
Posts: 6
Location:Belleville
Mark,

My bad -- again! Yes, I had a permissions issue which I have now corrected. And, non-admin users can upload media! I alluded to this in an ealier post, but I want to say again that I really like the changes to MG -- especially with regard to the media management functions being pulled out of the mediagallery admin tool and "moved" to the basic tool itself -- I think it's much more intuitive -- especially for the casual user.

So, keep up the good work and I will be on the lookout for the next update which will hopefully take care of the video issue.

THANKS!

Joe
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Joe,

Great, I'm glad everything is working as it should! I'm finishing up v0.92 which has the video fix you'll need.

I've also started a thread in the forums here at my website to begin discussions on new features, enhancements, etc. If you have any good ideas, please stop by and let me know.

Thanks!
Mark
 Quote

Status: offline

tjgeiger

Forum User
Newbie
Registered: 11/15/05
Posts: 6
Location:Belleville
Mark,

I have installed rev 0.92RC1 and it fixed the video issue (which you said it would) -- thanks!

One quick question: to install 0.92RC1, I just copied all .php files onto to my system -- is that what you meant by replacing the source files? I assume so -- that's what I did and nwo the video works. But, when I go to the admin plugin tool for GL, I see Installed Version = 0.90 and Code Version = 0.91. Is that what I should see? just curious . . .

Thanks again for all your help!

Joe
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Joe,

Yep, that is pretty much all you need to do, make sure you copy all the templates and language files too.

I need to put a little upgrade button that will do nothing more than update the version number in Geeklog's plugin database, that will fix the problem with the 0.90/0.92 issue. It is purely cosmetic, doesn't cause any problems.

Thanks!
Mark
 Quote

All times are EDT. The time is now 07:49 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content