News:

Wondering if this will always be free?  See why free is better.

Main Menu

Need Help with Mixed Content in HTTPS Page!

Started by ambition87, September 29, 2017, 06:04:37 AM

Previous topic - Next topic

ambition87

My Forum (SMF 2.0.14) is www.whitephoenix.tk and i'm having problems with: "Mixed Content: The page at 'https://www.whitephoenix.tk/index.php?board=2.0'; was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/ui/1.10.3/jquery-ui.js';. This request has been blocked; the content must be served over HTTPS."
How can i fix this?
Best Regards.

Kindred

You will need to address https with any of your mods...  since smf, as a core, works fully https, your issue is related to one of your mods.
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

SMF doesn't use jQuery out of the box, so it is definitely a mod.

Unfortunately there's no easy way to know which.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

ambition87

Thank you for the replies, the mods i have installed on the forum are:

    - Google Analytics Code 1.5.1
    - Sitemap 2.2.0
    - SA Chat 1.0a1 Rev120
    - SimplePortal - Italian 2.3.5
    - AvatarSelect 1.2.1
    - reCAPTCHA for SMF 1.0.0
    - EU Cookie 1.3.1
    - Simple Audio Video Embedder 4.0.2
    - Add Social Media Icons To Profiles 1.2.0
    - SimplePortal 2.3.6.
    Anyone maybe knows what mod can cause the problem?
    Best Regards.

ambition87

News: Finally i found what causes the mixed content error in my https page: it's the Wrap Theme.
Infact, when i changed the theme to an other one, the error disappeared.
Now i have to check if there is an update for that theme, or maybe i have to install a new one...

Shambles

.. or find where the line "http://code.jquery.com/ui/1.10.3/jquery-ui.js" exists within the theme file(s) and change it?

ambition87

The problem is that i don't know where look to find the error, in the error console i see only that message, but don't know which file causes the error.
For now i'm running the default theme.

Arantor

The theme will have an index.template.php file, look in that.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

ambition87


Bob Perry of Web Presence Consulting

There is also a paid for mod from SMF Packs website that is geared for SEO related stuff with SMF© called SMFPacks SEO Pro that does a fairly good job of handling image related issues, I highly recommend it to my clients... Myself, and two of my clients are using it, as Arantor will tell you and I agree, SEO is a misnomer that folks take a bit too far... but I can attest to the fact that the search engines respond well and this module does a great job of managing the basics, such as META tags, META Keywords, and optimizing the incoming/outgoing url's the same way PrettyUrls does, but this has much more depth in features, functions, and statistics... well worth a modest yearly license fee.

;)
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Arantor

What does SEO have to do with this? Also, I personally wouldn't endorse SMF Packs for anything.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

ambition87

Quote from: Bob Perry of Web Presence Consulting on September 29, 2017, 11:18:21 AM
There is also a paid for mod from SMF Packs website that is geared for SEO related stuff with SMF© called SMFPacks SEO Pro that does a fairly good job of handling image related issues, I highly recommend it to my clients... Myself, and two of my clients are using it, as Arantor will tell you and I agree, SEO is a misnomer that folks take a bit too far... but I can attest to the fact that the search engines respond well and this module does a great job of managing the basics, such as META tags, META Keywords, and optimizing the incoming/outgoing url's the same way PrettyUrls does, but this has much more depth in features, functions, and statistics... well worth a modest yearly license fee.

;)
Thank's for the offer, but i'll have to pass!
I can't spend any money on this forum, cause i can't gain any money from it!
Infact, i have obtained a no profit license from Teamspeak (512 Slots), and i can't put donations links or Adsense Banners.
In the end, i made a fresh install of SMF installing all the Plugins and the Themes, to be sure to have no other conflict or problem with the Plugins/Themes.
Of course, i also restored the: Members, Messages, Categories, Boards and Calendar's Events Tables using phpmyadmin ;)

Kindred

Really should never mess with the database like that.
Either restore the ENTIRE database, or start fresh...  however, in terms of mods, the database doesn't really matter, except for the hooks, which can be removed via repair_settings.php

Because, I guarantee you that you missed many of the tables which are actually used for even those things that you say that you restored...  there are dozens of cross table relationships
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ambition87

Quote from: Kindred on September 30, 2017, 02:58:19 PM
Really should never mess with the database like that.
Either restore the ENTIRE database, or start fresh...  however, in terms of mods, the database doesn't really matter, except for the hooks, which can be removed via repair_settings.php

Because, I guarantee you that you missed many of the tables which are actually used for even those things that you say that you restored...  there are dozens of cross table relationships
Thank you for the note ^^
I can assure you (tested Yesterday), i didn't miss any other table, it depends on which mode or plugin installed that is connected with those tables.
If, for error, something is not working as it should (example: can't load the topics page or Boards/Categories), you can go to your Admin Section and use the tool to Optimize Database Table and everything will work smoothly ;)

Arantor

Optimise table... doesn't fix issues. It just cleans out unused space in the database.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

ambition87

Quote from: Arantor on September 30, 2017, 03:42:21 PM
Optimise table... doesn't fix issues. It just cleans out unused space in the database.
Ops, it was the tool "Find and Repair Errors" (i used both tools by the way).
Thank's for the correction anyway :)

Kindred

Find and fix errors can only do so much (and is more than likely to DELETE objects which don't match)

You say that you didn't miss a table, but I suspect that you are probably incorrect.

Heck, I know the database almost as well as any developer and I wouldn't try to copy over only specific tables.

And, no... most mods don't make any database changes... and, even if they do, having the extra info in the database doesn't hurt anything if there is no code to call it -- so, I lieterally can not conceive of a reason to do things piecemeal like you did....
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

I see at least two that look to have been missed.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

ambition87

Quote from: Kindred on September 30, 2017, 08:22:36 PM
Find and fix errors can only do so much (and is more than likely to DELETE objects which don't match)

You say that you didn't miss a table, but I suspect that you are probably incorrect.

Heck, I know the database almost as well as any developer and I wouldn't try to copy over only specific tables.

And, no... most mods don't make any database changes... and, even if they do, having the extra info in the database doesn't hurt anything if there is no code to call it -- so, I lieterally can not conceive of a reason to do things piecemeal like you did....

Many mods don't make any database changes, but Simple Portal and SA Chat add new tables to the database and i know this, cause i have those 2 mods installed on my forum.
I knew there was a risk of failure trying to import only some table, but in the end i tried and it was a success, especially after i used the Admin Tool "Find and Repair Errors".
Infact, i saved a copy of my old database and a copy of a new database after a fresh install, just in case i couldn't do what i said before in this post.
As i said before, i did this to be completely sure to have no more mixed content errors in HTTPS pages and cause i couldn't install the Pretty URL mod, due to an error on the install process on the old forum(with a fresh install, i could install that mod without any error message).
Ps.: I imported also, "Calendar" "Membergroups" and "Moderators" Tables, for a total of 7 Tables Imported, but i think "Calendar" and "Calendar_Holidays" tables are not essential at all and i didn't worry about importing the "attachments" table, cause i didn't have any attachment to save.
Every image is saved directly into the web server and served with [img] function.

Arantor

...I've been a member of the development team and I wouldn't attempt it piecemeal without a really good reason.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

Advertisement: