• Resolved atomicrange1

    (@atomicrange1)


    Hi

    I have been experiencing a lot of problems with the plugin. At first I could not install it through the plugins page and I used the sftp (Filezilla) route, of which I was able to install and activate.

    But recently there was an update of the plugin and when a tried updating it the normal way it caused errors. I then decided to delete the files manually and upload it manually too, of which resulted in ” Errors loading in all dashboard pages on the plugin.

    As we speak I cannot do anything on the plugin.

    Please assist

    Thanks

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hello what do the logs in WooCommerce (WooCommerce > Status > Logs Tab > Select google_listings and ads) say?

    Thread Starter atomicrange1

    (@atomicrange1)

    Hi
    Thanks for the response. I’ll send the log info just now.

    Thread Starter atomicrange1

    (@atomicrange1)

    2021-06-23T11:11:49+00:00 DEBUG Automattic\WooCommerce\GoogleListingsAndAds\Product\ProductSyncer::update_by_batch_requests Submitted 1 products:
    [{“woocommerce_id”:2843,”google_id”:”online:en:ZA:gla_2843″}]
    0 Failed:
    []
    2021-06-23T11:29:42+00:00 DEBUG Automattic\WooCommerce\GoogleListingsAndAds\Product\ProductSyncer::update_by_batch_requests Submitted 1 products:
    [{“woocommerce_id”:2843,”google_id”:”online:en:ZA:gla_2843″}]
    0 Failed:
    []

    Thread Starter atomicrange1

    (@atomicrange1)

    This is the latest log to date and it is a critical error with a memory limit issue.

    2021-06-25T00:26:36+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 1310720 bytes) in /var/www/wp-includes/cron.php on line 1144

    Hi @atomicrange1,

    We’re sorry to hear about the issues you’re having with Google Listings & Ads! Here are a few things we recommend trying:

    > 2021-06-25T00:26:36+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 1310720 bytes) in /var/www/wp-includes/cron.php on line 1144

    This is a memory limit error – it looks like your host/site has a 128MB limit. We recommend a minimum of 256MB, and more if possible. The product synchronization process is fairly resource-intensive and raising that limit should resolve your errors.

    If you’re not able to increase the memory available, you can try reducing the batch size (number of products synchronized at a time) by adding this filter:
    add_filter( 'woocommerce_gla_batched_job_size', function( $size, $name ) { return 20; }, 10, 2 );

    Cheers
    Justin

    Thread Starter atomicrange1

    (@atomicrange1)

    Hi Justin

    Thank you for the response. How and where do I add the filter?

    Thanks

    Thread Starter atomicrange1

    (@atomicrange1)

    Hi again

    I also found this piece of information on the Query Monitor display:

    Page Generation Time
    4.4794
    1.5% of 300s limit

    Peak Memory Usage
    89,985 kB
    34.3% of 262,144 kB server limit
    219.7% of 40,960 kB WordPress limit

    Database Queries
    0.3340

    SELECT: 532
    SHOW: 1
    UPDATE: 8
    Total: 541

    HTTP API Calls
    0.1692

    Total: 2
    Object Cache
    85.5% hit rate (12,487 hits, 2,114 misses)

    External object cache not in use

    The APCu extension for PHP is installed but is not in use by WordPress

    The Memcache extension for PHP is installed but is not in use by WordPress

    Opcode cache in use: APC

    Opcode cache in use: Zend OPcache`

    • This reply was modified 3 years, 5 months ago by atomicrange1.
    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi there,

    Thank you for the response. How and where do I add the filter?

    The filter can be added in your themes functions.php file if you’re comfortable with editing that file. If not, we recommend adding snippets using the free plugin, Code Snippets.

    Thread Starter atomicrange1

    (@atomicrange1)

    Hi again.

    I have not got help as yet and I found this scheduled action. I don’t know if it might share some light.

    Please assist.

    woocommerce_wccom_install_products	Failed	
    'products' => array ( 7623964 => array ( 'activate' => true, ), )
    Non-repeating	2021-06-11 12:32:54 +0000
    (2 weeks 3 days ago)	
    2021-06-11 12:32:54 +0000
    action created
    2021-06-11 12:34:43 +0000
    action started via Async Request
    2021-06-11 13:19:59 +0000
    action timed out after 300 seconds
    1655
    	gla/jobs/update_all_products/create_batch	Failed	
    0 => 3
    gla	Non-repeating	2021-06-13 12:20:32 +0000
    (2 weeks 1 day ago)	
    2021-06-13 12:20:33 +0000
    action created
    2021-06-13 12:20:39 +0000
    action started via Async Request
    2021-06-13 12:20:39 +0000
    action failed via Async Request: Invalid product ID: 0
    0
    	gla/jobs/update_products/process_item	Failed	
    0 => array ( 0 => 2800, )
    gla	Non-repeating	2021-06-13 18:12:40 +0000
    (2 weeks 1 day ago)	
    2021-06-13 18:12:41 +0000
    action created
    2021-06-13 18:14:24 +0000
    action started via Async Request
    2021-06-13 18:14:24 +0000
    unexpected shutdown: PHP Fatal error Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands::get_brand_from_terms() must be of the type array, bool given, called in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 92 and defined in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php:108 Stack trace: #0 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(92): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand_from_terms(false) #1 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(62): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand('woocommerce_bra...', Object(WC_Product_Variation)) #2 /var/www/wp-includes/class-wp-hook.php(292): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->Automattic\WooCommerce\GoogleListingsAndAds\Integratio in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 108
    0
    	gla/jobs/update_products/process_item	Failed	
    0 => array ( 0 => 2801, )
    gla	Non-repeating	2021-06-13 18:12:40 +0000
    (2 weeks 1 day ago)	
    2021-06-13 18:12:41 +0000
    action created
    2021-06-13 18:15:27 +0000
    action started via Async Request
    2021-06-13 18:15:27 +0000
    unexpected shutdown: PHP Fatal error Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands::get_brand_from_terms() must be of the type array, bool given, called in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 92 and defined in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php:108 Stack trace: #0 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(92): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand_from_terms(false) #1 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(62): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand('woocommerce_bra...', Object(WC_Product_Variation)) #2 /var/www/wp-includes/class-wp-hook.php(292): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->Automattic\WooCommerce\GoogleListingsAndAds\Integratio in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 108
    0
    	gla/jobs/update_products/process_item	Failed	
    0 => array ( 0 => 2800, )
    gla	Non-repeating	2021-06-13 18:20:40 +0000
    (2 weeks 1 day ago)	
    2021-06-13 18:20:41 +0000
    action created
    2021-06-13 18:20:44 +0000
    action started via Async Request
    2021-06-13 18:20:44 +0000
    unexpected shutdown: PHP Fatal error Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands::get_brand_from_terms() must be of the type array, bool given, called in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 92 and defined in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php:108 Stack trace: #0 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(92): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand_from_terms(false) #1 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(62): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand('woocommerce_bra...', Object(WC_Product_Variation)) #2 /var/www/wp-includes/class-wp-hook.php(292): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->Automattic\WooCommerce\GoogleListingsAndAds\Integratio in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 108
    0
    	gla/jobs/update_products/process_item	Failed	
    0 => array ( 0 => 2801, )
    gla	Non-repeating	2021-06-13 18:20:40 +0000
    (2 weeks 1 day ago)	
    2021-06-13 18:20:41 +0000
    action created
    2021-06-13 18:20:57 +0000
    action started via Async Request
    2021-06-13 18:20:57 +0000
    unexpected shutdown: PHP Fatal error Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands::get_brand_from_terms() must be of the type array, bool given, called in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 92 and defined in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php:108 Stack trace: #0 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(92): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand_from_terms(false) #1 /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php(62): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->get_brand('woocommerce_bra...', Object(WC_Product_Variation)) #2 /var/www/wp-includes/class-wp-hook.php(292): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WooCommerceBrands->Automattic\WooCommerce\GoogleListingsAndAds\Integratio in /var/www/wp-content/plugins/google-listings-and-ads/src/Integration/WooCommerceBrands.php on line 108
    0
    	gla/jobs/update_all_products/create_batch	Failed	
    0 => 1
    gla	Non-repeating	2021-06-24 02:38:28 +0000
    (4 days 19 hours ago)	
    2021-06-24 02:38:29 +0000
    action created
    2021-06-24 02:39:32 +0000
    action started via Async Request
    2021-06-24 02:39:33 +0000
    action failed via Async Request: Invalid product ID: 0
    0
    	gla/jobs/update_products/process_item	Failed	
    0 => array ( 0 => 2843, )
    gla	Non-repeating	2021-06-24 18:17:13 +0000
    (4 days 4 hours ago)	
    2021-06-24 18:17:14 +0000
    action created
    2021-06-24 18:19:19 +0000
    action started via Async Request
    2021-06-24 18:19:19 +0000
    unexpected shutdown: PHP Fatal error Uncaught Error: Call to undefined function Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Psr7\stream_for() in /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:400 Stack trace: #0 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(59): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\CurlFactory->applyHandlerOptions(Object(Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\EasyHandle), Array) #1 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\CurlFactory->create(Object(Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Psr7\Request), Array) #2 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\ in /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 400
    0
    	gla/jobs/update_products/process_item	Failed	
    0 => array ( 0 => 2843, )
    gla	Non-repeating	2021-06-24 18:22:24 +0000
    (4 days 4 hours ago)	
    2021-06-24 18:22:25 +0000
    action created
    2021-06-24 18:22:29 +0000
    action started via Async Request
    2021-06-24 18:22:30 +0000
    unexpected shutdown: PHP Fatal error Uncaught Error: Call to undefined function Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Psr7\stream_for() in /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:400 Stack trace: #0 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(59): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\CurlFactory->applyHandlerOptions(Object(Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\EasyHandle), Array) #1 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\CurlFactory->create(Object(Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Psr7\Request), Array) #2 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\ in /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 400
    0
    	gla/jobs/update_products/process_item	Failed	
    0 => array ( 0 => 2843, )
    gla	Non-repeating	2021-06-24 18:23:48 +0000
    (4 days 4 hours ago)	
    2021-06-24 18:23:49 +0000
    action created
    2021-06-24 18:24:43 +0000
    action started via Async Request
    2021-06-24 18:24:43 +0000
    unexpected shutdown: PHP Fatal error Uncaught Error: Call to undefined function Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Psr7\stream_for() in /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:400 Stack trace: #0 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(59): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\CurlFactory->applyHandlerOptions(Object(Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\EasyHandle), Array) #1 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Handler\CurlFactory->create(Object(Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Psr7\Request), Array) #2 /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\ in /var/www/wp-content/plugins/google-listings-and-ads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 400
    0
    Select All	
    Hook
    Status	Arguments	
    Group
    Recurrence	
    Scheduled Date
    Log	
    Claim ID
    Select bulk action
    Bulk actions
    12 items ? ? Current Page1 of 2 Next page? ?
    Thank you for creating with WordPress.Version 5.7.2
    Plugin Support B C. a11n

    (@battouly)

    Hi @atomicrange1,

    Thanks for sharing the logs. We have seen this error before but, a fix was released for the bug, and is included in the 1.1 version update of the plugin.

    https://github.com/woocommerce/google-listings-and-ads/pull/788

    Can you please confirm the current version of the plugin that you have, active?

    Thread Starter atomicrange1

    (@atomicrange1)

    Hi @mikedmoore .

    Hi added the piece of code to the functions.php file but I am not sure if it is effective as I added it on my staging site.

    I did not have any errors or anything disturbing after uploading it manually.

    Thread Starter atomicrange1

    (@atomicrange1)

    Hi @battouly

    The current version is at 1.1.0

    I could not install it using the normal way and had to do it manually.

    Thanks

    Plugin Support B C. a11n

    (@battouly)

    Hey @atomicrange1,

    Just to clarify, does that mean the error in logs above did not occur again and all looks goods? Also, are you using the latest version?

    Update:

    Ohh that was quick from both you and me ??.

    Okay, I’m assuming everything’s alright for now. Keep us posted if something goes wrong.

    Thread Starter atomicrange1

    (@atomicrange1)

    @battouly

    I have not tested it using the production site. I am just cautious of doing that on my production site.

    And@mikedmoore regarding the errors. I am still receiving the errors. Please see the following:

    Please see the link in the tags section.

    Thread Starter atomicrange1

    (@atomicrange1)

    Hi again.

    Would this information maybe provide some insights?

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.7.2
    Current theme: Astra (version 3.6.2)
    Current plugin: Google Listings and Ads (version 1.1.0)
    PHP version 7.3.12
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 47 of the file /var/www/wp-content/plugins/google-listings-and-ads/vendor/jetpack-autoloader/class-plugin-locator.php. Error message: Uncaught RuntimeException: Failed to locate plugin /var/www/wp-content/plugins/google-listings-and-ads in /var/www/wp-content/plugins/google-listings-and-ads/vendor/jetpack-autoloader/class-plugin-locator.php:47
    Stack trace:
    #0 /var/www/wp-content/plugins/google-listings-and-ads/vendor/jetpack-autoloader/class-autoloader.php(46): Automattic\Jetpack\Autoloader\jp7d0b9b05c61170bf7b752103749920e3\Plugin_Locator->find_current_plugin()
    #1 /var/www/wp-content/plugins/google-listings-and-ads/vendor/autoload_packages.php(13): Automattic\Jetpack\Autoloader\jp7d0b9b05c61170bf7b752103749920e3\Autoloader::init()
    #2 /var/www/wp-content/plugins/google-listings-and-ads/src/Autoloader.php(37): require('/var/www/wp-con...')
    #3 /var/www/wp-content/plugins/google-listings-and-ads/google-listings-and-ads.php(35): Automattic\WooCommerce\GoogleListingsAndAds\Autoloader::init()
    #4 /var/www/wp-settings.php(391): include_once('/var/www/wp-con...')
    #5 /var/www/wp-config.php(96): require_once('/var/www/wp-set...')
    #6 /var/www/wp-load.p
Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Google Listings & ads plugin problem’ is closed to new replies.