WordPress.org

Ready to get started?Download WordPress

Forums

Duplicator
[resolved] 0.5.2 scan - Fatal error: Uncaught exception 'UnexpectedValueException' (13 posts)

  1. Craig Berry
    Member
    Posted 5 months ago #

    Hello,
    Have been using duplicator on other site for awhile, without an issue, but I'm scratching my head on this one.

    I took over a website for an old client and loaded up 0.5.2 on it:
    WP 3.8.1
    PHP 5.3.28

    Ran a scan and it threw an error (listed below). Turned off the scan, and the package completed. Log file shows no errors.

    This is the scan error I got:

    Fatal error: Uncaught exception 'UnexpectedValueException' with message 'DirectoryIterator::__construct(/home/sitename/public_html/cgi-bin) [<a href='directoryiterator.--construct'>directoryiterator.--construct</a>]: failed to open dir: Permission denied' in /home/sitename/public_html/wp-content/plugins/duplicator/classes/package.archive.php:108 Stack trace: #0 /home/sitename/public_html/wp-content/plugins/duplicator/classes/package.archive.php(108): DirectoryIterator->__construct('/home/sitename/...') #1 /home/sitename/public_html/wp-content/plugins/duplicator/classes/package.archive.php(117): DUP_Archive->runDirStats('/home/sitename/...') #2 /home/sitename/public_html/wp-content/plugins/duplicator/classes/package.archive.php(87): DUP_Archive->runDirStats('/home/sitename/...') #3 /home/sitename/public_html/wp-content/plugins/duplicator/views/actions.php(63): DUP_Archive->GetStats() #4 [internal function]: duplicator_package_scan('') #5 /home/sitename/public_html/wp-includes/plugin.php(429): call_user_func_array('duplicat in /home/sitename/public_html/wp-content/plugins/duplicator/classes/package.archive.php on line 108

    Any ideas? File/Folder permissions look good all the way through.

    Thanks!
    CB

    https://wordpress.org/plugins/duplicator/

  2. Cory Lamle
    Member
    Plugin Author

    Posted 5 months ago #

    Hey catholicservant,

    Thanks for the feedback! If you can give the developer version a try it may have your fixes for the issue your seeing. The very latest version (0.5.3) can be found by following these instructions:

    -> Browse to http://wordpress.org/extend/plugins/duplicator/developers/
    -> Look for the section "Other Versions"
    -> Click on "Development Version" and download the zip plugin file
    -> Uninstall your current version and install this one
    -> Note: This is a development line version so please test in your sandbox first to make sure you have no issues...

    This should be fixed for the scanner. Let me know if this solves your issue...

    Thanks

  3. aspitters
    Member
    Posted 4 months ago #

    I am having the sdame issue but the above solution does not resolve my issue

    Fatal error: Uncaught exception 'UnexpectedValueException' with message 'DirectoryIterator::__construct(/home/winw/theretiringbusinessowner.com/wp-content/uploads/2012) [directoryiterator.--construct]: failed to open dir: Permission denied' in /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php:108 Stack trace: #0 /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php(108): DirectoryIterator->__construct('/home/winw/ther...') #1 /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php(117): DUP_Archive->runDirStats('/home/winw/ther...') #2 /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php(117): DUP_Archive->runDirStats('/home/winw/ther...') #3 /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php(117): DUP_Archive->runDirStats('/home/winw/ther...') #4 /home/win in /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php on line 108

  4. Cory Lamle
    Member
    Plugin Author

    Posted 4 months ago #

    Hey aspitters,

    The error being thrown doesn't seem to match the line number in latest code base found in the developers version. Are you sure you downloaded the developer version?

    If you do have the very latest and your still seeing this issue then you can submit a support ticket by going to lifeinthegrid.com/duplicator and looking for the lifeinthegrid link and I can look closer at your setup. It may be a few days before I can actually troubleshoot...

    Thanks~

  5. aspitters
    Member
    Posted 4 months ago #

    Here you go

    Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/home/winw/theretiringbusinessowner.com/wp-content/uploads/2012) [recursivedirectoryiterator.--construct]: failed to open dir: Permission denied' in /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php:110 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/home/winw/ther...', 0) #1 [internal function]: RecursiveDirectoryIterator->getChildren() #2 /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php(110): iterator_to_array(Object(RecursiveIteratorIterator)) #3 /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php(90): DUP_Archive->runStats() #4 /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.php(89): DUP_Archive->Stats() #5 /home/winw/theretiringbusinessowner.com/ in /home/winw/theretiringbusinessowner.com/wp-content/plugins/duplicator/classes/package.archive.php on line 110

  6. aspitters
    Member
    Posted 4 months ago #

    Here is the ticket

    Ticket tracking ID: PMN-J7V-AJVM

  7. Cory Lamle
    Member
    Plugin Author

    Posted 4 months ago #

    Thanks I'll get with you today...

  8. aspitters
    Member
    Posted 4 months ago #

    thanks

  9. aspitters
    Member
    Posted 4 months ago #

    I just did a backup and this is what the Log file shows

    ********************************************************************************
    PACKAGE-LOG: 2014-03-23 04:42:04
    NOTICE: Do NOT post to public sites or forums
    ********************************************************************************
    VERSION: 0.5.3
    WORDPRESS: 3.8.1
    PHP INFO: 5.3.13 | SAPI: cgi-fcgi
    SERVER: Apache
    PHP TIME LIMIT: (0) no time limit imposed
    PHP MAX MEMORY: 5000M (90M default)

    ********************************************************************************
    DATABASE:
    ********************************************************************************
    BUILD MODE: PHP
    MYSQLDUMP: Is Supported
    MYSQLTIMEOUT: 5000
    TABLES: total:34 | filtered:0 | create:34
    FILTERED: []
    wp_e766c6_commentmeta (6)
    wp_e766c6_comments (2)
    wp_e766c6_duplicator_packages (1)
    wp_e766c6_layerslider (0)
    wp_e766c6_links (10)
    wp_e766c6_options (2499)
    wp_e766c6_postmeta (1992)
    wp_e766c6_posts (788)
    wp_e766c6_revslider_sliders (0)
    wp_e766c6_revslider_slides (0)
    wp_e766c6_term_relationships (427)
    wp_e766c6_term_taxonomy (113)
    wp_e766c6_terms (103)
    wp_e766c6_usermeta (82)
    wp_e766c6_users (3)
    wp_e766c6_wfBadLeechers (0)
    wp_e766c6_wfBlocks (2)
    wp_e766c6_wfBlocksAdv (0)
    wp_e766c6_wfConfig (90)
    wp_e766c6_wfCrawlers (0)
    wp_e766c6_wfFileMods (2792)
    wp_e766c6_wfHits (20139)
    wp_e766c6_wfHoover (0)
    wp_e766c6_wfIssues (5)
    wp_e766c6_wfLeechers (916)
    wp_e766c6_wfLockedOut (0)
    wp_e766c6_wfLocs (1)
    wp_e766c6_wfLogins (1053)
    wp_e766c6_wfNet404s (0)
    wp_e766c6_wfReverseCache (1)
    wp_e766c6_wfScanners (18)
    wp_e766c6_wfStatus (988)
    wp_e766c6_wfThrottleLog (0)
    wp_e766c6_wfVulnScanners (0)
    SQL CREATED: 20140319_theretiringbusinessowner_532e6607d8da39516140323044143_database.sql
    SQL FILE SIZE: 12.78MB
    SQL RUNTIME: 14.35 sec.

    ********************************************************************************
    ARCHIVE (ZIP):
    ********************************************************************************
    ARCHIVE DIR: /home/winw/theretiringbusinessowner.com
    ARCHIVE FILE: 20140319_theretiringbusinessowner_532e6607d8da39516140323044143_archive.zip
    FILTERS: *OFF*
    DIRS: not set
    EXTS: not set
    ----------------------------------------
    COMPRESSING
    SIZE:
    STATS: Dirs | Files | Links
    SQL ADDED: 20140319_theretiringbusinessowner_532e6607d8da39516140323044143_database.sql
    ZipArchive Object
    (
    [status] => 0
    [statusSys] => 0
    [numFiles] => 1
    [filename] => /home/winw/theretiringbusinessowner.com/wp-snapshots/tmp/20140319_theretiringbusinessowner_532e6607d8da39516140323044143_archive.zip
    [comment] =>
    )

    COMPRESSION RESULT: '1'
    COMPRESSED SIZE: 1.69MB
    ARCHIVE RUNTIME: 2.32 sec.

    ********************************************************************************
    INSTALLER:
    ********************************************************************************
    INSTALLER FILE: Build Start
    INSTALLER FILE: Build Finished
    INSTALLER FILE: Preping for use
    INSTALLER FILE: Template parsed with new data
    INSTALLER FILE: Complete [/home/winw/theretiringbusinessowner.com/wp-snapshots/tmp/20140319_theretiringbusinessowner_532e6607d8da39516140323044143_installer.php]

    ********************************************************************************
    RECORD ID:[1]
    FILE SIZE: Archive:1.69MB | SQL:12.78MB | Installer:409.24KB
    TOTAL PROCESS RUNTIME: 18.06 sec.
    DONE PROCESSING => 20140319_theretiringbusinessowner 2014-03-23 04:42:22
    ********************************************************************************

  10. Cory Lamle
    Member
    Plugin Author

    Posted 4 months ago #

    Hey Aspitters,

    I assume your package was created successfully? Also be sure to not post these logs to the public forums (as it states in the log file at the top).

    This log contains sensitive information. Be sure you remove this package set from your system as it allows anyone to browse to your server and get your entire site.

    Cheers~

  11. aspitters
    Member
    Posted 4 months ago #

    Can you remove this form the form? I can not seem to edit this

  12. aspitters
    Member
    Posted 4 months ago #

    I still can not do the scan

  13. Cory Lamle
    Member
    Plugin Author

    Posted 4 months ago #

    I can't delete it, only forum moderators can... however if you remove the packages that that log shows being creating you should be fine. Lets try and work this issue out on the ticket you created vs trying to do it in both places. If you need to create a new ticket feel free to do that or use the last ticket we were working on...

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic