Fork me on GitHub

Mediashare not getting files in database  Bottom

Go to page 1 - 2 [+1]:

  • 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?
  • Have you added the required virtual filesystem rewrites in your .htaccess file? You need an extra one if you're using shortURLs.
  • 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.
  • Should be in the top directory.

    How big are your images? Do you have phpMyAdmin access?
  • Very small, because I am just testing but would like to have larger images.
    Yes, I have phpMyAdmin access.
  • 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.
  • Yes, the data is in the database. So it looks like it is with fetching/displaying.
  • 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?
  • 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
  • I'll look into it later tonight. But please change the password and rather send me a personal message.
  • Thanks!
  • Seems the site is off now. Let us please know when it's back up again.
  • Yep, my server was down... but it is back up now.
  • 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?
  • That was it! Thank you!

    I just needed to enable mod_rewrite in my .htaccess file:

    Options +FollowSymLinks
    RewriteEngine On

    Thanks a million!!

Go to page 1 - 2 [+1]:

This list is based on users active over the last 60 minutes.