• We have WordPress multisite set up as English and Chinese sites. It is a multisite subdir instll, so the English site is at pccma.org and the Chinese site is at pccma.org/chinese. That is how WP multisite is set up. But there is not actually a /chinese/ folder under the site root on the server.

    Sermon Browser is activated in each site within the multisite. It has been working correctly for several years, but in the past few weeks the media player stopped working. The media files are stored in a /media/ folder off the site html root. The sermon uploads folder was set to media/english/sermons/ for the English sermons and media/chinese/sermons/ for the Chinese sermons. But the media player started looking for Chinese sermons in /chinese/media/chinese/sermons/ and returning a 404. Changing the uploads dir to /media/chinese/sermons/did not help.

    I tried setting the Chinese site sermons upload folder to ../media/chinese/sermons/. Then the media player found the files correctly. But the sermon browser uploaded started putting the uploaded files in /media/chinese/sermon on level above the html root. So it looks like the uploads code is treating the uploads directory setting differently from the media player. For the Chinese site the media player is interpreting the url starting from the home directory of the Chinese site, but the uploads code is interpreting the path starting from the home path of the multisite.

    In WordPress multisite, ABSPATH will point to the root path of the WP install, but home_url() will return the base url of the current site (e.g. pccma.org/chinese/)

    The page I need help with: [log in to see the link]

  • The topic ‘Media player looking in wrong folder for mp3 filed’ is closed to new replies.