AngelofDev.com

Where I go to AFK

Menu
  • Home
  • How To
    • VBA
  • KOA:DW / GOG
    • Tips & Tricks
    • Tools & Calculators
  • Minecraft Plugins
  • King Tools for KOA & GOG
  • Outlast: Asteroid Defense
  • King of Avalon Player Stats Tracker
Menu

How Fix Calculated Fields Form (CFF) Plugin from redirecting AMP pages to HTTPS

Posted on February 25, 2019February 25, 2019 by admin

If you have an AMP WordPress website and Calculated Fields Form (CFF) plugin, you may be aware that your forms actually don’t load on the AMP pages this is a cause for concern with user’s experience resulting in them leaving.

I was first made aware of this issue in Google Search Console formerly known as Google Webmasters after seeing URL not found (404) errors for AMP.

After viewing a few of my posts that contained forms I noticed it was caused by the Calculated Field Forms plugin itself. The plugin would try to redirect AMP pages to a HTTPS link. And since I do not have SSL enabled on this website as there is no reason to, this is not good for users visiting posts that have forms.

After trying to search for fixes I stumbled across a very unhelpful post by the plugin developer themselves. Not satisfied with this I set out to fix the issue myself.

All it took was a simple small edit of the cpcff_amp.inc.php from the Plugin Editor.

How to fix

From your WordPress Dashboard navigate to Plugins > Plugin Editor

From the Plugin Editor page select Calculated Fields Form from the drop down list of plugins to edit.

Open up the cpcff_amp.inc.php file from the Plugin Files sidebar.

Find:
wp_redirect( “https://$host$request_uri” );

Change to:
wp_redirect( “http://$host$request_uri” );

Once you have made the change click Update File to save the changes.

NOTE: You will need to do this again every time you update the plugin.

  • amp
  • calculated fields form
  • cff
  • google search console
  • how to
  • plugin
  • url not found 404
  • wordpress
  • Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Recent Posts

    • King Tools now with Player Stats Database May 19, 2020
    • Honor Pass – Hero Weapon Challenger Chest May 19, 2020
    • Netherfall Season 2, Round 8 of 12, Top 100 Leaderboard May 18, 2020
    • King of Avalon Player Stats Tracker Trial May 3, 2020
    • King Tools for King of Avalon & Guns of Glory April 2, 2020

    King Tools for KOA

    King Tools for KOA

    Get it on Google Play

    Outlast: Asteroid Defense

    Outlast: Asteroid Defense

    Get it on Google Play
    © 2021 AngelofDev.com | Powered by Minimalist Blog WordPress Theme