Giter VIP home page Giter VIP logo

unyson-backups-extension's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unyson-backups-extension's Issues

Content Backup Issue

Hello guys. Demo content back up will not save some images format like png when im (Create Content Backup Now).
Otherwise (Create Full Backup Now) its does. Thx

Demos on remote server

Hello,
I've some problem. Our team working on our new theme using Unyson framework and dummy data from our server. But haven't Tools > Demo Content Install menu in the WordPress admin.

I was created index.php in our server http://www.domain.com/demo/index.php
It's config.php in same directory index.php

<?php
/**
 * Overwrite default config
 */

$cfg = array(
	'files' => array(
		// 'demo-id' => '/path/to/demo.zip',
                'dropx' => 'http://www.domain.com/demo/dropx.zip',
	),
);
<?php
/**
 * @param FW_Ext_Backups_Demo[] $demos
 * @return FW_Ext_Backups_Demo[]
 */
function _filter_theme_fw_ext_backups_demos($demos) {
    $uri = get_template_directory_uri();
    $demos_array = array(
        'dropx' => array(
            'title' => __('DropX', 'ps_dropx'),
            'screenshot' => $uri . '/screenshot.png',
            'preview_link' =>  'http://www.demo.com',
        ),
    );

    $download_url = 'http://pxltheme.online/theme-demo/';

    foreach ($demos_array as $id => $data) {
        $demo = new FW_Ext_Backups_Demo($id, 'piecemeal', array(
            'url' => $download_url,
            'file_id' => $id,
        ));
        $demo->set_title($data['title']);
        $demo->set_screenshot($data['screenshot']);
        $demo->set_preview_link($data['preview_link']);

        $demos[ $demo->get_id() ] = $demo;

        unset($demo);
    }

    return $demos;
}
add_filter('fw:ext:backups-demo:demos', '_filter_theme_fw_ext_backups_demos');
?>

How to fix this problem?

[Suggestion] Minimum server requirement to install demo content

Hi
We have seen lots of server problem to install theme for time out and others issue.

It will be great if backup extension set some limit details. like if this pass minimum requirement to install content no error will display.
Like max_execution_time, memory_limit, upload_max_filesize

Also upload_max_filesize depand on theme file size. so if we have option. hey our theme file size "20MB" And if server below file upload size a notice will appear

We can get all the value with ini_get();

Within avada theme have a notice system https://theme-fusion.com/knowledgebase/what-to-do-if-xml-import-fails/

Database export: Execution stopped when timeout 0

Hi there,

I'm trying to use the Demo Content import feature, which seems awesome since the last update.
However, whenever I push the "Create Content Backup Now" button... It try to export the Database and it fails everytime. I've tried on 3 different networks.

15 mins ago Database export: Execution stopped (next step did not started)

backup_ woffice_dev _wordpress

Any idea ?

Can we do flush rewrite rules on demo content installation complete?

Hello!
After demo content installation we have to manually go to Settings -> Permalinks and click on 'Save' button because our custom post types permalinks are broken and causes 404 error.
Does Backup Extension has any actions on demo content installation complete? We could not find it in documentation or in extension code.
Thank you!

A few improvements

  • Add Abort button to be able to stop the process (backup/restore/content-install)
  • Add progress bar %

