• Resolved samben28

    (@samben28)


    Hi,

    I’m using wordpress multisite and when a duplicate a site i get a critical error message on the duplicate site (with independent anaylitics network activated). I network desactivate independent analytics, duplicate a site on my network and no critical error.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Ben Sibley

    (@bensibley)

    Hi there,

    Thanks for getting in touch about this.

    It sounds like there is most likely a conflict with another plugin on the site. Since duplicating sites isn’t a native feature in WP, could you let me know what plugin you’re using to add this feature to your site? I’ll try duplicating a site as well and see if I can recreate this error.

    Thread Starter samben28

    (@samben28)

    Thanks for the feedback.

    I’m using MultiSite Clone Duplicator

    https://ww.wp.xz.cn/plugins/multisite-clone-duplicator/

    Plugin Author Ben Sibley

    (@bensibley)

    Thank you!

    I installed the plugin and was actually able to duplicate a sub-site without an error.

    For this reason, I’m going to recommend that you install the WP Debugging plugin on your site. This is going to add a new “Debug Quick Look” item to your admin toolbar. Please duplicate a site one more time for the purpose of triggering an error, and then look at the Debug Quick Look > View File page. You should see a “Fatal” PHP error listed there. If you can copy and paste that here, that will help me find out what’s going on.

    Thread Starter samben28

    (@samben28)

    Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘eatorder_wp570.wpq4_16_independent_analytics_resources’ doesn’t exist in /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php:444 Stack trace: #0 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(444): PDO->prepare() #1 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(587): IAWP_SCOPED\Illuminate\Database\Connection->IAWP_SCOPED\Illuminate\Database\{closure}() #2 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(561): IAWP_SCOPED\Illuminate\Database\Connection->runQueryCallback() #3 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(449): IAWP_SCOPED\Illuminate\Database\Connection->run() #4 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(396): IAWP_SCOPED\Illuminate\Database\Connection->affectingStatement() #5 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Query/Builder.php(2510): IAWP_SCOPED\Illuminate\Database\Connection->update() #6 /home/eatorder/public_html/wp-content/plugins/independent-analytics/IAWP/Models/Page.php(92): IAWP_SCOPED\Illuminate\Database\Query\Builder->update() #7 /home/eatorder/public_html/wp-content/plugins/independent-analytics/IAWP/Track_Resource_Changes.php(30): IAWP_SCOPED\IAWP\Models\Page->update_cache() #8 /home/eatorder/public_html/wp-includes/class-wp-hook.php(326): IAWP_SCOPED\IAWP\Track_Resource_Changes->handle_updated_post() #9 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #10 /home/eatorder/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /home/eatorder/public_html/wp-includes/post.php(5481): do_action() #12 /home/eatorder/public_html/wp-includes/post.php(4774): wp_after_insert_post() #13 /home/eatorder/public_html/wp-content/plugins/elementor/core/kits/manager.php(179): wp_insert_post() #14 /home/eatorder/public_html/wp-content/plugins/elementor/includes/maintenance.php(113): Elementor\Core\Kits\Manager::create_default_kit() #15 /home/eatorder/public_html/wp-content/plugins/elementor/includes/maintenance.php(101): Elementor\Maintenance::create_default_kit() #16 /home/eatorder/public_html/wp-includes/class-wp-hook.php(326): Elementor\Maintenance::Elementor\{closure}() #17 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #18 /home/eatorder/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() #19 /home/eatorder/public_html/wp-includes/plugin.php(746): do_action_ref_array() #20 /home/eatorder/public_html/wp-includes/ms-site.php(141): do_action_deprecated() #21 /home/eatorder/public_html/wp-includes/ms-functions.php(1401): wp_insert_site() #22 /home/eatorder/public_html/wp-content/plugins/multisite-clone-duplicator/lib/duplicate.php(61): wpmu_create_blog() #23 /home/eatorder/public_html/wp-content/plugins/multisite-clone-duplicator/include/admin.php(129): MUCD_Duplicate::duplicate_site() #24 /home/eatorder/public_html/wp-includes/class-wp-hook.php(324): MUCD_Admin::network_page_admin_duplicate_site() #25 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #26 /home/eatorder/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #27 /home/eatorder/public_html/wp-admin/admin.php(259): do_action() #28 /home/eatorder/public_html/wp-admin/network/admin.php(13): require_once(‘/home/eatorder/…’) #29 /home/eatorder/public_html/wp-admin/network/sites.php(11): require_once(‘/home/eatorder/…’) #30 {main} Next IAWP_SCOPED\Illuminate\Database\QueryException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘eatorder_wp570.wpq4_16_independent_analytics_resources’ doesn’t exist (SQL: update wpq4_16_independent_analytics_resources set cached_title = Default Kit, cached_url = https://testestorder.com/testest/?elementor_library=default-kit, cached_type = elementor_library, cached_type_label = Template, cached_author_id = 1, cached_author = admin, cached_date = 2024-01-31, cached_category = ? where singular_id = 3) in /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php:589 Stack trace: #0 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(561): IAWP_SCOPED\Illuminate\Database\Connection->runQueryCallback() #1 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(449): IAWP_SCOPED\Illuminate\Database\Connection->run() #2 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php(396): IAWP_SCOPED\Illuminate\Database\Connection->affectingStatement() #3 /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Query/Builder.php(2510): IAWP_SCOPED\Illuminate\Database\Connection->update() #4 /home/eatorder/public_html/wp-content/plugins/independent-analytics/IAWP/Models/Page.php(92): IAWP_SCOPED\Illuminate\Database\Query\Builder->update() #5 /home/eatorder/public_html/wp-content/plugins/independent-analytics/IAWP/Track_Resource_Changes.php(30): IAWP_SCOPED\IAWP\Models\Page->update_cache() #6 /home/eatorder/public_html/wp-includes/class-wp-hook.php(326): IAWP_SCOPED\IAWP\Track_Resource_Changes->handle_updated_post() #7 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /home/eatorder/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /home/eatorder/public_html/wp-includes/post.php(5481): do_action() #10 /home/eatorder/public_html/wp-includes/post.php(4774): wp_after_insert_post() #11 /home/eatorder/public_html/wp-content/plugins/elementor/core/kits/manager.php(179): wp_insert_post() #12 /home/eatorder/public_html/wp-content/plugins/elementor/includes/maintenance.php(113): Elementor\Core\Kits\Manager::create_default_kit() #13 /home/eatorder/public_html/wp-content/plugins/elementor/includes/maintenance.php(101): Elementor\Maintenance::create_default_kit() #14 /home/eatorder/public_html/wp-includes/class-wp-hook.php(326): Elementor\Maintenance::Elementor\{closure}() #15 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #16 /home/eatorder/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() #17 /home/eatorder/public_html/wp-includes/plugin.php(746): do_action_ref_array() #18 /home/eatorder/public_html/wp-includes/ms-site.php(141): do_action_deprecated() #19 /home/eatorder/public_html/wp-includes/ms-functions.php(1401): wp_insert_site() #20 /home/eatorder/public_html/wp-content/plugins/multisite-clone-duplicator/lib/duplicate.php(61): wpmu_create_blog() #21 /home/eatorder/public_html/wp-content/plugins/multisite-clone-duplicator/include/admin.php(129): MUCD_Duplicate::duplicate_site() #22 /home/eatorder/public_html/wp-includes/class-wp-hook.php(324): MUCD_Admin::network_page_admin_duplicate_site() #23 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #24 /home/eatorder/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #25 /home/eatorder/public_html/wp-admin/admin.php(259): do_action() #26 /home/eatorder/public_html/wp-admin/network/admin.php(13): require_once(‘/home/eatorder/…’) #27 /home/eatorder/public_html/wp-admin/network/sites.php(11): require_once(‘/home/eatorder/…’) #28 {main} thrown in /home/eatorder/public_html/wp-content/plugins/independent-analytics/vendor/illuminate/database/Connection.php on line 589

    • This reply was modified 2 years, 4 months ago by samben28.
    Plugin Author Ben Sibley

    (@bensibley)

    Thank you!

    I see what’s happening now. That plugin actually has a note on their readme page about this:

    WARNING : If you clone the primary site, you must use mucd_default_primary_tables_to_copy filter to declare plugins and custom database tables, or your cloned site won’t be complete

    Basically, if you are cloning the primary site, you have to take extra steps to include database tables from plugins. Without taking that step, our plugin is copied without any of its database tables, and it then throws an error because the table is missing. This would be an issue for many other plugins too.

    Their system requires writing your own PHP code, so I would recommend using the NS Cloner plugin instead. It copies all tables, including those from plugins without any configuration required.

    Thread Starter samben28

    (@samben28)

    Ok I see.

    Thank you very for your support.

    Plugin Author Ben Sibley

    (@bensibley)

    You’re welcome!

    If you need anything else, let me know, and I’ll be happy to help.

    Thread Starter samben28

    (@samben28)

    Hi, I get a fatal error also with NS Cloner when Independent analytics is active and when i disable it and duplicate the site, I don’t get a fatal error)

    Fatal error: Uncaught Exception: Invalid post. in /home/eatorder/public_html/wp-content/plugins/elementor/core/settings/page/manager.php:101 Stack trace: #0 /home/eatorder/public_html/wp-content/plugins/elementor/core/base/document.php(1726): Elementor\Core\Settings\Page\Manager->ajax_before_save_settings() #1 /home/eatorder/public_html/wp-content/plugins/elementor/core/base/document.php(847): Elementor\Core\Base\Document->save_settings() #2 /home/eatorder/public_html/wp-content/plugins/elementor/core/kits/manager.php(295): Elementor\Core\Base\Document->update_settings() #3 /home/eatorder/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/module.php(879): Elementor\Core\Kits\Manager->update_kit_settings_based_on_option() #4 /home/eatorder/public_html/wp-includes/class-wp-hook.php(326): ElementorPro\Modules\Woocommerce\Module->ElementorPro\Modules\Woocommerce\{closure}() #5 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #6 /home/eatorder/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /home/eatorder/public_html/wp-includes/option.php(883): do_action() #8 /home/eatorder/public_html/wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php(166): update_option() #9 /home/eatorder/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php(856): wc_create_page() #10 /home/eatorder/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php(772): WC_Install::create_pages() #11 /home/eatorder/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php(443): WC_Install::maybe_create_pages() #12 /home/eatorder/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php(308): WC_Install::install() #13 /home/eatorder/public_html/wp-includes/class-wp-hook.php(324): WC_Install::check_version() #14 /home/eatorder/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #15 /home/eatorder/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #16 /home/eatorder/public_html/wp-settings.php(643): do_action() #17 /home/eatorder/public_html/wp-config.php(112): require_once(‘/home/eatorder/…’) #18 /home/eatorder/public_html/wp-load.php(50): require_once(‘/home/eatorder/…’) #19 /home/eatorder/public_html/wp-admin/admin.php(34): require_once(‘/home/eatorder/…’) #20 /home/eatorder/public_html/wp-admin/index.php(10): require_once(‘/home/eatorder/…’) #21 {main} thrown in /home/eatorder/public_html/wp-content/plugins/elementor/core/settings/page/manager.php on line 101


    Plugin Author Ben Sibley

    (@bensibley)

    This message says that the error comes from the Elementor plugin. I’m not sure why there would be a difference after deactivating Independent Analytics, but I suspect it would also work if Elementor was deactivated.

    I’m sorry that the NS Cloner plugin hasn’t worked much better than the prior plugin. It worked well when I tested it with our plugin and others.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Multisite critical error on duplicate’ is closed to new replies.