humanmade / Custom-Meta-Boxes

Lets you easily create metaboxes with custom fields that will blow your mind.
522 stars 124 forks source link

Issues with SSL #454

Open pdubb-sauce opened 6 years ago

pdubb-sauce commented 6 years ago

Hi,

I understand this library is no longer in development, however I'm hoping someone can help me.

I'm having issues with CMB loading properly in a secured SSL environment. For some reason 3 CMB includes are not loading over https and instead stuck in http:

The 3 stylesheets id's are: cmb-styles-css, select2-css, cmb-jquery-ui-css

If anyone can point me in the right direction to get this corrected that would be awesome, thanks in advance.

mikeselander commented 6 years ago

@pdubb-sauce I'm a little lost myself on what could be causing this issue. We're using core WordPress functions to build the URL for loading the scripts and styles.

Are the JS files also causing mixed-content issues? Could you double-check that you've got the URL properly set with https in all applicable options rows?

pdubb-sauce commented 6 years ago

@mikeselander Yeah I'm baffled. The JS files for cmb and select2 are both loading over https.

Can you please elaborate a little more on the setting of https to all applicable options rows?

mcjwb commented 5 years ago

I know this is a bit old, but I just had this issue and I traced it back to a core option called "siteurl" stored in the database (wp_options table). Mine was not set to "https". changing this fixed the issue for me.