Hello, I have an error in my client’s ecommerce.
What happens is that an affiliate registers and when creating a coupon for him and attaching that coupon to this affiliate, orders fail. In other words, the customer cannot make a purchase with this coupon and the affiliate cannot see their commissions. Along with this, I carried out a test by creating an affiliate account myself and placing the coupon as if it were mine and it was successful, but when I changed this account to “transform” it into the customer’s, the order error returned.
Other than that, I receive some error information in the email about the plugin.
Detalhes do erro
Um erro do tipo E_ERROR foi causado na linha 402 do ficheiro /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/base/class-merge-tags.php. Mensagem de erro: Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string in /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/base/class-merge-tags.php:402
Stack trace: 0 /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/base/class-merge-tags.php(402): str_replace() 1 /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/admin/settings/emails/email-notifications/affiliate-account-approved/functions.php(98): SliceWP_Merge_Tags->replace_tags() 2 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/class-wp-hook.php(326): slicewp_send_email_notification_affiliate_account_approved() 3 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 4 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 5 /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/base/abstracts/abstract-class-object-db.php(302): do_action() 6 /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/base/affiliate/functions.php(204): SliceWP_Object_DB->update() 7 /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/admin/affiliates/functions-actions-affiliates.php(477): slicewp_update_affiliate() 8 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/class-wp-hook.php(324): slicewp_admin_action_review_affiliate() 9 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 10 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 11 /var/www/vhosts/beehot.pt/httpdocs/wp-content/plugins/slicewp/includes/admin/functions.php(56): do_action() 12 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/class-wp-hook.php(324): slicewp_register_admin_do_actions() 13 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 14 /var/www/vhosts/beehot.pt/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 15 /var/www/vhosts/beehot.pt/httpdocs/wp-admin/admin.php(175): do_action() 16 {main}
thrown
