I've come across an issue with adding and displaying media (pictures) in WordPress but only under a specific scenario and I'm curious if there is just a simple command I might be missing.
Setup:
I have multiple websites on the same server and my goal was to set it up so that I only have one set of WordPress core code, plugins, and themes for all sites to share.
I did this by using nginx rules where every single site loads from the same directory of files /home/wordpress. In the home directory I have a generic wp-config.php file. That file starts by going to the sites 'data' folder where I have another php file containing all the database connection information along with every other aspect of wp-config.php unique to the site being displayed.
I define the 'uploads' directory in this custom file for each site which is actually a symlink.
Problem:
Everything seems to work perfect with one HUGE exception. When I go into a post and click the media button, nothing shows up. If I use the media button in the add post/page dialog to add media, I end up with an error code and the picture does not show up.
However, if I use the regular media button in the admin, I can indeed see all the images I upload and I can also upload as usual.
question:
Does the media uploader in the add post/page require a different constant to be defined in the wp-config.php file in order to work?
Or, is there simply a bug I might have found due to a strange setup I am trying?
**This is a hard problem to describe without posting a ton of my nginx rules as well as the custom server directory symlink setup etc... If this does sound like a real bug, and if any of the 'devs' are interested in helping to investigate, let me know and I'll work out access to the server as it's just a test setup.
thanks everyone.