Hi, I’m seeing the following error messages once a customer reaches the order confirmation page after completing an order. All seem to be related to the Awin plugin?:
Notice: Undefined index: source in/home/customer/www/tisserand.com/public_html/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.phpon line177
Notice: Undefined index: adv_awc in/home/customer/www/tisserand.com/public_html/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.phpon line234
Notice: Undefined index: source in/home/customer/www/tisserand.com/public_html/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.phpon line
]]>In our Error.log file, the following notifications are constantly coming. I think it happened after updating the plugin. What do we need to do.
[25-Feb-2023 08:35:24 UTC] PHP Warning: Undefined array key “adv_awc” in /home/ahniwz4/public_html/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.php on line 221
[25-Feb-2023 08:35:24 UTC] PHP Warning: Undefined array key “source” in /home/ahniwz4/public_html/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.php on line 221
We are using your plugin:- Awin – Advertiser Tracking for WooCommerce
we want to know if your plugin is compatible with PHP 8.1 or not.
We would love to know ASAP.
]]>Hi, I’m not sure what causes it but our AWIN advertiser ID loses its value intermittently so we have to enter it and save it again. Whilst it is blank sales are not recorded. I know that plugins can cause conflicts etc but what would cause it to lose a database stored value?
Thanks
Dan
]]>I’m about to sign up to Awin as an advertiser and run a Woocommerce store. I’m concerned this plugin has not been updated in over 12 months and it’s saying is not tested with the latest version of WordPress.
]]>I’m trying to install this in the root site of a multisite network, however I’m not getting the following menu options on the root domain:
It is available in all the sub sites, but not the main site on the root domain. For example:
Any ideas?
]]>Hi Awin support,
Overview:
This plugin seems to send all WooCommerce order confirmations to the Awin tracking system, regardless if the customer actually arrived via an affiliate link or not.
The issue:
As all orders are getting sent to the Awin tracking dashboard, I am noticing a lot of errors along the lines of “Issue with first-party cookie: the first party cookie could not be found“.
Summary:
I assume the plugin should only be sending order confirmations to Awin if the user did indeed arrive via an affiliate link. I have checked through the plugins code and function awin_thank_you($order_id)
is always firing, without any checks/if statements.
– Alex
]]>
PHP Notice: Undefined index: source in /path/to/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.php on line 183
PHP Notice: Undefined index: adv_awc in /path/to/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.php on line 226
PHP Notice: Undefined index: source in /path/to/wp-content/plugins/awin-advertiser-tracking/awin-advertiser-tracking.php on line 226
awin-advertiser-tracking.php:183
is
$source = $_COOKIE[AWIN_SOURCE_COOKIE_NAME];
$channel = strlen($source) > 0 ? $source : 'aw';
which I think should be replaced with:
$channel = filter_input( INPUT_COOKIE, AWIN_SOURCE_COOKIE_NAME ) ?? 'aw';
Although that requires PHP 7, so maybe instead:
$channel = isset( $_COOKIE[AWIN_SOURCE_COOKIE_NAME] ) ? filter_input( INPUT_COOKIE, AWIN_SOURCE_COOKIE_NAME ) : 'aw';
awin-advertiser-tracking.php:226
is
awin_perform_server_to_server_call($_COOKIE[AWIN_AWC_COOKIE_NAME], $_COOKIE[AWIN_SOURCE_COOKIE_NAME], $order, $advertiserId, $voucher);
to:
$awc = isset( $_COOKIE[AWIN_AWC_COOKIE_NAME] ) ? filter_var( INPUT_COOKIE, AWIN_AWC_COOKIE_NAME ) : '';
$source = isset( $_COOKIE[AWIN_SOURCE_COOKIE_NAME] ) ? filter_var( INPUT_COOKIE, AWIN_SOURCE_COOKIE_NAME ) : '';
awin_perform_server_to_server_call( $awc, $source, $order, $advertiserId, $voucher);
I’d also consider giving this a more unique name:
define( 'AWIN_SOURCE_COOKIE_NAME', 'source' );
]]>