I installed the latest Mediashare into the latest Zikula, and for some reason, the Images are not showing up - only an X placeholder where the images should be. However, the images are showing in the upload directory, and an entry has been added to the database. If I click on the image placeholder to view, it is stuck in a perpetual "loading" mode, (Testing Very Small images - stuck for 20+ minutes...) - If I check the images in the upload folder there is nothing wrong with them, they just won't display on the site!
I also tried enabling MediaAttach as a hook for Mediashare, but I can't tell any difference in Mediashare after adding the hook... What step am I missing? How do they work together, and how can I use MediaAttach to load images into the Mediashare folders?
I tried MediaAttach by itself, and all of the images loaded perfectly. It would be perfect if I could somehow have everything loaded into seperate albums (not just categories) instead of one big list - like Mediashare does.
I need to give permissions to each folder (one per user) so that I don't have to give permissions on every document uploaded.
I've gone thru the documentation for both several times, and I must be missing something. Any help would be greatly appreciated.
Thanks!
PS - Using MySQL version 5.0.67, Upload & tmp folder are CHMOD 777, Files stored in folder - not database.
--
From the Ashes of Disaster
Grow the Roses of Success
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Images Not Displaying in MediaShare 4
-
- Rank: Freshman
- Registered: Jul 29, 2002
- Last visit: Oct 24, 2009
- Posts: 97
-
- Rank: Helper
- Registered: Dec 31, 1969
- Last visit: May 07, 2010
- Posts: 507
IIRC, Mediashare requires an entry in .htaccess to work properly. -
- Rank: Freshman
- Registered: Jul 29, 2002
- Last visit: Oct 24, 2009
- Posts: 97
I thought the documentation says thats only if I have the images stored in a database, and I don't...
where do I get an .htaccess file? - I didn't see one in the download and I don't know how to
create one.
--
From the Ashes of Disaster
Grow the Roses of Success -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
-
- Rank: Helper
- Registered: Dec 31, 1969
- Last visit: May 07, 2010
- Posts: 507
KWard
I thought the documentation says thats only if I have the images stored in a database, and I don't...
where do I get an .htaccess file? - I didn't see one in the download and I don't know how to
create one.
You're probably right about that. I do tend to store data in the database for ease of backup.
Have you configured the folder location where it's supposed to be saving the images? This will likely be a different location than MediaAttach. Maybe it's not writable? -
- Rank: Freshman
- Registered: Jul 29, 2002
- Last visit: Oct 24, 2009
- Posts: 97
Yes -It must be a folder named Mediashare in the main Zikula directory. CHMOD 777,
I see the Image files listed in the upload directory, they just don't display on site.
MediaAttach can be whatever I name it, also CHMOD 777. I used same folder for
MediaAttach and the images displayed correctly. - but I really need them in folders.
--
From the Ashes of Disaster
Grow the Roses of Success -
- Rank: Helper
- Registered: Dec 31, 1969
- Last visit: May 07, 2010
- Posts: 507
View the broken image and see what it's URL is. Maybe that will tell us something. -
- Rank: Freshman
- Registered: Jul 29, 2002
- Last visit: Oct 24, 2009
- Posts: 97
OK I think I answered my own question... MediaAttach writes its own .htaccess file for upload directory, and since I was using the same upload directory, the .htaccess file for MediaAttach would not allow access to Mediashare.
I had to rename the directory to "delete" as the .htaccess would not allow me to delete it. Then I readded the Mediashare folder and CHMOD 777. Now the images are displaying! Hurray!
Thanks so much for your help bronto!
I's still like to know how to use MediaAttach as a hook for Mediashare. - I have it enabled... but not clear what it does!
--
From the Ashes of Disaster
Grow the Roses of Success -
- Rank: Freshman
- Registered: Jul 29, 2002
- Last visit: Oct 24, 2009
- Posts: 97
One more thing... is it normal for the htaccess file to be "invisible" on the server? Never noticed that before. I couldn't see the file, so I didn't realize it was there.
--
From the Ashes of Disaster
Grow the Roses of Success -
- Rank: Team Member
- Registered: Jul 21, 2007
- Last visit: May 24, 2010
- Posts: 67
Hi KWard,
What do you want to accomplish by hooking MediaAttach to Mediashare?
A leading dot in a file- or directory-name on UNIX (based) systems indicates a hidden file (a so called 'dot-file').
If you are working on a UNIX/Linux environment, you can display them using the 'a' flag with ls:
ls -la
Regards,
Philipp -
- Rank: Freshman
- Registered: Jul 29, 2002
- Last visit: Oct 24, 2009
- Posts: 97
Quote
What do you want to accomplish by hooking MediaAttach to Mediashare?
I really liked Media Attach, and I was just wondering what capabilities it brought to Mediashare. I have it enabled as a hook, but I don't see any difference. Now that I have Mediashare working - just curious about what else it would do.
Thanks for explaining the dot file... not sure what you mean about the 'a' flag though? Yes I am working on a Linux environment. Would I just add ls before the dot? such as: ls.htaccess ? (Sorry, but I don't know much about htaccess files. I have no idea how to create one.)
Everything I've learned so far is by trial and error, and going thru the forums. Thanks for your help.
--
From the Ashes of Disaster
Grow the Roses of Success -
- Rank: Helper
- Registered: Dec 31, 1969
- Last visit: May 07, 2010
- Posts: 507
Theoretically, she could attach documents to Mediashare images, or something like that. I can imagine applications where that might make sense.
- Moderated by:
- Support
