Affiliate has been approved, but has not accepted terms.
-
Hi, in your registration page do you see the following option.
I have read and agree to the Terms and Conditions
If you do, can you enable Enable Debug in the plugin Settings and carry a registration test.
When you register, if you don’t check the box to accept the terms and conditions the registration should not go through. If it does in your case check the log file.
Report back, thank you.
Hi,
I have the very same issue. I do have “I have read and agree to the Terms and Conditions” enabled and it shows up in the form, but the registration went through.
How do I manually set it to be accepted?
Note that I have another issue, probably related. I keep Enable Debug on, so I have the log of this registration in question:
[05/xx/2017 8:37 PM] – SUCCESS : New Affiliate Registration
[05/xx/2017 8:37 PM] – SUCCESS : Sending an email to [email protected]However, we did not get the email maybe because of this:
[31-xx-2017 20:37:40 UTC] PHP Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: (setFrom) [email protected]/live’ in /home/ilikeorg/public_html/live/wp-includes/class-phpmailer.php:1023
Stack trace:
#0 /wp-includes/pluggable.php(352): PHPMailer->setFrom(‘customer.care@b…’, ‘mydomain.com’, false)
#1 /wp-content/plugins/affiliates-manager/source/Util/EmailHandler.php(14): wp_mail(‘customer.care@b…’, ‘New Affiliate R…’, ‘New affiliate r…’)
#2 /wp-content/plugins/affiliates-manager/source/Pages/AffiliatesRegister.php(76): WPAM_Util_EmailHandler->mailAffiliate(‘customer.care@b…’, ‘New Affiliate R…’, ‘New affiliate r…’)
#3 /wp-content/plugins/affiliates-manager/source/Pages/PublicPage.php(67): WPAM_Pages_AffiliatesRegister->processRequest(Array)
#4 /wp-content/plugins/affiliates-manager/source/Pages/PublicPage.php(93): WPAM_Pages_PublicPage->proces in /home/ilikeorg/public_html/live/wp-includes/class-phpmailer.php on line 1023As you can see the plugin tried to send the email to [email protected]/live
/live is the directory in which the site is located, as I moved it recently there, formally it was in the root of the linux account. When it was in the root directory the email address was OK, and all the affiliate registrations did work as expected.
Also Affiliates > Settings “Email name” and “Email address” were left empty both before AND after the move to /live.
After these errors, I filled in “Email name” and “Email address”, but I have not yet tested it with this setup. I will do it when I have the time.
Hi @szabesz, I have tested this in my testing site and it is working as expected. Because of the many errors you described above, I suggest that you disable and delete the plugin and install a fresh copy. Let me know if this fixes your issue.
Kind regards
Hi @mbrsolution
Thank you for the quick reply! I am probably on the way to track down this issue. Since I moved the site to a subdirectory, some settings and code had to be adjusted, and I forgot about the add_filter(‘wp_mail_from’, function ()…) in my functions.php. In this filter I constructed the from address based on get_option(‘siteurl’), so that is why I started to get invalid email address.
My current guess is that because of the fatal error of trying to send the email when the Affiliate registered with the site, your plugin could not finish the registration process properly, hence the state of “Affiliate has been approved, but has not accepted terms.”
So my first question is: could you please test it by generating the same error, with something like:
add_filter('wp_mail_from', function () { return "[email protected]/subdir"; });
If you can confirm that indeed this is what caused the issue, you might be able to handle this scenario to make the plugin more robust. I understand that it is not really an issue with the plugin but still…
However, the most important question is still this one:
How do I manually set it to be accepted?
I want to set the state of the application to be accepted. What should I do?Please advise. Thank you in advance!
Hi @szabesz, the plugin developers will investigate further your request.
Thank you
@szabesz, This plugin will only work correctly if you remove the conflict from your site. Remove the issue that is causing the error. Then delete the affiliate record and create a new one.
- The topic ‘Affiliate has been approved, but has not accepted terms.’ is closed to new replies.