1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Smilies and changing their path / SSL and mixed content

Discussion in 'Troubleshooting and Problems' started by ehd, Sep 16, 2016.

  1. ehd

    ehd Active Member


    I have a strange problem with mixed content after switching to SSL. I saw that all the smilies were served with http. Then I discovered that in the database in xf_smilie the image_url all had a direct link to "http". I think I did this several years ago when I was switching from vbulletin (don't ask me why, I think it was when importing my custom smilies).

    The urls were changed in the database and point to https now. But still the smilies are being served with http.

    I waited 6 hours now, but nothing happened. Is there any caching mechanism, which shows the old smilies?

    Thanks alot :)
  2. Mike

    Mike XenForo Developer Staff Member

    Never change things in the database directly. You should change the smilie URLs in the control panel which will trigger the necessary rebuilds.

    You should be able to edit a smilie to get your changes to be applied. You may need to change a URL and then change it back to what it's supposed to be.
  3. ehd

    ehd Active Member

    Thanks, that worked.

    I did that in the db, because it were several hundreds smilies. Thank you for the hint :)
  4. midego

    midego Member

    Where can I change the smilie URL in the admin panel?
  5. Tracy Perry

    Tracy Perry Well-Known Member

    ACP -> Home -> Smilies
    then edit them.
  6. midego

    midego Member

    You can't edit anny https/ssl settings in the smilie settings.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    You can by changing HTTP to HTTPS, if you have smilies defined with URLs like that.

    What are the URLs currently for the smilies you have defined?

    Are they relative or absolute to your own domain?

    Are they other domains?
  8. Tracy Perry

    Tracy Perry Well-Known Member

    As Brogan said, yes you can - if you used a full path to them including the protocol.
    If you did it as a direct path to the images on the server then it uses the URL info you configured in your ACP.
    If you are leeching the smiles from another site that is not HTTPS then you will get insecure content (I had that issue with some people using some of mine until I replaced all smilies with another image that were hot linked from elsewhere).
  9. midego

    midego Member

    Server URL is https, how come its still loading over HTTP?
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Something other than XF would have to be involved if the smiley paths are relative.
  11. Tracy Perry

    Tracy Perry Well-Known Member

    If you have any caching active, you will probably need to flush it (on the server).
    If you are using CloudFlare (or similar) you will need to clear that cache.
    If you are using one of the caching add-ons (like BD-cache or similar) then you need to flush it also.

Share This Page