Https problems with css/js files

hi!
i use OJS 3.4.0.6, try to install.
i change base_url in config.inc.php to https (its was http), but anyway all css/js files have href = 'http://…".
In browser console:

Mixed Content: The page at ‘’ was loaded over HTTPS, but requested an insecure stylesheet ‘’. This request has been blocked; the content must be served over HTTPS.

Please help me.
2024-09-01_17-36

Hi Chingis,you can try to clear template caches or change theme set

Thank you for answer, i clear both cache, and change background color (and press save button).
Same problem…
2024-09-02_14-13

Hi @Chingis

You can try to apply this method, edit the file lib/pkp/classes/core/PKPRequest.inc.php to change this line:

$_this->_protocol = (!isset($_SERVER['HTTPS']) || strtolower_codesafe($_SERVER['HTTPS']) != 'on') ? 'http' : 'https';

to this:

$_this->_protocol = (!isset($_SERVER['HTTPS']) || strtolower_codesafe($_SERVER['HTTPS']) != 'on') ? 'https' : 'https';

In some cases this method works.

Regards
Almadani

1 Like

Thank you, Muhammad, now all is ok :slight_smile: