Open jconroy opened 3 years ago
Reported in 3905075-zen
Another report in 3928113-zen
Another report: https://wordpress.org/support/topic/pixel-error/?view=all
Another report in the forum: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcontent-event-16/
3998501-zen
Reported as well in the forum: https://wordpress.org/support/topic/events-issues/?view=all
Another report: https://wordpress.org/support/topic/invalid-key-parameter/
Reported in 4250327-zen
Another report: 31471768-hc
Received a new report for this today.
Another report 4640197-zen
Reported in 4749302-zen
Some additional details:
ViewCategory
(https://imgur.com/5YN6g6l)content_category
should be PAUL POTATO and content_name
should be PAUL POTATO
ideally.content_category
as multiple categories separated by a comma : (PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILI, Zubehör & Dünger
)content_name
is picked as the last entry in the above comma-separated list: Zubehör & Dünger
PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILI, Zubehör & Dünger
Zubehör & Dünger
from that product, the results of the pixel changes to below:content_category
: PAUL POTATO, SISSI STRAWBERRY, TOM TOMATO, CHARLY CHILI
content_name
: CHARLY CHILI
Additionally, they got this error: Invalid Match Key Parameters for events (https://i.imgur.com/4zufspM.png)
4825367-zen
Another report 5190044-zd-woothemes
Another report 29300512-hc
I have the same issue
I have these two problems
Server Sending Invalid Match Key Parameters for AddToCart Event Server Sending Invalid Match Key Parameters for ViewContent Event
Thanks, @fvdbgit, @tavo94,
The Invalid Match Key Parameters for events
error can be triggered for different reasons. Identifying a root cause has been quite tricky. One hypothesis is that the events are triggered by a web crawler, not a real user. We're still investigating a solution. We'll be sure to update this thread as soon as we have a fix available.
Similar issue here: https://wordpress.org/support/topic/server-sending-invalid-match-key-parameters-for-viewcategory-event-14/#post-16189618
zd-5704308
From ticket 5885876-zen
I have altered the code in fbutils.php around line 92 and the products are now showing up In facebook without the joined SKU_ID
This code is your original file fbutils.php
$fb_retailer_id = $woo_product->get_sku() ?
$woo_product->get_sku() . '_' . $woo_id :
self::FB_RETAILER_ID_PREFIX . $woo_id;
and was showing as the link -
I have changed to
$fb_retailer_id = $woo_product->get_sku() ?
$woo_product->get_sku() :
self::FB_RETAILER_ID_PREFIX . $woo_id;
it is now showing as required -
Products are syncing to facebook and no errors showing in status logs, can this be investigated and if working correctly from your testing be published
Thanks, @WillBrubaker. I will discuss this with the team and provide updates.
PS: This is something Meta has been looking into as well.
From ticket 5885876-zen
I have altered the code in fbutils.php around line 92 and the products are now showing up In facebook without the joined SKU_ID
This code is your original file fbutils.php
$fb_retailer_id = $woo_product->get_sku() ? $woo_product->get_sku() . '_' . $woo_id : self::FB_RETAILER_ID_PREFIX . $woo_id;
and was showing as the link -
I have changed to
$fb_retailer_id = $woo_product->get_sku() ? $woo_product->get_sku() : self::FB_RETAILER_ID_PREFIX . $woo_id;
it is now showing as required -
Products are syncing to facebook and no errors showing in status logs, can this be investigated and if working correctly from your testing be published
I sent this to woocommerce support a couple of days ago I have been running this code for the last 4 or 5 days without issue and zero issues against the cataloque in facebook or in Millby Furniture hopefully this can be checked by others and implemented so I dont have to change the code everytime there is an update.
Thanks, @Millby-furniture.
One thing to note: The wc_facebook_fb_retailer_id was introduced in v 2.6.12. This filter can be used to modify the FB retailer id if needed.
You can do so as follow:
add_filter( 'wc_facebook_fb_retailer_id', 'fb_id_filter', 10, 2 );
function fb_id_filter( $fb_retailer_id, $woo_product ) {
return (string) $woo_product->get_id();
}
This should help modify the value of the FB retailer id. As for whether we need to modify the default, I reckon that may require further discussion.
@rawdreeg @WillBrubaker whats happening? seen a couple of updates have gone out but not the above I have to keep changing your code back to what I posted above, surely 2 years is long enough to resolve the issue
Thanks @Millby-furniture,
We must be careful with every change we make to a function, as users may have implemented customizations based on a particular behavior.
Until we release a fix for this, I suggest you use the wc_facebook_fb_retailer_id
to modify the fb_retailer_id. You can use it as follow:
add_filter( 'wc_facebook_fb_retailer_id', 'fb_id_filter', 10, 2 );
function fb_id_filter( $fb_retailer_id, $woo_product ) {
return (string) $woo_product-> get_sku();
}
Creating a catch-all issue for reports of "Invalid Match Key Parameters" for AddToCart and ViewContent Events. We are investigating more but the advice to date has been
Some initial problem-solving steps
Reports