Home › Forums › WooCommerce Google Sync Plugin › Error while connecting your site
- This topic has 1 reply, 1 voice, and was last updated 1 year, 6 months ago by nmedia.
-
AuthorPosts
-
May 30, 2023 at 3:10 pm #151577Andrei NavumenkaParticipant
Time Trigger
Error while connecting your site: Exception: Request failed for https://krossovki-gomel.by returned code 500. Truncated server response: {“code”:”internal_server_error”,”message”:”
u041du0430 u0441u0430u0439u0442u0435 u0432u043eu0437u043du0438u043au043bu0430 u043au… (use muteHttpExceptions option to examine full response)
May 31, 2023 at 11:41 am #151590Andrei NavumenkaParticipantToday I tried to contact hosting support, I thought maybe this is a problem on the hosting side. That ‘s what they told me:
It’s hard to say, there really needs more advice from a developer or a specialist on this plugin. We see the following error in the logs:
[Wed May 31 12:36:53.607881 2023] [lsapi:error] [pid 20203:tid 47074087474944] [client 107.178.224.31:62441] [host krossovki-gomel.by] Backend fatal error: PHP Fatal error: Uncaught TypeError: array_fill_keys(): Argument #1 ($keys) must be of type array, null given in /home/masterpo/krossovki-gomel.by/wp-content/plugins/sync-wc-google/includes/hooks.class.php:300nStack trace:n#0 /home/masterpo/krossovki-gomel.by/wp-content/plugins/sync-wc-google/includes/hooks.class.php(300): array_fill_keys()n#1 /home/masterpo/krossovki-gomel.by/wp-content/plugins/sync-wc-google/includes/hooks.class.php(429): WBPS_Hooks->build_payload_for_webhook()n#2 /home/masterpo/krossovki-gomel.by/wp-content/plugins/sync-wc-google/includes/hooks.class.php(43): WBPS_Hooks->trigger_webhook_on_product_update()n#3 /home/masterpo/krossovki-gomel.by/wp-includes/class-wp-hook.php(310): WBPS_Hooks->{closure}()n#4 /home/masterpo/krossovki-gomel.by/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()n#5 /home/masterpo/krossovki-gomel.by/wp-includes/plugin.php(517): WP_Hook->do_action()n#6 /home/masterpo/krossovki-gomel.by/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(275): do_action()n#7 /home/masterpo/krossovki-gomel.by/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(196): WC_Product_Data_Store_CPT->update()n#8 /home/masterpo/krossovki-gomel.by/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1428): WC_Data_Store->update()n#9 /home/masterpo/krossovki-gomel.by/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(169): WC_Product->save()n#10 /home/masterpo/krossovki-gomel.by/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(238): WC_REST_CRUD_Controller->save_object()n#11 /home/masterpo/krossovki-gomel.by/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php(269): WC_REST_CRUD_Controller->update_item()n#12 /home/masterpo/krossovki-gomel.by/wp-includes/rest-api/class-wp-rest-server.php(1181): WC_REST_Controller->batch_items()n#13 /home/masterpo/krossovki-gomel.by/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()n#14 /home/masterpo/krossovki-gomel.by/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()n#15 /home/masterpo/krossovki-gomel.by/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()n#16 /home/masterpo/krossovki-gomel.by/wp-includes/class-wp-hook.php(308): rest_api_loaded()n#17 /home/masterpo/krossovki-gomel.by/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()n#18 /home/masterpo/krossovki-gomel.by/wp-includes/plugin.php(565): WP_Hook->do_action()n#19 /home/masterpo/krossovki-gomel.by/wp-includes/class-wp.php(399): do_action_ref_array()n#20 /home/masterpo/krossovki-gomel.by/wp-includes/class-wp.php(780): WP->parse_request()n#21 /home/masterpo/krossovki-gomel.by/wp-includes/functions.php(1334): WP->main()n#22 /home/masterpo/krossovki-gomel.by/wp-blog-header.php(16): wp()n#23 /home/masterpo/krossovki-gomel.by/index.php(17): require(‘/home/masterpo/…’)n#24 {main}n thrown in /home/masterpo/krossovki-gomel.by/wp-content/plugins/sync-wc-google/includes/hooks.class.php on line 300n
Maybe this will somehow help with solving the problem?
May 31, 2023 at 1:22 pm #151593Andrei NavumenkaParticipantAnd by the way, despite all these errors, it works. I make changes to the table and changes are also happening on the site, it turns out to work, but in the Apps Script in the log “Number of executions” in each execution of an error + OK does not appear in the table in the sync column + if you try to add or remove a product on the site itself, then writes “A critical error has occurred on the site. Please check the incoming admin mail messages for further instructions.” https://prnt.sc/YbfFKKOP7jtT
I found in the tickets that there was a solution in Htacces. I added allow from all – it didn’t help. Here is my hracces:
# BEGIN WordPress
# Директивы (строки) между `BEGIN WordPress` и `END WordPress`
# созданы автоматически и подлежат изменению только через фильтры WordPress.
# Сделанные вручную изменения между этими маркерами будут перезаписаны.
RewriteCond %{REQUEST_FILENAME} -s
RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9]
RewriteCond %{HTTP_USER_AGENT} !Twitterbot/[0-9]
RewriteCond %{HTTP_USER_AGENT} !Googlebot/[0-9]
RewriteRule wp-content/uploads/woo-import-export(/[A-Za-z0-9_@./&+-]+)+.([A-Za-z0-9_@./&+-]+)$ [L]RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
June 3, 2023 at 4:47 am #151635nmediaKeymasterHi Andrie,
sorry for the late reply, we have updated our autofetch/autosync script on May 25, 2023 did you used this (copy paste) and deploy new URL?
https://gist.github.com/nmedia82/d2ff84c258b2a82e1933fe9b02f56d57
-
AuthorPosts
- You must be logged in to reply to this topic.