• Hello,
    I’m using nscloner with my plugin to copy sites. I use the first way https://neversettle.it/documentation/ns-cloner/call-ns-cloner-copy-sites-plugins/
    But only the tables from wordpress core are cloned. I need to go to the admin (admin.php?page=ns-cloner) for the process to end and get yoast and pmxi tables.
    is it normal?
    btw i skipped the following code because it was too long to process.

    do {
       // Attempt to run finish, if content is complete.
       $cloner->maybe_finish();
       $progress = $cloner->get_progress();
       // Pause, so we're not constantly hammering the server with progress checks.
       sleep( 3 );
    } while ( 'reported' !== $progress['status'] );
    • This topic was modified 3 years, 4 months ago by tserof.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tserof

    (@tserof)

    More info: finally i checked the progress status and it stayed “in_progress”

    [04-Nov-2021 14:43:05 UTC] Array
    (
        [total] => 44
        [completed] => 0
        [percentage] => 0
        [status] => in_progress
        [processes] => Array
            (
                [tables] => Array
                    (
                        [label] => Tables
                        [progress] => Array
                            (
                                [completed] => 0
                                [total] => 17
                            )
    
                        [dispatched] => 1636036940
                        [nonce] => 856a2a325d
                    )
    
                [files] => Array
                    (
                        [label] => Files
                        [progress] => Array
                            (
                                [completed] => 0
                                [total] => 27
                            )
    
                        [dispatched] => 1636036940
                        [nonce] => d551d654a4
                    )
    
            )
    
    )

    The
    [completed] => 0
    [percentage] => 0
    was 0 endlessly until i went to the backoffice admin.php?page=ns-cloner and after that the process really started

    Thread Starter tserof

    (@tserof)

    I just saw this error : “it appears background processing may be getting blocked on the server (or could just be running slowly).”
    I have a “cURL error 7: Failed to connect to localhost”. I use docker, and i think it s related. I’ll try to fix this issue and i’ll get you updated if it’s working

    Thread Starter tserof

    (@tserof)

    I tried today on a non local environment. I don’t have the curl error anymore but my problem persist.
    I think i know why. NSCloner use wp-background-processing, and it’s not running with WP REST api calls :
    https://github.com/deliciousbrains/wp-background-processing/issues/81

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘copy from another plugin not working with yoast and pmxi tables’ is closed to new replies.