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.