Dear Customers! We're out of the office from the 6th of October to the 11th of October. We sincerely apologize for the inconvenience. For WordPress 5.5.* related issues, please visit this article

Okay
  Public Ticket #1438167
WP_CONTENT_URL
Closed

Comments

  • Felix Nielsen started the conversation

    I have a setup where my wordpress installation is folder

    ./wp/

    and my themes etc. are in folder

    ./wp-content/

    This means that I am setting `WP_CONTENT_URL`to handle various re-routes.

    WP_CONTENT_URL => "http://localhost:8888/wp-content/"

    This seem to break the "Theme Options" view within wordpress admin, as css and js files are being fetched from a front url.

    http://localhost:8888/wp-content//Users/skynet/workspace/website/wp-content/themes/engage/framework/theme-panel/ReduxCore/inc/fields/spacing/field_spacing.min.js?ver=1516362554

    Observation is that the static files constructed url seems to be generated from: 

    WP_CONTENT_DIR 

    and not 

    WP_CONTENT_URL

    Also it seems to concatenate various strings wrongly, like:

    WP_CONTENT_URL + WP_CONTENT_DIR

    Not sure what is going on, but I can confirm that other plugins work fine with my settings.

  • Felix Nielsen replied

    I needed to add this in my "child" theme

    add_filter( 'redux/_url', 'ReduxSymLinkURL', 10 );
    function ReduxSymLinkURL(){ //$url = "http://localhost:8888/wp-content/themes/engage/includes/redux/redux-framework/ReduxCore/";

    $url = WP_CONTENT_URL . "/themes/engage/framework/theme-panel/ReduxCore/"; return $url;
    }

    I think this should be fixed from the "theme" side.

  •  361
    Filip replied

    Hi Felix,

    Thank you so much for your message! And thank you for posting the fix. I've just took a quick look at the Redux Framework forums and I can indeed see there might be an issue when bundling the framework within a theme. We'll definitely take a closer look into it during the weekend and come up with a solid solution for a next theme update. Thank you!

    Kind Regards,
    Veented Team

  •  361
    Filip replied

    Hi Felix!

    Alright, I think the new theme version should finally resolve the symlink issue you were experiencing. Can you please install the new theme version, remove the child theme's snippet you have (add_filter one) and see how it goes?

    Here is the link:

    https://d.pr/f/U0X9yp

    Kind Regards,
    Veented Team