• Resolved ant0nin

    (@ant0nin)


    I try to build a Duplicator package from a WordPress website that is for now hosted locally on my machine (I using Wampserver). Although I’ve got no displayed error message on the GUI of the plugin when I built the package, I finally discovered that the generated output package is wrong when I tried to locally duplicate the website from it. The size of the generated package is less than 3MB whereas the website content has a size around 250MB. And after some investigation, I finally noticed that there is actually a PHP error that occurs at 59.6% of the building process and seems to be the source of the issue. Here is a relevant message from the Trace log:

    03-09-15:44:18|DUP|1c34fe08|[class.pack.php___________:1479] [DUP_Package::update]__________________________ | UPDATE PACKAGE ID = 1 STATUS = 59.6 
    03-09-15:44:19|DUP|1c34fe08|[class.logging.php________:  97] [DUP_Log::Info]________________________________ | ZipArchive Object
    (
        [status] => 0
        [statusSys] => 0
        [numFiles] => 24343
        [filename] => C:\wamp64\www\projects\massoma_spices\wp-content\backups-dup-lite\tmp\20210903_massomaspices_1df5947f863576ef4763_20210903134344_archive.zip
        [comment] => 
    )
     
    03-09-15:44:19|DUP|1c34fe08|[class.logging.php________:  97] [DUP_Log::Info]________________________________ | FILE ADDED TO ZIP: 24342 
    03-09-15:44:21|DUP|1c34fe08|[class.logging.php________:  97] [DUP_Log::Info]________________________________ | [PHP ERR][WARN] MSG:ZipArchive::close(): Read error: No such file or directory [CODE:2|FILE:C:\wamp64\www\projects\massoma_spices\wp-content\plugins\duplicator\classes\package\class.pack.archive.zip.php|LINE:205]
    do_action('wp_ajax_duplicator_package_build'), WP_Hook->do_action, WP_Hook->apply_filters, duplicator_package_build, DUP_Package->runZipBuild, DUP_Archive->build, DUP_Zip::create, ZipArchive->close, DUP_Handler::error, DUP_Handler::getMessage 
    03-09-15:44:21|DUP|1c34fe08|[class.pack.php___________:1479] [DUP_Package::update]__________________________ | UPDATE PACKAGE ID = 1 STATUS = -1.0 
    03-09-15:44:21|DUP|1c34fe08|[class.pack.archive.php___: 111] [DUP_Archive::build]___________________________ | Completed build or build thread 
    03-09-15:44:21|DUP|1c34fe08|[class.pack.archive.php___: 121] [DUP_Archive::build]___________________________ | Completed DupArchive build 
    03-09-15:44:21|DUP|1c34fe08|[class.pack.archive.php___: 123] [DUP_Archive::build]___________________________ | Error building DupArchive 
    03-09-15:44:21|DUP|1c34fe08|[class.pack.php___________:1479] [DUP_Package::update]__________________________ | UPDATE PACKAGE ID = 1 STATUS = -1.0 

    Do you have an idea of why this is happening? I tried to locally duplicate another of my WordPress website (same theme, same addons) and it works. So it’s strange.

    • This topic was modified 3 years, 6 months ago by ant0nin.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Package build fails dues to a PHP error’ is closed to new replies.