Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: 404 and errors on Themevan assets #23495
    Michele
    Participant

    This is actually holding me up and I’m not sure how long before you’ll take to respond. I’m working around the 404s but this will need to be rectified upstream.

    Regarding the full document root in your URLs, I see they’re being built in extension_customizer.php. In the block beginning line 83:

    `
    if ( empty( $this->_extension_dir ) ) {
    $this->_extension_dir = apply_filters( “redux/extension/customizer/dir”, trailingslashit( str_replace( ‘\\’, ‘/’, dirname( __FILE__ ) ) ) );
    $this->_extension_url = apply_filters( “redux/extension/customizer/url”, site_url( str_replace( trailingslashit( str_replace( ‘\\’, ‘/’, ABSPATH ) ), ”, $this->_extension_dir ) ) );
    }
    `

    Is there a particular reason you are doing it this way instead of the WordPress plugin_dir_path() and plugin_dir_url() methods? The reason it’s failing on my install is due to my WordPress installation being set up with https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory so the paths in the str_replace do not match. By using the WordPress plugins you’re guaranteed to have the correct paths without needing to fiddle about with them yourself. 🙂

    in reply to: 404 and errors on Themevan assets #23483
    Michele
    Participant

    Hi,

    There’s also a typo in the pot file:

    `
    #: inc/edd/template-tags.php:401
    msgid “Requements”
    msgstr “”
    `

    I think that’s meant to be Requirements?

Viewing 2 posts - 1 through 2 (of 2 total)