• Resolved anna2890

    (@anna2890)


    Hi,
    I have used Duplicator plugin to migrate my website to local server. I had a problem with upload folder images’ urls. They were wrong so images weren’t uploaded in the site. I opened database, and in wp_options>upload_path I have deleted the url. This way images were uploaded. Now I wondered if I made a mistake when I used Duplicator, and how I can solve this problem without modify path in database.
    Thanks

    • This topic was modified 7 years ago by anna2890.
    • This topic was modified 7 years ago by anna2890.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Cory Lamle

    (@corylamleorg)

    On a default WP install the values upload_url_path and upload_path are set to empty so if they are modified then you will need to manually adjust them on the new install. If you don’t want to have to update a new install then you can set the values to blank in the database.

    Hope that helps~

    Thread Starter anna2890

    (@anna2890)

    Hi,
    so when I run the install wizard, at step 3, where there’s the Path field I have to delete the url. This way upload_url_path and upload_path keep on setting to empty, as on default WP install.
    Thanks for your help.

    Cory Lamle

    (@corylamleorg)

    You shouldn’t change that value, however, if that value is exactly the as the Old Value (see step 3 options Old URL) then it will update to the New URL param found on step 3. If you set it to empty on the original site then you can ignore it when you make a copy…

    Thread Starter anna2890

    (@anna2890)

    Hi,
    sorry but I haven’t understood your answer. I have checked original site database. The field “upload_path” has a value, while the field “upload_url_path” is empty. When I use Duplicator and I don’t delete Path value on step 3, the site doesnt’t upload images included in field “uploads” because the url path is wrong. I give you an example:
    this is the wrong url of an image
    https://localhost/interior/C:/xampp/htdocs/interior/wp-content/uploads/2017/06/progetto3-1.jpg
    Deleting path value it becomes
    https://localhost/interior/wp-content/uploads/2017/06/progetto3-1.jpg
    and it works.
    So I don’t know why, but deleting Path value on step 3 images are uploaded, otherwise I have to delete upload_path value in database and set it to empty.

    Cory Lamle

    (@corylamleorg)

    Hey @anna2890,

    If you want to submit a support ticket for this issue I can have a closer look at your setup. Please provide a link to this thread when submitting the ticket.

    Thanks~

    Thread Starter anna2890

    (@anna2890)

    Hi @corylamleorg,
    I have submitted a support ticket. Thanks for your availability.

    johnwp413

    (@johnwp413)

    Not that I know exactly what the problem is, but here is my experience in case it helps:

    When moving from hosted to local in the past I found it matters exactly how I setup my localhost. More specifically, manually for WP sites when manually installing, 7zip automatically placed the installation in a folder /wordpress/ and even when that was appended to the path there were still problems with asset/content items. By making sure all files were unzipped to a root (e.g. using XAMPP I have xampp/htdocs/Sitename ) and installing WP everything works well. In step 3 when I transfer from server to local I simply delete the path as you mentioned. All assets work or are accessible.

    This has been the case on 2 separate sites for me, and perhaps a dozen or more duplication efforts as I develop the sites.

    Cory Lamle

    (@corylamleorg)

    Thanks for leaving that feedback, John!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem with upload path after using Duplicator’ is closed to new replies.