Okay
  Public Ticket #1537029
Invalid URL after Bedrock WP installation
Closed

Comments

  • Saskia started the conversation

    Hi, 

    I've installed WP using Bedrock. The common WP directories are there, but at a different path. 

    After installing Salient, everything seemed ok, until I wanted to use the Demo Importer. There were no images visible, and the 'import demo' button doesn't work. A quick inspection of the source revealed an invalid assets-url, as it includes my local url as well as the path to my local folder. 

    This is what I see:

    http://[my-url.local]/wp/[path/to/local/folder]/web/app/themes/salient/nectar/redux-framework/extensions/wbc_importer/demo-data/Agency/screen-image.jpg

    This is how it should be:

    http://[my-url.local]/app/themes/salient/nectar/redux-framework/extensions/wbc_importer/demo-data/Agency/screen-image.jpg

     I want to fix the code that generates that URL, but make it a fix that won't be undone when the theme is updated.

    Thanks!

  •  9,016
    Tahir replied

    Hey Again,

    Try using this plugin " https://wordpress.org/plugins/better-search-replace/ .

    Best


    ThemeNectar Support Team 

  • Saskia replied

    Thanks, but that's not my question (should've been more specific on that, sorry)

    I don't want to replace the whole URL, I want to fix the code that generates that URL, so the importer will work again.
    But on the other hand, I don't want to mess up theme files, because they will be undone on updates.

  •  9,016
    Tahir replied

    Hey Again,

    Unfortunately we dont have any solution available for it at the moment . 

    Be.st 


    ThemeNectar Support Team 

  • Saskia replied

    Alright thanks, I will use the 'ugly' solution from @codeandteam for now:

    The offending lines seem to be 43 and 48 in /salient/nectar/redux-framework/extensions/wbc_importer/wbc_importer/field_wbc_importer.php

    -------

    As a workaround to anyone else using Bedrock and looking for this, change line 43 to 

    $this->demo_data_url = home_url( '/app/themes/salient/nectar/redux-framework/extensions/wbc_importer/demo-data/' );

    and line 48 to 

    $this->extension_url = home_url( '/app/themes/salient/nectar/redux-framework/extensions/wbc_importer/wbc_importer/' );