Title: Critical Error
Last modified: April 28, 2021

---

# Critical Error

 *  Resolved [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/)
 * Happens on saving settings.
 * Error Details
    ============= An error of type E_ERROR was caused in line 108 
   of the file /var/www/html/wp-content/plugins/woocommerce-google-adwords-conversion-
   tracking-tag/classes/pixels/google/class-google.php. Error message: Uncaught 
   TypeError: Return value of WGACT\Classes\Pixels\Google\Google::get_google_business_vertical()
   must be of the type string, null returned in /var/www/html/wp-content/plugins/
   woocommerce-google-adwords-conversion-tracking-tag/classes/pixels/google/class-
   google.php:108 Stack trace: #0 /var/www/html/wp-content/plugins/woocommerce-google-
   adwords-conversion-tracking-tag/classes/pixels/google/class-google.php(20): WGACT\
   Classes\Pixels\Google\Google->get_google_business_vertical(NULL) #1 /var/www/
   html/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/classes/
   pixels/google/class-google-pixel-manager.php(32): WGACT\Classes\Pixels\Google\
   Google->__construct() #2 /var/www/html/wp-content/plugins/woocommerce-google-
   adwords-conversion-tracking-tag/classes/pixels/class-pixel-manager.php(71): WGACT\
   Classes\Pixels\Google\Google_Pixel_Manager->__construct() #3 /var/www/html/wp-
   content/plugins/woocommerce-google-adwords-conversion-tracking-tag/wgact.php(
   184): WGACT\Classes\Pixels\Pixel_Manager->__con

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

 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14372955)
 * Hi [@bling007](https://wordpress.org/support/users/bling007/)
 * Thanks for reporting this.
 * Did it happen on first save, right after the installation, or on a later save?
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14372958)
 * Great question. It did happen on the first save. Though it was ignored.
    Now,
   it has happened on a later save. So reported.
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14372972)
 * Can you remember what settings you changed before that save?
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14372978)
 * I was saving Google UA analytics id.
    The first time – I saved G4 id which threw
   the error I think.
 * Currently running both G4 and UA.
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14373011)
 * And you are running the free version and have never tried the pro version, correct?
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14373030)
 * Yes. Unless the plugin name has changed. I have been trying many plugins for 
   years. This is a new trial.
 * Switched from: [https://wordpress.org/plugins/woocommerce-conversion-tracking/](https://wordpress.org/plugins/woocommerce-conversion-tracking/)
   
   Tried before: [https://wordpress.org/plugins/woocommerce-google-dynamic-retargeting-tag/](https://wordpress.org/plugins/woocommerce-google-dynamic-retargeting-tag/)
 * Also currently installed and running: [https://wordpress.org/plugins/woocommerce-google-analytics-integration/](https://wordpress.org/plugins/woocommerce-google-analytics-integration/)
 * Above does enhanced e-commerce tracking.
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14373357)
 * I think I found the issue.
 * Shortly after saving the new options, on the next immediate run the plugin would
   read the options from the cache instead from the new saved ones. This is why 
   the error happens so rarely and only on saving new settings.
 * I’ll push an update soon that should fix this.
 * Thanks for reporting it and sharing all those details.
 * I’ll mark issue resolved, as it is not constantly happening and the new update
   should fix it.
 * If it happens again after the update (which it shouldn’t), please let me know.
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14373400)
 * Appreciate such prompt support. Let me know if I can further assist in bug tracing.
   I have a profound experience with WordPress development.
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14373672)
 * Great. Good to know!
 *  Thread Starter [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14378793)
 * Please refer the screenshot: [https://prnt.sc/128tee7](https://prnt.sc/128tee7)
 * wooptpm_get_cart_items is causing massive lag on page loads. Any fix possible?
 * Caching PLugin: wp-rocket.
    -  This reply was modified 5 years, 1 month ago by [bling007](https://wordpress.org/support/users/bling007/).
      Reason: Caching
 *  Plugin Author [alekv](https://wordpress.org/support/users/alekv/)
 * (@alekv)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14378968)
 * While `wooptpm_get_cart_items` can take relatively long to fetch data from the
   server, it is **not** slowing down the website.
 * Please read the in depth explanation [here](https://docs.woopt.com/wgact/#/troubleshooting?id=is-wooptpm_get_cart_items-slowing-down-my-website).

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

The topic ‘Critical Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-google-adwords-conversion-tracking-tag/assets/
   icon-256x256.png?rev=2704744)
 * [Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing](https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-tag/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-tag/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-google-adwords-conversion-tracking-tag/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [alekv](https://wordpress.org/support/users/alekv/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/critical-error-186/#post-14378968)
 * Status: resolved