Usability improvements

  • Add this verification and warning on Demo Content Install page (it will cause endless loading on Demo Install page because the background tasks can't start)
  • If the tasks are still pending (execution never started) display Cancel button to be able to get rid of endless loading

theme_mods name replace

Hi,

I'd like to update theme_mods_ option according to current theme location. Depending on where theme was installed by user, it can be:
/themes/my_theme/
/themes/theme/my_theme/
/themes/zip/my_theme/
etc.

I can see this is supposed to be done automatically in restore task, however at \FW_Ext_Backups_Task_Type_DB_Restore::do_import there is this line:

// prevent template overwrite stylesheet (prefer stylesheet)
$state['params']['template'] !== $state['params']['stylesheet']

which prevents this from happening. Actually, I think it should be == instead of !==. However, if this is for a reason, I would like to hook my own replacements. Currently I'm not able to use the hook below because of $filter_data being empty:

if ( ! empty($filter_data) ) { $replace_option_names = array_merge( /** @since 2.0.12 */ apply_filters('fw_ext_backups_db_restore_option_names_replace', array(), $filter_data), $replace_option_names ); }

Thanks!

Database Restore, case sensitive table name

If the $table_prefix variable in wp-config.php uses both upper and lower cases you may en with such error during database restore step:

Failed to create the _fwbk_myprefix_posts table. Table myprefix_posts already exists.

It is because that the str_replace functions is case sensitive, but the tmp table is created with lowercase prefix, but in $sql the prefix may be with uppercase.

Maximum execution time of 29 seconds exceeded in ...

Hello,

Lot of my clients have this issue: Maximum execution time of 29 seconds exceeded...
Most of them helps solution by increasing max execution time and max input time.
Can you include something like this in this extension execution time?

@ini_set( 'max_execution_time', '200000' );
@ini_set( 'max_input_time ', '200000' );

Thank you

Not working with built in PHP server

I'm mainly using for quick testing the built-in PHP server: php -S localhost:3000 and everything worked fine, besides your implementation of this extension.

Maybe you know an easy fix, besides using Apache or Nginx?

Demo Content Images

Hello,

What would be the best way to clean up demo content from images?
For example, replace all media images to one demo.jpg image.

Theme Settings goes in to infinite loading

Hi. A client faces a problem. Website works fine, but when it goes to Theme Settings the page goes into infinite load (wp-admin/themes.php?page=fw-settings)

Other tabs working fine. Latest updates installed.

Do you have any idea what it can be?
Thanks.

Backup + Demo Content Issues

I am trying to move across the wordpress site from my local to the clients server.

With reference to http://manual.unyson.io/en/latest/extension/backups/#demos-bundled-in-theme I've tried the following:

Demos bundled in theme
I am getting the error:

Failed to create tmp table _fwbk_wp_pmxi_files

Demos on remote server

Invalid byte position (current: 0, received: 0)

The remote server is returning a 200 status request.

What is the best solution to move the content to the client's server? I am focused on Demos bundled in theme at the moment

Demo content install issue

hello guys,
i'm facing this error while i'm trying to install demo content
Invalid byte position (current: 0, received: 0)

this is the code i'm using in my functions.php

add_filter( 'fw:ext:backups-demo:demos', 'window_demo_content' );
function window_demo_content( $demos ) {
    $demos_array = array(
        'news-demo'  => array(
            'title'        => esc_html__( 'News Demo', 'window' ),
            'screenshot'   => 'http://bbioon.com/window/demo/content/news.png',
            'preview_link' => 'http://bbioon.com/window/news'
        ),
        'sport-demo' => array(
            'title'        => esc_html__( 'Sport Demo', 'window' ),
            'screenshot'   => 'http://bbioon.com/window/demo/content/sport.png',
            'preview_link' => 'http://bbioon.com/window/sport'
        ),
        'blog-demo'  => array(
            'title'        => esc_html__( 'Blog Demo', 'window' ),
            'screenshot'   => 'http://bbioon.com/window/demo/content/blog.png',
            'preview_link' => 'http://bbioon.com/window/blog'
        ),
    );

    $download_url = 'http://www.bbioon.com/window/demo_content/';

    foreach ($demos_array as $id => $data) {
        $demo = new FW_Ext_Backups_Demo($id, 'piecemeal', array(
            'url' => $download_url,
            'file_id' => $id,
        ));
        $demo->set_title($data['title']);
        $demo->set_screenshot($data['screenshot']);
        $demo->set_preview_link($data['preview_link']);

        $demos[ $demo->get_id() ] = $demo;

        unset($demo);
    }

    return $demos;
}

and this is the code i'm using in config.php

$cfg = array(
    'files' => array(
        'news-demo'  => dirname(__FILE__) . '/content/news.zip',
        'sport-demo' => dirname(__FILE__) . '/content/sport.zip',
        'blog-demo'  => dirname(__FILE__) . '/content/blog.zip',
    ),
);

i can provide you with any login data that you need

Multi site usage issues

Hello,

There are multiple issues when using multi site, not sure if its meant to be in this way:

  1. Install demo content on a main multi site deletes images files and unyson backup files for other multi site (happened once). Looks like issue could be, because the main multi site content are placed just inside uploads not uploads/sites.
  2. After install is completed there is no redirection to home page (happened once)
  3. Main multi site backup includes other site files

Unable to locate demo install directory inside theme

I have placed demo content inside admin folder in theme . I have this code done so far

function _filter_theme_fw_ext_backups_demo_dirs($dirs) {
       $dirs['/admin/demo-content'] = get_template_directory_uri() . '/admin/demo-content';
        return $dirs;
   }
  add_filter('fw_ext_backups_demo_dirs', '_filter_theme_fw_ext_backups_demo_dirs');

But I can not demo import submenu. I guess I wrote wrong directory

Export selected db tables only

Hi, I have to say I think Unyson Backups is great work!

Is there a possibility to export only selected tables?

I looked for a hook in FW_Ext_Backups_Task_Type_DB_Export::get_tables() but didn't find one. I also couldn't find a way to unregister the DB_Export task in _FW_Ext_Backups_Task_Type_Register so I could replace it with my own.

Please show me the way!

Export custom folder

Hi,

It seems one of plugins I use keeps all image content in a custom folder outside of wp_upload_dir, say
wp-content/uploads/plugin_slug_blog_id/
while wp_upload_dir is
wp-content/uploads/sites/3/

While I don't think this is a good practice, I have no way of changing it. So my question is: How can I export files from ( and import to ) this custom folder using Backups Extension?

Perhaps I could extend \_FW_Ext_Backups_Module_Tasks::add_backup_tasks() and change $dirs there. Would that work? Is there a more elegant way?

Thanks!
P.

Issue on backup -> Database restore: Failed to insert row from...

Hi there,

We've a customer having some issues during the backup that we can't figure out so far.

Here is what we see from the log :

Database restore: Failed to insert row from line 110 into table _fwbk_wp_xxxxx_comments | 
{"comment_ID":"52","comment_post_ID":"1683","comment_author":"Melissa 
Doe","comment_author_email":"[email protected]","comment_author_url":"","comment_author_IP":
"58.107.173.118","comment_date":"2016-09-13 23:14:18","comment_date_gmt":"2016-09-13 
13:14:18","comment_content":"Ummmmm in the wiki PJ? 
\ud83d\ude1c","comment_karma":"0","comment_approved":"1","comment_agent":"Mozilla\/5.0 
(iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit\/600.1.4 (KHTML, like Gecko) 
GSA\/18.1.132077863 Mobile\/13G36 Safari\/600.1.4","comment_type":"","comment_parent":"0","user_id":"34"}

Anything we might have missed ?

Cheers !

Disable image restore

Hello,

Is it possible to disable image restore function for specific demos or somehow skip already resized images (if for some demos we use images with resized versions)? Image restore can be annoying slow, therefore we want to create a few demos with improved installation speed.

[Urgent] Duplicate entry Backup content

Hi @moldcraft ! I'm not sure if it's the problem with new Backup version.
But today many clients report this problem when install demo content

Failed to insert row from line 2323 into table _fwbk_wp_options. Duplicate entry 'theme_mods_topseo' for key 'option_name'

Do you have any ideas?

Thanks!

Full Backup fails, Content backup ok

I have the latest version, trying to create a full backup on my azure app service, getting errors like:

1 hour ago Files Export: Maximum execution time of 300 seconds exceeded in D:\home\site\wwwroot\wp-content\plugins\unyson\framework\extensions\backups\includes\module\tasks\type\class-fw-ext-backups-task-type-files-export.php on line 142
2 hours ago Archive Zip: Execution stopped (next step did not started)
2 hours ago Archive Zip: Execution stopped (next step did not started)

cannot close zip file

Hi,

I am trying to install demo content for one of my sites but keep getting a error
"cannot close zip file"

here is the log from the debug.log file.

PHP Warning: ZipArchive::close(): Internal error in /usr/www/users/lifehftqbn/wp-content/plugins/unyson/framework/extensions/backups/includes/module/tasks/type/class-fw-ext-backups-task-type-zip.php on line 107

Please help... I have no idea why this is happening... I have installed this content on other site without issues.

Thanks
B

Use one image folder in Multiple demo content install

Hi @moldcraft

Is it possible to use one image folder in Multiple demo content Install folder ?

Most of the time we use same images for Multiple demo content install. Just database are change according to design style.
From remote demo content install if comes with array like this. it will save tons of space

$cfg = array(
    'files' => array(
         'defaultslider-inlineform' => array(
                     'db'=>'defaultslider-inlineform/database.json.txt.zip',
                     'file'=> 'f.zip'
                 ),
         'defaultslider-popupform' => array(
                     'db'=>'defaultslider-popupform/database.json.txt.zip',
                     'file'=> 'f.zip'
                 ),
         'woo-revoslider' => array(
                     'db'=>'woo-revoslider/database.json.txt.zip',
                     'file'=> 'f.zip'
                 ),
    ),
);

Also if possible within theme demo bundle folder This also saved theme demo content bundle file size.

Thanks

Issues unzipping demo-content when wordpress root is on NFS

I was testing an issue with a theme that uses your framework, where installing demo content was constantly failing.

After some investigation it turned out that it's most probably due to the reason we're using NFS as Wordpress root. It appears to be that due to async mounted NFS drive the OS reports the file has been sync'd, but in reality it hasn't been written on NFS yet.

My presumtion that this function could rather use sys_get_temp_dir in order to make it fail-proof.

Run background steps as admin user to prevent limitations

Background steps are executed as anonymous (not logged in) user https://github.com/ThemeFuse/Unyson-Backups-Extension/blob/v2.0.9/includes/module/tasks/class--fw-ext-backups-module-tasks.php#L580-L599

Maybe some hosting security systems prevent execution of files or database related actions when the user is not logged in, as a measure to prevent site hacking.

So when doing that background request, select admin user and log in as him. (do not use current cookies as a login method because backup can be triggered from frontend (random site visitor) by WordPress cron)

Unspecified ajax error ( Backups 2.0.23 )

Hi,

I'm having a great fun using Backups extension! But I'm also having this error occurring every time somewhere near the end of demo content install process:

  1. this is the last success status response http://prnt.sc/epfpsx
  2. then, empty responses come http://prnt.sc/epfmtu
  3. the modal with error appears :
    <td valign="middle" class="fw-sole-modal-content fw-text-center"><span class="fw-text-danger dashicons dashicons-warning"></span></td>
  4. Session expired modal appears ( why? ) http://prnt.sc/epfntz

While everything seems to be imported properly ( maybe apart from theme_mods_ but that's for another subject ), this error is an ux waster.

Normally, I would expect a PHP error, but my logs are all clear. JS console shows no messages. Do you know what may cause this? How can I debug it?

Thanks!

Demo Content Install malformed JSON

When creating a content backup. database.json.txt have empty lines.
This cause the Demo Content Install to show Failed to decode line {line_number} from db file. Syntax error, malformed JSON

To replicate.

Errors while the Demo Install

Hi there,

So I've been playing quite a lot with this new extension and it looks awesome ! You've done an awesome job ! :)

I just have a few issues that I can't understand :

  1. Sometime, I see this error :
    Invalid source dir

So, after some researches in the extension's files, it seems that this arg is empty/missing : $args['source_dir']

Any idea how I can fix that ? Or maybe I've missed something.

  1. One of our 3 demos, I got this issue :
    Timed out

With this in the log :
[09-Dec-2015 08:52:40 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /.../woffice/framework-customizations/extensions/backups/includes/module/tasks/type/class-fw-ext-backups-task-type-db-restore.php on line 549

It's only for one demo, and I have no idea why ...

Please let me know if you need any extra detail. Here is the code in our hooks.php file :

function woffice_filter_theme_fw_ext_backups_demos($demos) {
    $demos_array = array(
        'business-demo' => array(
            'title' => __('Business Demo', 'woffice'),
            'screenshot' => 'https://woffice.io/demos/demo-business.png',
            'preview_link' => 'http://alka-web.com/woffice-business/',
        ),
        'community-demo' => array(
            'title' => __('Community Demo', 'woffice'),
            'screenshot' => 'https://woffice.io/demos/demo-community.png',
            'preview_link' => 'https://woffice.io/demo-community/',
        ),
        'school-demo' => array(
            'title' => __('School Demo', 'woffice'),
            'screenshot' => 'https://woffice.io/demos/demo-school.png',
            'preview_link' => 'http://alka-web.com/woffice-school/',
        ),
    );

    $download_url = 'https://woffice.io/demos/index.php';

    foreach ($demos_array as $id => $data) {
        $demo = new FW_Ext_Backups_Demo($id, 'piecemeal', array(
            'url' => $download_url,
            'file_id' => $id,
        ));
        $demo->set_title($data['title']);
        $demo->set_screenshot($data['screenshot']);
        $demo->set_preview_link($data['preview_link']);

        $demos[ $demo->get_id() ] = $demo;

        unset($demo);
    }

    return $demos;
}
add_filter('fw:ext:backups-demo:demos', 'woffice_filter_theme_fw_ext_backups_demos');
// We don't save the Theme version used / exported 
function woffice_filter_fw_ext_backups_db_restore_keep_options($options, $is_full) {
    if (!$is_full) {
        $options[ 'template' ] = true;
        $options[ 'stylesheet' ] = true;
    }

    return $options;
}
add_filter('fw_ext_backups_db_restore_keep_options', 'woffice_filter_fw_ext_backups_db_restore_keep_options', 10, 2);

Thank you,

2F

Local Download timeout

Hello,

There is an issue with timeout when doing Local Download for client site.

Loading Installing
We are currently installing your content.
Local Download

What could be the issue?

Important: HTTP Loopback Connections are not enabled on this server. If you need to contact your web host, tell them that when PHP tries to connect back to the site at the URL .../wp-admin/admin-ajax.php and it gets the error Recv failure: Connection reset by peer. There may be a problem with the server configuration (eg local DNS problems, mod_security, etc) preventing connections from working properly.

max_execution_time 120
max_input_time 120
memory_limit 128M
post_max_size 128M
upload_max_filesize 128M

Demo content without uploads folder

Can we just skip importing images at all?
I want to keep all images on the demo server and import just database. But when I do that without upload folder, it's show me invalid source dir.

Demo content install menu hide on tools

Backup Extension Active.

But no demo content menu there

But I see a notice in top Zip extensions need to be installed

If you have more than one notice user most of the time not followed this notice.

It will be better user will go to Tools-> Demo content installs page. And hide all the demo content. And show a note with more details.

Ops Unyson Backup requires PHP zip extension. If you are not familiar with PHP Zip extension, please contact your hosting provider. Or something else

Hide the installation menu not a good solution. Last two days we received three tickets about this issue.

Or please give us hook to modify our self.

Thanks

Ajax steps mode

Many clients are complaining that demo install is not working because their hosting doesn't support loopback/background request.

The script should detect that and switch to ajax mode: the steps will be executed by ajax request.

Theme switched to not existing one after Demo Install

If Demo Content was created with child theme active with path wp-content/themes/hello-child but current active theme on Demo Install is wp-content/themes/hello/hello-child then on frontend redirect will be an error because a not existing theme is active.

The solution: Keep current active theme. Also rename some wp_options which contain stylesheet in their name.

Unyson Backup Extension Issue.

Hello, I found an issue in backup extension. When i update extension and create a demo install. it creates backup, but when i click on download link then an error page displayed. This issue is in new update version of backup extension.

Please have a look on JPEG.
bk1

When I click on Download Link
bk2

Please help me. i am waiting your kind response.

Regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.