Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Settings cannot be saved WP Afffiliate

by

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 14 years ago by alexfrench.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • April 21, 2011 at 6:11 am #3228
    alexfrench
    Member

    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 #31611
    amin007
    Participant

    This 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 #31612
    alexfrench
    Member

    Hi,

    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 #31613
    amin007
    Participant

    Lets 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 #31614
    alexfrench
    Member

    That works!

    April 28, 2011 at 11:09 am #31615
    alexfrench
    Member

    Thanks 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 #31616
    amin007
    Participant

    This 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 #31617
    alexfrench
    Member

    The default settings. Option 1 (Stand alone affiliate area)

    April 29, 2011 at 6:09 am #31618
    amin007
    Participant

    Okay 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 #31619
    alexfrench
    Member

    Thank you. You’re a star. Awesome support. Thank you.

    Alex

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