News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

sslRedirect errors

Started by skb, April 27, 2019, 10:58:22 PM

Previous topic - Next topic

skb

Guest searches on my forum are generating a lot of General and Undefined errors. All the errors have this URL as a common factor.

https://www.diabetic.pub/index.php?sslRedirect

I guess this has something to do with my SSL certificate. Can I do anything to stop this ?

Error
Type of error: General
Error message: 2: Invalid argument supplied for foreach()
File: /home/diabesv6/public_html/Sources/Subs.php
Line: 3803
URL of page causing the error: https://www.diabetic.pub/index.php?sslRedirect
Backtrace information
#0: smf_error_handler()
Called from /home/diabesv6/public_html/Sources/Subs.php on line 3803
#1: template_footer()
Called from /home/diabesv6/public_html/Sources/Subs.php on line 3289
#2: obExit()
Called from /home/diabesv6/public_html/Sources/Errors.php on line 375
#3: setup_fatal_error_context()
Called from /home/diabesv6/public_html/Sources/Errors.php on line 232
#4: fatal_lang_error()
Called from /home/diabesv6/public_html/Sources/Load.php on line 1908
#5: loadTheme()
Called from /home/diabesv6/public_html/index.php on line 191
#6: smf_main()
Called from /home/diabesv6/public_html/index.php on line 151

SMF 2.1.4 / TP 2.2.2

Bigguy

Do you have an .htaccess file. I bet it has something to do with that. I had these errors until I adjusted mine.

skb

I have two. The older one is named htaccess1.
What rule / condition did you rewrite ? I've attached my file. The upper part is inherited from version 2.0 and may be redundant with 2.1. If you could suggest an edit, I could try it.
Thanks in advance.

SMF 2.1.4 / TP 2.2.2

GigaWatt

Hmmm... try adding this after RewriteEngine on.

RewriteCond %{HTTPS} !=on
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

skb

Thanks a lot Gigawatt.

I've added that rule and tried to regenerate the error by clicking on the link I provided. The error did not replicate.
We'll give it a couple of days, but hopefully this is working.

SMF 2.1.4 / TP 2.2.2

Bigguy

This is what I have. Just so ya know I guess.
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

skb

Thanks BigGuy.

I'll incorporate the ReWrite Rule. Seems better organised. At some point of time, I was wanting to place this forum as an add-on domain in a multi hosting package. I think some of the rules got carried over from then. Now the site is in an independent hosting package so I can do away with some of the stuff there.

SMF 2.1.4 / TP 2.2.2

Bigguy

Not a problem. Glad your gettin it fixed. :)

skb

Not seen any errors so far. I think we are good now. Will mark this solved.

SMF 2.1.4 / TP 2.2.2

Advertisement: