{"id":15409638,"date":"2022-02-28T01:55:58","date_gmt":"2022-02-28T01:55:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-causing-issue-3\/"},"modified":"2022-02-28T01:55:58","modified_gmt":"2022-02-28T01:55:58","slug":"plugin-causing-issue-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-causing-issue-3\/","title":{"rendered":"Plugin causing issue"},"content":{"rendered":"<p>Hello<\/p>\n<p>For some weeks now, after having the plugin for a long time, is causing a CRITICAL ERROR IN THE PAGE.<br \/>\nAs soon as the plugin is disabled, the page goes back to normal<\/p>\n<p>this is the error: <\/p>\n<pre><code>Fatal error: Uncaught TypeError: mysqli::real_connect(): Argument #5 ($port) must be of type ?int, string given in \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/wp-db.php:2162 Stack trace: #0 [internal function]: mysqli-&gt;real_connect() #1 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/wp-db.php(2162): mysqli_query() #2 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/wp-db.php(2051): wpdb-&gt;_do_query() #3 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/wp-db.php(2715): wpdb-&gt;query() #4 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/plugins\/woocommerce\/includes\/data-stores\/class-wc-customer-data-store.php(417): wpdb-&gt;get_var() #5 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-data-store.php(207): WC_Customer_Data_Store-&gt;get_total_spent() #6 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-customer.php(345): WC_Data_Store-&gt;__call() #7 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/plugins\/duracelltomi-google-tag-manager\/integration\/woocommerce.php(381): WC_Customer-&gt;get_total_spent() #8 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/class-wp-hook.php(307): gtm4wp_woocommerce_datalayer_filter_items() #9 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/plugin.php(189): WP_Hook-&gt;apply_filters() #10 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/plugins\/duracelltomi-google-tag-manager\/public\/frontend.php(722): apply_filters() #11 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/class-wp-hook.php(305): gtm4wp_wp_header_begin() #12 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/class-wp-hook.php(331): WP_Hook-&gt;apply_filters() #13 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/plugin.php(474): WP_Hook-&gt;do_action() #14 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/general-template.php(3042): do_action() #15 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/theme-builder\/frontend-header-template.php(11): wp_head() #16 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/theme-builder\/frontend.php(216): require_once(&#039;\/home\/676790.cl...&#039;) #17 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/theme-builder\/frontend.php(247): et_theme_builder_frontend_override_partial() #18 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/class-wp-hook.php(309): et_theme_builder_frontend_override_header() #19 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/class-wp-hook.php(331): WP_Hook-&gt;apply_filters() #20 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/plugin.php(474): WP_Hook-&gt;do_action() #21 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/general-template.php(38): do_action() #22 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-content\/themes\/Divi\/page.php(3): get_header() #23 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/template-loader.php(106): include(&#039;\/home\/676790.cl...&#039;) #24 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-blog-header.php(19): require_once(&#039;\/home\/676790.cl...&#039;) #25 \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/index.php(17): require(&#039;\/home\/676790.cl...&#039;) #26 {main} thrown in \/home\/676790.cloudwaysapps.com\/syackruvsm\/public_html\/wp-includes\/wp-db.php on line 2162\nThere has been a critical error on this website.\n\nLearn more about troubleshooting WordPress.<\/code><\/pre>\n<p>I tried disabling the other plugins reported in the error, and the problem remains until I disable yours.<br \/>\nFor us is vital to have your plugin, can you please help us out? This is urgent.<br \/>\nI tried to contact you via your page form, but is disabled.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-15409638","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15409638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15409638\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15409638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}