Clone extension doesn`t work

Hi,

We have an problem trying to clone sites.
The file backup its created and download, but the process stops (not showing any error messages) when its time to extract and update the database.

We have talk with our hosting provider and they has detected this error in the server log:

[Fri Jan 13 16:12:42.550956 2023] [proxy_fcgi:error] [pid 77133:tid 140520902870784] [client 85.251.16.239:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function MainWP\Child\wp_json_decode() in /usr/home/---------/www/pruebas/wp-content/plugins/mainwp-child/class/class-mainwp-clone-install.php:223\nStack trace:\n#0 /usr/home/---------/www/pruebas/wp-content/plugins/mainwp-child/class/class-mainwp-clone.php(673): MainWP\Child\MainWP_Clone_Install->read_configuration_file()\n#1 /usr/home/---------/www/pruebas/wp-includes/class-wp-hook.php(308): MainWP\Child\MainWP_Clone->clone_backup_extract(’‘)\n#2 /usr/home/---------/www/pruebas/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(’‘, Array)\n#3 /usr/home/---------/www/pruebas/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#4 /usr/home/---------/www/pruebas/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_mainwp-…’)\n#5 {main}\n thrown in /usr/home/---------/www/pruebas/wp-content/plugins/mainwp-child/class/class-mainwp-clone-install.php on line 223’, referer: https://---------.es/pruebas/wp-admin/options-general.php?page=mainwp_child_tab

We are running the latest versions of the MainWP Dashboard (4.3.1.), the MainWP Child plugin (4.3.1), and the Clone Extension (4.0.3).

Can you help us?

Thanks!

Hi @Flexo

Welcome to the MainWP Community!

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Info → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:

image

Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.

Hello.

Here it is:

Configuración del servidor Valor necesario Valor Estado

MAINWP CHILD
MainWP Child Version 4.3.1 4.3.1 Pass
WordPress
WordPress Version >=3.4 6.1.1 Pass
WordPress Memory Limit >=64M 512M Pass
MultiSite Disabled =true true Pass
Método del sistema de archivos = direct direct Pass
AJUSTES DE PHP
PHP Version >=5.6 7.4.33 Pass
Modo seguro de PHP desactivado DESACTIVADO
PHP Max Execution Time >=30 seconds 300 Pass
PHP Max Input Time >=30 seconds 60 Pass
PHP Memory Limit >=128M (256M+ best for big backups) 512M Pass
PCRE Backtracking Limit >=10000 1000000 Pass
PHP Upload Max Filesize >=2M (2MB+ best for upload of big plugins) 256000M Pass
PHP Post Max Size >=2M (2MB+ best for upload of big plugins) 256000M Pass
SSL Extension Enabled =true true Pass
SSL Warnings = empty error:0909006C:PEM routines:get_name:no start lineWarning
cURL Extension Enabled =true true Pass
cURL Timeout >=300 seconds 60 Warning
cURL Version >=7.18.1 7.74.0 Pass
cURL SSL Version >=OpenSSL/1.1.0 OpenSSL/1.1.1nPass
AJUSTES DE MySQL
MySQL Version >=5.0 10.5.18-MariaDB-0+deb11u1-logPass
INFORMACIÓN DEL ARCHIVO DE COPIA DE SEGURIDAD
ZipArchive enabled in PHP =true true Pass
Tar GZip supported =true true Pass
Tar BZip2 supported =true true Pass
INFORMACIÓN DEL SERVIDOR
Directorio raíz de WordPress /usr/home/-------/www/pruebas/
Nombre del servidor ---------.es
Software del servidor Apache
Sistema operativo Linux
Arquitectura 64 bit
IP del servidor 127.0.0.1
Protocolo del servidor HTTP/1.1
Servidor HTTP --------.es
HTTPS ACTIVADO - on
Conexión automática al servidor Cuerpo de la respuesta HTTP no esperado:
Agente de usuario Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Puerto del servidor 80
Interfaz de la pasarela CGI/1.1
Uso de memoria 13.27 MB
URL completa https://--------.es/pruebas/wp-admin/plugins.php
Tiempo de petición 1673627197
Contenido de Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
Contenido de Accept-Charset N/D
Nombre de la ruta del script ejecutado actualmente /home/-------/www/pruebas/wp-admin/options-general.php
URI de la página actual /pruebas/wp-admin/options-general.php?page=mainwp_child_tab
Dirección remota 85.251.16.239
Servidor remoto N/A
Puerto remoto 56960
INFORMACIÓN PHP
PHP Allow URL fopen ACTIVADO
Compatibilidad con PHP Exif SÍ ( V7.4.)
Compatibilidad con PHP IPTC SÍ
Compatibilidad con PHP XML SÍ
Funciones PHP desactivadas apache_child_terminate, apache_setenv, define_syslog_variables, dl, exec, link, openlog, passthru, pcntl_alarm, pcntl_exec, pcntl_fork, pcntl_get_last_error, pcntl_getpriority, pcntl_setpriority, pcntl_signal, pcntl_signal_dispatch, pcntl_sigprocmask, pcntl_sigtimedwait, pcntl_sigwaitinfo, pcntl_strerror, pcntl_wait, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifcontinued, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, popen, posix_kill, shell_exec, show_source, syslog, system, uname,
Extensiones PHP cargadas Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mongodb, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_dblib, pdo_mysql, pdo_pgsql, pdo_sqlite, pdo_sqlsrv, pgsql, posix, session, soap, sockets, sodium, sqlite3, standard, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
INFORMACIÓN DE MySQL
Modo de MySQL NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Codificación del cliente MySQL utf8
PLUGINS para WordPress
Akismet Anti-Spam 5.0.2 Inactivo
BackWPup 4.0.0 Activo
Hello Dolly 1.7.2 Inactivo
MainWP Child 4.3.1 Activo

Próximo vencimiento Programación Gancho

enero 13, 2023 5:23 pm Cada hora wp_privacy_delete_old_export_files
enero 13, 2023 9:23 pm Dos veces al día wp_version_check
enero 13, 2023 9:23 pm Dos veces al día wp_update_plugins
enero 13, 2023 9:23 pm Dos veces al día wp_update_themes
enero 14, 2023 2:16 am Dos veces al día wp_https_detection
enero 14, 2023 2:16 am Dos veces al día wp_update_user_counts
enero 14, 2023 3:43 am Dos veces al día backwpup_check_cleanup
enero 14, 2023 9:23 am Cada día recovery_mode_clean_expired_keys
enero 14, 2023 2:16 pm Cada día wp_scheduled_delete
enero 14, 2023 2:16 pm Cada día delete_expired_transients
enero 14, 2023 2:16 pm Cada día wp_scheduled_auto_draft_delete
enero 20, 2023 9:23 am Una vez a la semana wp_site_health_scheduled_check

Hora Error

MainWP is unable to find your error logs, please contact your host for server error logs.

We have identified and fixed the issue which was causing the Clone process to fail.
The fix will be included in the next release of the MainWP Child plugin.

You can find the pre-release version at this URL: Dropbox - mainwp-child.zip - Simplify your life

Make sure to install it on both the source and destination sites of the Clone process.