AngelofDev.com

Where I go to AFK | Gamer / Analyst / Developer / Potato

Menu
  • Home
    • Hardware
    • Software
      • Minecraft Plugins
  • How To
    • Tutorials
    • VBA
  • KOA:DW / GOG
    • Tips & Tricks
    • Tools & Calculators
  • Outlast: Asteroid Defense
  • Privacy Policy
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

    • KOA Building Requirements January 18, 2023
    • Navigating Low Offers on Facebook Marketplace: How to Handle Haggling Buyers January 15, 2023
    • ChatGPT maximum response length and how to request lengthy responses January 14, 2023
    • A Beginner’s Guide to JBOD and RAID Configurations: Understanding Striping, Mirroring, and Parity January 13, 2023
    • AzzaMods: The Easiest and Most Comprehensive Game Modding App January 10, 2023

    King Tools for KOA

    King Tools for KOA

    Get it on Google Play

    Outlast: Asteroid Defense

    Outlast: Asteroid Defense

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