• This just started happening this week – before all was working wonderfully (I love everything you’ve put into this plug-in). I read previous posts about this, tried deactivating all other plugins, switched to different themes, but still get “Can’t Locate Audio”. I deactivated MP3_J player, and the built-in player doesn’t work either. The latest clue is using the shortcode for single-file playing, the example from your site works, one I set up that uses a URL to an mp3 hosted on my old site works, but one that uses a URL from a file in my current wordpress uploads/media folder doesn’t. Which leads me to think that something is wrong with accessing the media folder. All the images are loading, there’s no problem with them. But the audio in the folder is not being accessed:
    https://dev.gunnarspot.com/media/video-game-music/

    Any ideas on how to get things working again? Thanks!

    https://www.ads-software.com/plugins/mp3-jplayer/

Viewing 1 replies (of 1 total)
  • Thread Starter gspotrecords

    (@gspotrecords)

    Figured it out! Could be useful info for others – .htaccess is handy for adding security to wordpress sites. There is a secondary .htaccess file that can be added to secure the wp-content directory. If installed, make sure to add your audio file formats to it (mp3, ogg, etc.)! Here is the relevant info, and a link to the great page that educated me all about this:

    3. Protect /Wp-Content/

    The wp-content directory is one of the most important areas of your WordPress website. It is where vital files are located such as your themes, plugins, uploaded media (images and videos), and cached files.

    Due to this, it is one of the main targets of hackers. When a spammer managed to compromise an old website of mine last year, he did it by uploading a mail script to my uploads folder. He then proceeded to send out spam mail using my server; which subsequently placed my server on spam blacklists.

    You can tackle threats like this by creating a separate .htaccess file and adding the following code to it:
    Order deny,allow
    Deny from all
    <Files ~ “.(xml|css|jpe?g|png|gif|js|mp3|ogg)$”>
    Allow from all
    </Files>

    You then need to upload this separate .htaccess file to the main wp-content directory i.e. https://www.yourwebsite.com/wp-content/. Doing this will allow media files to be uploaded including XML, CSS, JPG, JPEG, PNG, Gif, Javascript, mp3 and OGG. All other file types will be denied.

    From: https://www.elegantthemes.com/blog/tips-tricks/wordpress-htaccess-tips-and-tricks

Viewing 1 replies (of 1 total)
  • The topic ‘Can't Locate Audio – link to media folder corrupt?’ is closed to new replies.