• Resolved Ov3rfly

    (@ov3rfly)


    After user of installer.php one define() is added to wp-config.php

    define( 'WP_SITEURL', 'https://target.example.com/' );
    /* That's all, stop editing! Happy publishing. */

    Note: Only for WP_SITEURL, not for WP_HOME.

    Expected behaviour: No defines for WP_XXX URLs are added to wp-config.php

    Duplicator 1.5.6, WordPress 6.3.2

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi @ov3rfly,

    Duplicator allows you to just copy the original wp-config.php file from the backup archive to the website where you install that backup.

    In the first step during the backup restoration, Click the Advanced button on the top right corner of the screen, Navigate to the Options > Advanced Tab > Configuration Files, and select “Do Nothing” for the WordPress option, and proceed with the restoration.

    Please let me know if this works.

    Thanks!

    Thread Starter Ov3rfly

    (@ov3rfly)

    The bug was introduced with Duplicator 1.5.0.

    There is a new || $urlNew != $newSiteUrl comparison to decide if WP_SITEURL will be added to target site wp-config.php even if the constant did not exist in source site:

    $newSiteUrl = $paramsManager->getValue(PrmMng::PARAM_SITE_URL);
    if ($confTransformer->exists('constant', 'WP_SITEURL') || $urlNew != $newSiteUrl) {
    	$confTransformer->update('constant', 'WP_SITEURL', $newSiteUrl, array('normalize' => true, 'add' => true));
    	Log::info('UPDATE WP_SITEURL ' . Log::v2str($newSiteUrl));
    }
    
    dup-installer/ctrls/classes/class.ctrl.s3.funcs.php

    This comparison is always different with default settings in installer because in your code the url is same but trailing slash is different:

    $urlNew:
    https://target.example.com
    
    $newSiteUrl:
    https://target.example.com/

    Please fix, thanks.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi?@ov3rfly,

    I have reached out to the development team and they confirmed that this is a bug that we need to fix. I would like to thank you for pointing this out and please rest assured that we will fix this problem as soon as possible.

    Please let me know if you have any other questions or suggestions, I’m happy to assist you.

    Thanks!

    Thread Starter Ov3rfly

    (@ov3rfly)

    Have posted another suggestion here about a pretty annoying problem.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi?@ov3rfly,

    We appreciate your suggestions that you notify us about this problems. I already notified the team about your findings and suggestions.

    Please don’t hesitate to contact us if you have any suggestions or you need help with Duplicator, I’m happy to assist you.

    Thanks!

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi,

    I’m closing this support topic for inactivity. Please don’t hesitate to contact us in a Support Topic if you need any help with Duplicator.

    Thanks! 

    Thread Starter Ov3rfly

    (@ov3rfly)

    Feel free to mark this issue as ‘resolved’ after a plugin update with a bug fix has been released by your development team, not before.

    Thanks.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi @ov3rfly,

    Our development team has fixed this issue. I appreciate it if you checked if the issue has been fixed from your side.

    I’m looking forward to hearing back from you.

    Thanks!

    Thread Starter Ov3rfly

    (@ov3rfly)

    When was the fix released? Can’t find it in your changelog.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi @ov3rfly,

    This has been fixed in Duplicator Lite version 1.5.7, kindly check the changelog https://a.supportally.com/i/AD1yix

    Thread Starter Ov3rfly

    (@ov3rfly)

    Why does your changelog link not point on your website? I am not clicking weird third party links, sorry.

    Have tested Duplicator 1.5.8 with WordPress 6.4.2 and the issue seems to be resolved.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi @ov3rfly,

    Why does your changelog link not point on your website? I am not clicking weird third party links, sorry.

    Can you please guide me on how to find the changelog link you refer to?

    Thread Starter Ov3rfly

    (@ov3rfly)

    kindly check the changelog https://a.supportally.com/i/AD1yix

    Weird third party link.

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi?@ov3rfly,

    Thanks for the clarification.

    To find the version 1.5.7 changelog, please open our changelog page at https://duplicator.com/knowledge-base/changelog and click orange anchor “Lite” below the title “Changelog” or directly go to the Lite section of the changelog page from this URL:
    https://duplicator.com/knowledge-base/changelog/#lite

    After that, scroll down and locate changelog of version 1.5.7 or locate the title “Version 1.5.7 – November 8th, 2023”

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Bug, define WP_SITEURL added to wp-config.php’ is closed to new replies.