I am getting the error “must be within the content directory” on all of my images. The images are in the correct content directory, and the directory displayed in the error is correct as well. However, there is something preventing this from working. I suspect that it is this;
My wordpress installation is in /wordpress/ but my wp-content folder is outside of the wordpress folder in /wp-content/.
So the full path to the plugin is
And the full path to the uploads folder is
I’ve redefined the location of my wp-content folder in wp-config.php, I have the correct site URL in the database, and everything else works fine, every other plugin, etc.
I found a few old support requests about this error, but all of them seemed to say that the latest version fixes the problem. I’ve tried all of the workarounds I can find.
- The topic ‘must be within the content directory’ is closed to new replies.