Installing Wordpress SEO (an a few others but not all plugins) gives the following console error:
GET http://craigmdennis.com/content/plugins/nfs/c08/h04/mnt/152547/domains/craigmdennis.com/html/content/plugins/wordpress-seo/js/wp-seo-admin-global.js?ver=1.2.5 404 (Not Found)
For some reason it is listing the complete server path after my url.
It seems as though
http://craigmdennis.com/content/plugins/ should not be present in the url.
Here is the directory structure (please note the custom content directory):
wp/ content/ content/themes/ content/plugins/ .htaccess index.php wp-config.php
I am not running MU. I also have a subdomain for media (shouldn't be effecting the issue but I'm listing it for completedness)
Here are the relevant parts of my wp-config.php file:
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp'); define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']); define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/content'); define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/content');
Does anyone know what's going on here? Thanks.
[EDIT] I think it's related to
__FILE__ and not DOCUMENT_ROOT as the plugins all use
__FILE__ to get the directory name. This provides
/nfs/c08/h04/mnt/ instead of
When I echo the location of the plugins_url() I get
/home/152547/domains/dev.craigmdennis.com/html/content/plugins which is correct but when I pass in FILE as a parameter I get the aforementioned
Could this be something to do with PHP resolving aliases for
__FILE__ This would explain why it works on my local server (with no aliases) and doesn't on Media Temple (which may alias
Is this a Wordpress issue or an issue on my server?