• This may be an issue specifically with my host, but perhaps someone else has run into this issue before.

    I have a defined constant in my wp-config.php file setting the URL (and path) to my wp-content and wp-content/uploads directories.

    In my admin, both Woocommerce and Advance Custom Fields are pointing their assets to a full path rather than my defined URL.

    Rather than:

    <link rel='stylesheet' id='acf-global-css' href='http://mywebsite.com/wp-content/plugins/advanced-custom-fields-pro/assets/css/acf-global.css?ver=5.2.7' type='text/css' media='all' />

    I’m getting the following:

    <link rel='stylesheet' id='acf-global-css' href='http://mywebsite.com/wp-content/plugins/absolute/path/to-wp-content-dir/wp-content/plugins/advanced-custom-fields-pro/assets/css/acf-global.css?ver=5.2.7' type='text/css' media='all' />

    Where /absolute/path/to-wp-content-dir/ is my defined WP_CONTENT_DIR but the entire URL should be my WP_CONTENT_URL.

    This is happening on a Webfaction shared hosting environment.

The topic ‘Plugin paths not respecting wp-config.php defined constants’ is closed to new replies.