Error Backuping up using Snapshot

When making a snapshot and hitting Files: : themes

We get the following error: With an Abort….

ERROR: zip archive add failed [Array ( [type] => 8 [message] => A session had already been started – ignoring session_start() [file] => /home/cleanse2/public_html/wp-content/plugins/snapshot/snapshot.php [line] => 2156 ) ]

PLEASE ADVISE.

  • Paul
    • The Green Incsub

    @bbabaa,

    The line 2156 in the snapshot.php code file is where Snapshot itself tries to start the session. The session is needed to store some processing variables used only during the backup.

    Internally WordPress does not use session only the cookie set during authentication. Since you are on the Snapshot admin pages it should be the only thing creating a session. So probably some other plugin you are running is setting up a session calling the session_start() PHP function. Not sure on a suggestion other than to try searching for session_start in all your plugin files.

  • begnor
    • New Recruit

    Hi,

    I have the exact same problem when trying to use this plugin.

    Downloaded the beta version, thanks for that, but it throws another error now;

    “ERROR: zip archive add failed [Array ( [type] => 2048 [message] => is_a(): Deprecated. Please use the instanceof operator [file] => /usr/home/db101/domains/domain.com/public_html/members/wp-includes/functions.wp-scripts.php [line] => 54 ) ]”

    Any idea’s?

    Thank you,

    Best Regards

  • begnor
    • New Recruit

    Hi,

    Next time tell us that you meant the https://dl.dropbox.com/u/2616987/WPMUDev/snapshot-2.0.4-Beta3.zip from the https://premium.wpmudev.org/forums/topic/snapshot-plugin-error#post-297112 post… hehehehe, took me some time to figure it out :wink:

    So, Anyways, I installed the snapshot-2.0.4-Beta1 and it now throws this error;

    “ERROR: zip archive add failed [-2] [Unable to open temporary file ‘pclzip-508f9f7a78816.tmp’ in binary write mode] memory_limit: 128M: memory peak usage: 53.5M”

    * I tested this on several sites with different hosts OS(FreeBSD, CentOS and Synology) but none do actually work unfortunately..

    The thing is that I purchased a membership specially for this plugin…so I hope this get fixed asap since this looks like serious bug to me, please help.

    Here’s the Logfile;

    “2012-10-30 09:35:35: Backup: init

    2012-10-30 09:35:35: memory_limit: 128M

    2012-10-30 09:35:35: updating snapshot: 1351589557

    2012-10-30 09:35:37: table: wp_commentmeta segment: 1/1

    2012-10-30 09:35:38: table: wp_comments segment: 1/1

    2012-10-30 09:35:38: Warning: errno:2 fopen(pclzip-508f9f6a1606d.tmp): failed to open stream: Permission denied /usr/home/db101/domains/begnor.com/public_html/members/wp-admin/includes/class-pclzip.php on line 2203

    2012-10-30 09:35:39: table: wp_links segment: 1/1

    2012-10-30 09:35:39: Warning: errno:2 fopen(pclzip-508f9f6b045d8.tmp): failed to open stream: Permission denied /usr/home/db101/domains/begnor.com/public_html/members/wp-admin/includes/class-pclzip.php on line 2203″

    “2012-10-30 09:35:54: file: : _POSTArray

    (

    [action] => snapshot_backup_ajax

    [snapshot-proc-action] => file

    [snapshot-action] => update

    [snapshot-item] => 1351589557

    [snapshot-data-item] => 1351589721

    [snapshot-blog-id] => 0

    [snapshot-file-data-key] => themes

    )

    2012-10-30 09:35:54: Notice: errno:8 Undefined variable: filename /usr/home/db101/domains/begnor.com/public_html/members/wp-content/plugins/snapshot/snapshot.php on line 2315

    2012-10-30 09:35:54: file: : error_arrayArray

    (

    [errorStatus] => 1

    [errorText] => ERROR: zip archive add failed [-2] [Unable to open temporary file ‘pclzip-508f9f7a78816.tmp’ in binary write mode] memory_limit: 128M: memory peak usage: 53.5M

    [responseText] =>

    )

    2012-10-30 09:35:54: Notice: errno:8 Undefined variable: filename /usr/home/db101/domains/begnor.com/public_html/members/wp-content/plugins/snapshot/snapshot.php on line 2316″

  • Paul
    • The Green Incsub

    @begnor, Yeah sorry. Has been a crazy couple of days supporting issues. So the error which is showing is now the correct errors. Seems the PclZIP library we are using, which is part of WordPress is flawed in that is consumes memory. I’m working on a new beta for today that will use a different zip library and use less memory. Sit tight for now.

  • Paul
    • The Green Incsub

    @begnor, actually in looking at your error vs the other. Your is different. The errno 2 is the key here. Using the PcLZIP library like most other zip libraries it uses temp files when creating the zip. In using these temp files is has to have a directory to create them. By default the temp folder is your site root.

    Your site root may not be writable. So do this for me as a test. Edit the wp-config.php in your site root. Look for the live containing ‘WP_DEBUG’. Just after this line add the following.

    define( ‘PCLZIP_TEMPORARY_DIR’, ‘< CHANGE THIS TO WRITABLE DIR >’ );

    Set the value of the second parameter to some know writeable path. This MUST end with a ‘/’. If you are not sure on a path. Try creating a new path like

    /usr/home/db101/domains/begnor.com/public_html/members/wp-content/tmp/ ensure this is fully writable.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.