• WordPress version: 3.5
    WordPress SEO version: 1.3.4.4

    I did this:
    1. Installed the plugin as an svn external, in a wp-content folder that lives outside the wordpress installation, but is defined by WP_CONTENT_DIR and WP_CONTENT_URL in wp-config.php
    2. Activated the plugin.

    Unexpected behavior:
    The SEO sidebar item in WP admin is missing its image, and looking at the browser console it reports a 404 for the image, because the path it tries to load it from is incorrect. It tries the following (edited for confidentiality):

    http://www.example.com/wp-content/plugins/mnt/hda1/www/www.example.com/html/wp-content/plugins/wordpress-seo/images/yoast-icon.png

    The correct URL should actually be:

    http://www.example.com/wp-content/plugins/wordpress-seo/images/yoast-icon.png

    There is also a missing .js file in the same way.

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 1 replies (of 1 total)
  • Thread Starter Markus Amalthea Magnuson

    (@markusmagnuson)

    It turns out this problem appears in other plugins as well.

    The problem has to do with symlinks in the wp-content path, see this ticket for more information.

    I solved it by editing my wp-config.php, replacing this:

    define('WP_CONTENT_DIR',$_SERVER['DOCUMENT_ROOT'] . '/wp-content');

    With this:

    define('WP_CONTENT_DIR', realpath($_SERVER['DOCUMENT_ROOT'] . '/wp-content'));

Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect path for resources (image, js) after installing and activating’ is closed to new replies.