• Resolved nick6352683

    (@nick6352683)


    Localhost Xampp php 7.4.x, WP 5.8.2, Windows 7 Pro, Chrome…

    The tables are being created and the rows (records) are getting transferred too, but the url of the new site is not changing, thus it is not working.

    I manually changed the siteurl and home values to point to the correct path in the Options table, and I also manually changed the database name in the wp-config.php file, at no avail.

    The error code I’m getting is:

    Fatal error: Uncaught Error: Call to a member function bind_param() on bool in C:\xampp74\htdocs\software2\wp-content\plugins\clone-test-db\clone-test-db.php:194 Stack trace: #0 C:\xampp74\htdocs\software2\wp-includes\class-wp-hook.php(303): clone_test_db->clone_test_db_front_page('') #1 C:\xampp74\htdocs\software2\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #2 C:\xampp74\htdocs\software2\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #3 C:\xampp74\htdocs\software2\wp-admin\admin.php(259): do_action('tools_page_clon...') #4 C:\xampp74\htdocs\software2\wp-admin\tools.php(40): require_once('C:\\xampp74\\htdo...') #5 {main} thrown in C:\xampp74\htdocs\software2\wp-content\plugins\clone-test-db\clone-test-db.php on line 194
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Thanks,
    Nick.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Yuya Hoshino

    (@yuyahoshino)

    Hi, Nick.
    Thank you for your report.
    I have just released a new version 1.0.1.
    I think the problem has been fixed.
    Please try it again.

    Thread Starter nick6352683

    (@nick6352683)

    Thanks for trying Yuya, unfortunately the update did not fix the issue… I created a short video to demonstrate:

    I have an empty database called software3, I will be cloning a site residing in the software2 folder to a site in folder software3. Of course I have the latest version of your promising plugin… Here is the video:

    Thanks,
    Nick.

    Plugin Author Yuya Hoshino

    (@yuyahoshino)

    Thank you very much!
    That’s very helpful.
    Changed database connection to PDO.
    I’m not sure if this will solve your problem, but please try the new version 1.0.2.

    Thread Starter nick6352683

    (@nick6352683)

    Hi Yaya, that bug on line 194 is (perhaps) solved, but now I’m getting an error on line 177.

    Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'comment_date' in C:\xampp74\htdocs\software2\wp-content\plugins\clone-test-db\clone-test-db.php:177 Stack trace: #0 C:\xampp74\htdocs\software2\wp-content\plugins\clone-test-db\clone-test-db.php(177): PDO->query('CREATE TABLE IF...') #1 C:\xampp74\htdocs\software2\wp-includes\class-wp-hook.php(303): clone_test_db->clone_test_db_front_page('') #2 C:\xampp74\htdocs\software2\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #3 C:\xampp74\htdocs\software2\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #4 C:\xampp74\htdocs\software2\wp-admin\admin.php(259): do_action('tools_page_clon...') #5 C:\xampp74\htdocs\software2\wp-admin\tools.php(40): require_once('C:\\xampp74\\htdo...') #6 {main} thrown in C:\xampp74\htdocs\software2\wp-content\plugins\clone-test-db\clone-test-db.php on line 177
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Sorry for making your life difficult,
    Nick.

    Thread Starter nick6352683

    (@nick6352683)

    I just checked to target Database Table, and unlike the first bug, where I think all the tables were duplicated (or at least most, as I did not check thoroughly), this time only 2 tables were copied – check_email_log, which I believe is a table from a plugin, and commentmeta – that’s it…

    Nick.

    Plugin Author Yuya Hoshino

    (@yuyahoshino)

    Thank you very much for your help.
    I was able to reproduce the same error in my environment.
    I think the problem has been solved this time for sure.
    Please try the new version 1.0.3.

    Thread Starter nick6352683

    (@nick6352683)

    Thanks for the latest update Yuya, it finally worked. Please read my rating comments for more details.

    Thanks, good job,
    Nick.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘I’m getting an error…’ is closed to new replies.