Upload Module - errors for user and admin

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Kira27
New Member
New Member
Posts: 9
Joined: Mon Sep 07, 2009 4:32 pm

Upload Module - errors for user and admin

Post by Kira27 »

I installed the upload module yesterday and thought I had it looking nice. All I want is for them to upload photos. The code I am using on the form page is:

Code: Select all

{cms_module module="Uploads" category="photos" mode="upload" noauthor="0" file_extensions=".jpg,.gif.,png" prefix="1"} 
When I try to upload a photo, I get these errors.
Fatal error: Cannot access private property Uploads::$upload_extensions in /modules/Uploads/functions.common_tools.php on line 51
------------------------------------------------------------------------------

I can upload a photo fine from the admin control panel. I get email notification of the upload. When I go to edit a photo or click on its name, I get these errors:
Notice: Undefined variable: gCms in /modules/Uploads/Uploads.module.php on line 1080

Fatal error: Call to a member function GetConfig() on a non-object in /modules/Uploads/Uploads.module.php on line 1080
------------------------------------------------------------------------------

An aside: how do I ask the upload module to put the photos in uploads/images/photos instead of uploads/photos?

Also, I noticed that while all other files/dirs are owned by "root," the 'photos' dir that I made with the upload module is owned by "Apache." I changed it but no change in errors. Just something I noticed. I would rather have everything owned by "root."

Thanks for any ideas or help.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
CMSMS 1.6.4

Operating system Redhat Linux Fedora 10
Kernel and CPU Linux 2.6.27.25-170.2.72.fc10.i686 on i686
Apache version 2.2.11
mysql version 5.0.77
PHP Version 5.2.9
JeremyBASS

Re: Upload Module - errors for user and admin

Post by JeremyBASS »

Also, I noticed that while all other files/dirs are owned by "root," the 'photos' dir that I made with the upload module is owned by "Apache." I changed it but no change in errors. Just something I noticed. I would rather have everything owned by "root."
That is a server set up thing... I set up ACLS, added the apache user to (I'm assuming that you’re not using the su root user??)  FTP user group with a sticky bit giving me permissions of 2755 and such... ACLS was good so every site I made there had this... This works for me but you'd want to read up or talk to your host.

Hope that helps
Cheers
Jeremy
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Upload Module - errors for user and admin

Post by calguy1000 »

Bugfix version of uploads was released today.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Kira27
New Member
New Member
Posts: 9
Joined: Mon Sep 07, 2009 4:32 pm

Re: Upload Module - errors for user and admin

Post by Kira27 »

oh cool. i will check it out if the client takes the project off 'hold.' thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
CMSMS 1.6.4

Operating system Redhat Linux Fedora 10
Kernel and CPU Linux 2.6.27.25-170.2.72.fc10.i686 on i686
Apache version 2.2.11
mysql version 5.0.77
PHP Version 5.2.9
Kira27
New Member
New Member
Posts: 9
Joined: Mon Sep 07, 2009 4:32 pm

Re: Upload Module - errors for user and admin

Post by Kira27 »

OH WOW! IT WORKS GREAT!

i didn't even have to uninstall/reinstall. lucky i saved my orig code lol because i had deleted it from the page so the client would stop blowing a gasket.

super cool!

ok- question to calguy or anyone: can I have the photos go into uploads/images/photos instead of uploads/photos - so that admin could manage them via image manager? if not it's cool. i can have the gallery pull from the correct directory. maybe i'm doing it backwards but i want it to be as SIMPLE as possible for the client.

thank you!!!

:-*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
CMSMS 1.6.4

Operating system Redhat Linux Fedora 10
Kernel and CPU Linux 2.6.27.25-170.2.72.fc10.i686 on i686
Apache version 2.2.11
mysql version 5.0.77
PHP Version 5.2.9
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Upload Module - errors for user and admin

Post by calguy1000 »

just specify the 'category path' as images/photos.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”