Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › Settings cannot be saved WP Afffiliate
Tagged: save
- This topic has 9 replies, 2 voices, and was last updated 13 years, 7 months ago by alexfrench.
-
AuthorPosts
-
April 21, 2011 at 6:11 am #3228alexfrenchMember
Hi,
I have just installed WP Affiliate. When I try to update the settings I get an error 500. This is all I get from the error log:
[Wed Apr 20 23:44:44 2011] [error] [client xxx] File does not exist: /home/admin/public_html/404.shtml
[Wed Apr 20 23:44:44 2011] [error] [client xxx] File does not exist: /home/admin/public_html/favicon.ico
[Wed Apr 20 23:21:03 2011] [error] [client xxx] File does not exist: /home/admin/public_html/404.shtml
[Wed Apr 20 23:21:03 2011] [error] [client xxx] File does not exist: /home/admin/public_html/favicon.ico
[Wed Apr 20 23:21:02 2011] [error] [client xxx] File does not exist: /home/admin/public_html/500.shtml, referer: http://webcaptioning.com/wp-admin/admin.php?page=wp_aff_platform_settings
Is anyone able to point me in the right direction to fix this please?
Thanks,
Alex
April 21, 2011 at 9:01 am #31611amin007ParticipantThis error usually happens when your mod_security rule is not setup correctly. The value of the “Index Page Message” has some HTML in it. So if the mod_security is not setup correctly when it goes to save it thinks someone is trying to inject bad query so it gives a 404.
If you just keep a few lines of plain text without any HTML code in the “Index Page Message” field then it should let you save. Please try this so I know for sure that this is the issue.
April 26, 2011 at 11:58 pm #31612alexfrenchMemberHi,
Thanks so much for your response. I tried changing the Index Page Message to the following:
“Join our affiliate program and start earning money for every sale you send our way! Simply create your account, place your linking code into your website and watch your account balance grow as your visitors become our customers.”
That’s all I changed from the default settings, then I clicked Update Options. I got the same error. Any other ideas please?
Thanks,
Alex
April 27, 2011 at 1:04 am #31613amin007ParticipantLets try with a more simpler content just to test. Try using just the following one line:
Join our affiliate program and start earning money for every sale you send our way
Let me know if you still get an error when try to save with the above line in the “Index Page Message” field.
April 28, 2011 at 2:40 am #31614alexfrenchMemberThat works!
April 28, 2011 at 11:09 am #31615alexfrenchMemberThanks for your help so far. It would be great to be able to work out what is causing this so that I can insert some meaningful text into that page. Thanks. Alex
April 29, 2011 at 12:36 am #31616amin007ParticipantThis error usually happens when your mod_security rule on the server is not setup correctly. so your server needs to fix that but we can easily go around this problem with a little workaround.
Which option are you using from this page?
http://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
April 29, 2011 at 3:24 am #31617alexfrenchMemberThe default settings. Option 1 (Stand alone affiliate area)
April 29, 2011 at 6:09 am #31618amin007ParticipantOkay cool. This is what you do…
1. Open the “affiliates/index.php” file and look for the following block of code:
<?php
$wp_aff_index_body_tmp = get_option('wp_aff_index_body');
$wp_aff_index_body = html_entity_decode($wp_aff_index_body_tmp, ENT_COMPAT, "UTF-8");
echo $wp_aff_index_body; ?>The above block of code is what gets the value from th settings menu and displays it on the index page.
2. Simply get rid of that block of code and hardcode your message here (you can use HTML here).
April 29, 2011 at 7:11 am #31619alexfrenchMemberThank you. You’re a star. Awesome support. Thank you.
Alex
-
AuthorPosts
- You must be logged in to reply to this topic.