mfn_opts_get always returns http on httpS website, breaking httpS/SSL with mixed content error

Latest betheme + wordpress

Doing some debugging: 
mfn_opts_get( 'logo-img', THEME_URI .'/images/logo/logo.png' ); 

THEME_URI
https://test.com/wp-content/themes/betheme


the mufn_opts_get should return a httpS url and not a http url.

his is causing maltiple ssl issues with mixed content (non https content)

Comments

  • Hi,

    you probably uploaded images when http:// was activated. This is the reason why it is http:// now. You should switch to https:// and upload all media with https:// if you want to get this one. This is how it works.

    Thanks!
  • Well when the site is switched to httpS , the content should served via https, hence why there are server varibles set on HTTPS.

    Expecting people to reupload every image is rediculous.

    I had a look at the database tables and there are no HTTP or HTTPS just relative urls.

    Were exactly does the mfn_opts_get set the http url ?


  • No, you're wrong. This is not how WordPress works. Maybe it's ridiculous but we are not the owners of WordPress.

    mfn_opts_get() is stored in the database but it's serialized so you won't see any content. But you can use Mfn CB Migrate Tool to change paths.
  • Yeah, hopefully with http2.0 being ssl, wordpress will finally go for // urls instead of http://

    Under which table and column the options are stored (serialized data) and under what key.

    Ill write my own decoder and encoder to change all the values to // from http://


  • It's wp_options table and betheme option_name. But like we wrote above, you can change those paths with the tool that we made. In previous message we gave you link to this tool.
  • edited October 2015
    Thanks for the help.

    Wrote my own conversion scripts to convert all the http:// urls of our various wordpress sites to protocol relative urls ( // )

    Information will be posted on our blog @ https://extremeshok.com

    Consider this closed.

This discussion has been closed.

This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.