Link to my site: https://www.pagingdr.net
SMF version: 2.0.15
TP version: 1.3
Default Forum Language: English
Theme name and version: Default - Curve
Browser Name and Version: Safari 11.0, google Chrome
Mods installed: Tapatalk SMF 2.0 plugin 4.3.4, Member Color Link, Misc Anti Spam 1.0, Stop Forum Spam 1.0, Forum Firewall 2.0.0, Bad Behavior 1.5.18
Related Error messages: 404 (Not found)
in SMF Admin, I have an Avatar URL defined. However, my members only use externally linked avatars.
In the TinyPortal shoutbox, the avatar does not appear if the member's avatar URL begins with https://
It will appear if the member's avatar URL begins with http://
From Google Chrome, I took the attached snapshot from the developer console. It appears that any member's avatar beginning with https// is rewritten as follows:
SMF avatar URL + / + member's avatar URL
for example: https://www.example.com/forum/avatar/https://i.imgur.com/filename.gif
This leads to a 404 not found error.
If I remove the URL from SMF's avatar URL field, the shoutbox code looks like this:
/ + member's avatar URL
For example: /https://i.imgur.com/filename.gif
I do not normally enable avatars in the recent posts block. For the purpose of testing this problem, I enabled avatars in the recent posts block. The same behaviour results.
I would appreciate your advice. Thanks.
I notice you have some insecure links in your menu, which could cause problems like this, other than that I am not to sure
Are there any errors in the error log? You've also never mentioned how you've setup https for your forum. Perhaps, telling the type of certificate used may help.
Try adding a new Recent Topics block, and a new shoutbox and see if the avatars are working. If they are then turn off the old ones.
Quote from: lurkalot on November 28, 2017, 05:29:12 PM
Try adding a new Recent Topics block, and a new shoutbox and see if the avatars are working. If they are then turn off the old ones.
OK, scrub that last idea, I've found the problem. Just need to find the best way to deal with it. Please bare with me.
@lurkalot, Thank you very much for looking into this. I did try creating a new shoutbox and it did not work.
Quote from: Skhilled on November 28, 2017, 03:19:45 PM
Are there any errors in the error log? You've also never mentioned how you've setup https for your forum. Perhaps, telling the type of certificate used may help.
No mention of tp shout errors in the error logs. I checked the error_log files in both forum subdirectory and the forum parent's subdirectory.
The only error comes from the "Show Page Source" / "Console" screen which reveals 404 not found error.
https was enabled after this problem became apparent. I have a Let's Encrypt certificate installed. I did not have to generate or install the certificate. It was automatically generated by my VPS provider. I was instructed to add the following line to my .htaccess file:
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
Quote from: pagingdr on November 28, 2017, 11:18:36 PM
@lurkalot, Thank you very much for looking into this. I did try creating a new shoutbox and it did not work.
Thanks for reporting the problem. it's something that I haven't seen mentioned before. I have got those http and https remote avatars working on my test site now, but just need to get some advice on the best way handle this, there's a couple of options I can see atm. Hopefully have a answer for you soon. Are you ok with editing files?
I'm fine with editing files. I was also surprised it hadn't been mentioned before.
Thanks again.