I can set Mediashare to upload files to local directory but when I change to upload to database. It gives no errors on the upload but the thumbnails do not display and when I click on to view the image nothing displays... it just tries and tries and tries but no images is displayed.
I am using mysql 5 and PHP 5.
Has anyone else experienced this? Any ideas?
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
Mediashare not getting files in database
-
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
-
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
Have you added the required virtual filesystem rewrites in your .htaccess file? You need an extra one if you're using shortURLs. -
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
Not using shortURLs and yes I added the required line in my .htaccess
Should the .htaccess be in the top directory or in the directory where Mediashare writes to? It is in the top directory. -
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
-
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
Very small, because I am just testing but would like to have larger images.
Yes, I have phpMyAdmin access. -
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
Can you see if there are any data in the records? If you browse the .._mediashare_mediadb table contents there is a column mbd_data, check if the records have data in that column. If they do, you know that the problem is probably in the fetching/displaying logic. Otherwise the problem is in the uploading. -
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
Yes, the data is in the database. So it looks like it is with fetching/displaying. -
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
Which version of Mediashare are you using and what exactly does the URL look like when you try to display an image?
P.S. Is this site available on the internet? -
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
version 4.0.0
https://2wt4k.com/zik/index.php?module=Mediashare&func=browse&aid=2&mid=12
It is available but not for unregistered users.
edited by: mjturn, Aug 04, 2009 - 08:43 AM -
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
I'll look into it later tonight. But please change the password and rather send me a personal message. -
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
-
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
Seems the site is off now. Let us please know when it's back up again. -
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
-
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
It seems your configuration is right and the files are in the database correctly. The problem is with the rewrite of the Mediashare virtual filesystem. If you request https://2wt4k.com/zi…qwbm9gg7te4-pre.png (a 'direct' link to display one of your images) you get a 404 error because this URL is not being rewritten to a Mediashare request.
Looking in the administration/System Information/PHP Modules it seems that Apache mod_rewrite is not enabled on your server. Did you set up this server yourself? Seems it's a LINUX machine. Which distribution is your server running? -
- Rank: Softmore
- Registered: Nov 30, 2005
- Last visit: May 07, 2010
- Posts: 104
That was it! Thank you!
I just needed to enable mod_rewrite in my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
Thanks a million!!
- Moderated by:
- Support
