We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Error

Mixed Content when using SSL on Perch admin pages

I'm using a SSL cert on Perch admin pages and I'm getting warnings about loading mixed content. It appears to be that Perch is still using http:// for some items. For example, here's an item from the browser console log:

Mixed Content: The page at 'https://sds.dev/admin/addons/apps/perch_blog/edit/?id=103' was loaded over HTTPS, but requested an insecure script 'http://sds.dev/admin/core/inc/js_lang'. This request has been blocked; the content must be served over HTTPS.

I have put this line in my config file already:

define('PERCH_SSL', true);

Perch 3.0.14

What else do I need to do?

Kirk Roberts

Kirk Roberts 0 points

  • 1 year ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show us your diagnostic report?

Perch: 3.0.14, PHP: 7.1.12, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.14), assets (3.0.14), categories (3.0.14), perch_blog (5.5.1), perch_forms (1.9.1), perch_gallery (2.8.9), perch_mailchimp (3.1)
App runtimes: <?php // include(PERCH_PATH.'/core/apps/content/runtime.php'); // include(PERCH_PATH.'/core/apps/categories/runtime.php'); // include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); // include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); // include(PERCH_PATH.'/addons/apps/perch_forms/runtime.php'); // include(PERCH_PATH.'/addons/apps/kirk_admin_links/runtime.php'); $apps_list = [ 'perch_gallery', 'perch_blog', 'perch_forms', 'kirk_admin_links', 'perch_mailchimp' ]; ?>
PERCH_LOGINPATH: /admin
PERCH_PATH: /Users/kirkroberts/Work/Codebases/strategicdesignstudio.com/public_html/admin
PERCH_CORE: /Users/kirkroberts/Work/Codebases/strategicdesignstudio.com/public_html/admin/core
PERCH_RESFILEPATH: /Users/kirkroberts/Work/Codebases/strategicdesignstudio.com/public_html/admin/resources
Image manipulation: GD Imagick
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
REQUEST_URI: /admin/core/settings/diagnostics/
DOCUMENT_ROOT: /Users/kirkroberts/Work/Codebases/strategicdesignstudio.com/public_html
HTTP_HOST: sds.dev
Drew McLellan

Drew McLellan 2638 points
Perch Support

That should be fine. Interestingly the error doesn't have the .php file extension. Are you doing something to remove extensions? If so, you need to exclude your Perch folder from that.

That was it, thanks! Had an overly-eager extension removal rewrite.