Page 1 of 1

Upload Module - errors for user and admin

Posted: Thu Sep 10, 2009 12:53 pm
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.

Re: Upload Module - errors for user and admin

Posted: Thu Sep 10, 2009 7:46 pm
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

Re: Upload Module - errors for user and admin

Posted: Thu Sep 10, 2009 8:11 pm
by calguy1000
Bugfix version of uploads was released today.

Re: Upload Module - errors for user and admin

Posted: Sat Sep 12, 2009 3:13 pm
by Kira27
oh cool. i will check it out if the client takes the project off 'hold.' thanks!

Re: Upload Module - errors for user and admin

Posted: Sat Sep 12, 2009 3:28 pm
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!!!

:-*

Re: Upload Module - errors for user and admin

Posted: Sat Sep 12, 2009 6:05 pm
by calguy1000
just specify the 'category path' as images/photos.