• Resolved PeterInTheCloud

    (@peterinthecloud)


    Hi,
    we have trouble creating the Archive file by Duplicator. The build process stopps as showon in the log file excerpt below.

    The Provider Support (1&1, Germany) told us there is apparently a problem in the path setting. Duplicator uses the path
    /hompages/…
    but it should be
    /kunden/homepages/…

    Does anyone know how and where to correct this path setting, please?
    I have not yet found such a feature in Duplicator.

    Thank you!

    —————————————————-
    STATS: Dirs 1,045 | Files 8,401 | Links 0
    SQL ADDED:
    TheNamexxxx_dabase.sql
    WARNING: Unable to zip directory: ‘/homepages/ThePathTo-WP-Root-Folder’
    ZipArchive Object
    (
    [status] => 0
    [statusSys] => 0
    [numFiles] => 9446
    [filename] => /homepages/ThePathTo-WP-Root-Folder/wp-snapshots/tmp/TheNamexxx_archive.zip
    [comment] =>
    )

    https://www.ads-software.com/plugins/duplicator/

Viewing 3 replies - 1 through 3 (of 3 total)
  • This looks like its a host specific issue to 1 and 1 hosting.

    On 1and1 they have set Apache and PHP to have different roots. The Apache root starts with /kunden, the PHP root starts with /homepages.

    So in PHP a path like /homepages/xx/dxxxxxxxx/htdocs/site1/index.html would be /kunden/homepages/xx/dxxxxxxxx/htdocs/site1/index.html in Apache.

    The Duplicator uses the core wordpress constant ABSPATH. It won’t be a good idea to change this value because it works on 99% of most hosts. What you can do is open up the define.php file inside the Duplicators plugins path and change this line:

    define(‘DUPLICATOR_WPROOTPATH’, str_replace(“\\”, “/”, ABSPATH));

    to match 1&1’s setup process. Have you tried this in WP 4.0 there may have been an additional patch to reconcile the differences…

    Thread Starter PeterInTheCloud

    (@peterinthecloud)

    Hi Cory,

    Thank you for the hint!

    We updated to WP 4.0 but there is no change to this issue.

    Unfortunately I am not so familiar with PHP (I come from the C++ world) for being able to change the define correctly.
    But we currently move from shared hosting to a dedicated Server at 1&1. Hopefully the path issue will be gone then.

    Thank you!
    Peter

    No problem… Good Luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to correct the path shown in the settings’ is closed to new replies.