lemondropcreative Posted June 11, 2018 Share Posted June 11, 2018 Hello We have inherited a Processwire site using version 2.2.3 and have added an SSL certificate. After adding the certificate we get the error: "too many redirects" We have tried editing the htaccess file as advised in some posts but are still having an issue. Any help appreciated. Thanks David Link to comment Share on other sites More sharing options...
Soma Posted June 11, 2018 Share Posted June 11, 2018 Watch for template settings that are only set to allow http? 1 Link to comment Share on other sites More sharing options...
lemondropcreative Posted June 12, 2018 Author Share Posted June 12, 2018 Hello Thanks very much for your reply and help. We are new to process wire but as far as I can see all the pages are using the basic template and setting the urls for this template in it's settings to https (ssl encrypted) has helped. Thank you. We can now view the site but two of the pages have lost there styling. We have tested the site and its ssl (why no padlock) and get the errors below? Can anyone advise how er would go about fixing these errors please? We are unsure how or where to update the urls mentioned. Many thanks David Hard Failure A style-sheet with an insecure url of "http://www.reallawsolicitors.com/site/modules/Minify/min/b=site/templates/styles&f=rls.css,jquery-ui-1.7.3.custom.css,ui.selectmenu.css,jplayer.blue.monday.css" was loaded on line: 11 of https://www.reallawsolicitors.com/. This URL will need to be updated to use a secure URL for your padlock to return. Hard Failure A script with an insecure url of "http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" was loaded on line: 12 of https://www.reallawsolicitors.com/. This URL will need to be updated to use a secure URL for your padlock to return. Hard Failure A script with an insecure url of "http://www.reallawsolicitors.com/site/modules/Minify/min/b=site/templates/scripts&f=jquery-ui.min.js,ui.selectmenu.js,jquery.jplayer.min.js,cufon-yui.js,Breuer_Text_400.font.js,general.js" was loaded on line: 13 of https://www.reallawsolicitors.com/. This URL will need to be updated to use a secure URL for your padlock to return. Soft Failure An image with an insecure url of "http://www.reallawsolicitors.com/site/templates/images/contact-details.png" was loaded on line: 28 of https://www.reallawsolicitors.com/. This URL will need to be updated to use a secure URL for your padlock to return. Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 12, 2018 Share Posted June 12, 2018 Please have a look at your used page template via (S)FTP (possible location: /site/templates/basic-page.php) and find these two lines: <base href="http://www.reallawsolicitors.com/" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script> Try to update them as followed - changing http to https: <base href="https://www.reallawsolicitors.com/" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script> As far as I can see right now this should fix your issues. Link to comment Share on other sites More sharing options...
lemondropcreative Posted June 12, 2018 Author Share Posted June 12, 2018 Hello Thanks very much for your quick reply and help. Much appreciated. I have located the basic-page.php in the location suggested. For some reason it only contains the code below: Thanks again for your help. <?php /** * Page template * */ include("./head.inc"); echo $page->body; include("./foot.inc"); Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 12, 2018 Share Posted June 12, 2018 You're welcome. That looks fine. At least it tells us where to look now. Look for the head.inc file now and check if the two lines mentioned above will be in there and change them. Link to comment Share on other sites More sharing options...
lemondropcreative Posted June 12, 2018 Author Share Posted June 12, 2018 Hello Thanks very much for taking the time to help. That has made all pages secure now except one which returns the error below. Thanks David Parse Error syntax error, unexpected '<' (line 14 of /home/sites/reallawsolicitors.com/public_html/site/templates/basic-page.php) This error message was shown because you are logged in as a Superuser. Error has been logged. Link to comment Share on other sites More sharing options...
lemondropcreative Posted June 12, 2018 Author Share Posted June 12, 2018 Sorry please ignore last post. All good now. My mistake. Thanks very much for all your help. It is appreciated. David Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 12, 2018 Share Posted June 12, 2018 Glad to hear that but there is more to do. You want to take care of your page https://www.reallawsolicitors.com/directions/ as the map doesn't load and the embedded script doesn't exist anymore. <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5"></script> I don't know if you tested your contact form and request callback widget but you definitely should do that. Link to comment Share on other sites More sharing options...
lemondropcreative Posted June 12, 2018 Author Share Posted June 12, 2018 Hello Thanks for the advice, the map I think was missing when we inherited the site. I will look in how to restore this and will test the call back. Thanks very much for all your help. David Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 12, 2018 Share Posted June 12, 2018 Good luck! If you need help you know where to ask. Link to comment Share on other sites More sharing options...
lemondropcreative Posted June 12, 2018 Author Share Posted June 12, 2018 That's great, thanks for your time it is appreciated. David Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now