I have added an SSL to my site and when I try to use cornerstone I get "redirected too many times" error

Upon successfully adding an SSL Cert to my site: https://www.themadronagroup.com I am now unable to use Cornerstone and am getting the error below on this page:

https://www.themadronagroup.com/x/#/content/2

This page isn’t working
www.themadronagroup.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

Please advise.

Hi There,

Thanks for writing in! If you’re using a redirection plugin, please disable it temporarily and test this issue again.

If not, head over to Settings -> General section on your WordPress back-end and then set both of your site URL and WordPress URL with https:// and see if that resolves this back and forth redirection.

Also you can try re-generating your permalink settings by head over to Settings -> Permalinks section. You just need to select postname and then save the changes to reset your htaccess file.

Also make sure to purge your server cache before testing your site.

Let us know how it goes.
Thanks!

I cleared all caches, the settings were correct, and reset the permalinks… still looping.

Hello @jasonfox,

Thanks for updating the thread. :slight_smile:

In that case, please share website login details in a secure note for us to take a closer look. Also can you please give us to the permission to troubleshoot the problem? We may have to perform some tests on the website which may effect the performance, appearance, layout and functioning of website temporarily.

Thanks.

Hello There,

I have logged in and checked your Site URL and WordPress Address URL and it is not using https. I have made the changes and it should be resolved now.

Please clear all your caches and test your site again.

They were set to https: so I am not sure how that could have happened. But the problem is still there.

Hi,

Try to reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.

The .htacess file is located at the root directory of your site.

Thanks

I changed the filename. Reset the permalinks, cleared all the caches and it is still stuck.

Hi there,

There must be some URL that were not updated which is causing the issue.

Try installing the Better Search Replace plugin then search for the following and replace with :

http://www.themadronagroup.com     >   https://www.themadronagroup.com 
http:\/\/www.themadronagroup.com   >   https:\/\/www.themadronagroup.com

Please make sure to backup your database before making any changes.

Hope this helps.

I used the better search and replace tool and ran both
http://www.themadronagroup.com > https://www.themadronagroup.com
http://www.themadronagroup.com > https://www.themadronagroup.com

still looping.

Hello There,

Please provide us ftp access. We would like to check your .htaccess and your wp-config.php file.

I have check your live site and the CORS issue is already resolve. The only remaining issue is the looping and there is a JS error because you inserted an invalid JS code. You will need to update it and use this instead:

</script><script async defer src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAk7IIRvIaw0-Yq3kOOSQDj_nV6Sz0GCCc&callback=initMap" type="text/javascript"></script>
  
  
  
<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","//chimpstatic.com/mcjs-connected/js/users/a5ec3d77bf4ebeca801eacd93/39c06148e8ded807f13f9bf43.js");

The <script> tags needs to be re arranged because the output of the custom JS section is already wrapped with the tag. Basically <script> should not be inserted in the custom JS section in the first place.

Hope this helps.

Hi Ruenel.

I sent you the SFTP: creds in a private note.

I changed the where should I put if not in the custom JS section?

Jason

Hello There,

I have logged in to your ftp. Your .htaccess and wp-config.php is correct. There aren’t no conlfict that may have caused any issue on the site. The CORS issue is already resolved. The remaining issue is your JS script. If you change the JS code and not to place it in the Custom JS section, you can use this custom function in your child theme’s functions.php file;

function add_my_jsscript(){ ?>

  <script async defer src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAk7IIRvIaw0-Yq3kOOSQDj_nV6Sz0GCCc&callback=initMap" type="text/javascript"></script>
  
  <script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","//chimpstatic.com/mcjs-connected/js/users/a5ec3d77bf4ebeca801eacd93/39c06148e8ded807f13f9bf43.js");</script>

<?php }
add_action('wp_footer', 'add_my_jsscript');

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.