Support » Plugin: pageMash > Page Management » Fix for pagemash with HTTPS

  • For anyone using pagemash on a site that delivers HTTPS admin pages and HTTP site pages, the plugin admin pages won’t work properly. The items on the page will appear without any formatting because the CSS and JavaScript files are being blocked by browsers (blocked active mixed content). This seems to be caused by using get_option(‘siteurl’) for the WP_CONTENT_URL.

    A quick solution is to edit line 60 of pagemash.php:

    $pageMash_url = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__));

    Bypassing WP_CONTENT_URL and using plugins_url() instead makes sure that the files are included using the correct scheme:

    $pageMash_url = plugins_url('', __FILE__ );

  • The topic ‘Fix for pagemash with HTTPS’ is closed to new replies.