Something small and buggy but I can’t seem to figure it out: WordPress site was moved from testing server to live server and now after the move the media images that have been uploaded are no longer selectable or insertable in the ‘Add Media’ screen. This only happens to users with Editors or below (level 5 or less) while the Admin can see all the images. So it seemed that it should have been one of two things:
-
Rewriting folder permissions from 755 to 766 or 776 or even 777 did nothing to make the images appear in the ‘Add Media’ screen
-
Changing permissions using the ‘User Role Editor’ failed to change it as well.
The commonly cited ‘deactivate all plugins’ did not work either.
Anyone seen this before?
Figured it out. It did end up being an odd bug related to permissions restrictions due to a custom plugin we wrote for the site. It seemed we couldn’t restrict access to dashboard items with both ‘User Role Editor’ and our custom plugin.
The only odd thing was that this did not seem to interfere while the site was on our testing server. Once it went live the permissions interfered with each other (?) but nonetheless it was discovered by systematic troubleshooting which plugin and then which functions were causing the error.
For you guys trying to find answer to similar question: If you run your WordPress install on VPS or dedicated server which you had to configure yourself, remember to install PHP GD Graphic Library! It does not sometimes come natively and this library is needed to run all WordPress media functionalities and even premium themes like Codeus uses this functionatility. You can install this library in terminal by typing
apt-get install php5-gd
Then type
And you should be good to go!