• hi all
    im trying to run a wordpress based web. and i getting the following error. the page is loading but not loading properly.i can load the installation page properly.but cannot load the login page. what would be the solution for it? please help

    Mixed Content: The page at 'https://blog.wiz.us5.ircnow.org/wordpress/' was loaded over HTTPS, but requested an insecure script 'https://blog.wiz.us5.ircnow.org/wordpress/wp-includes/js/wp-emoji-release.min.js?ver=5.5.1'. This request has been blocked; the content must be served over HTTPS.
    d @ (index):18
    (anonymous) @ (index):18
    (anonymous) @ (index):18
    (index):34 Mixed Content: The page at 'https://blog.wiz.us5.ircnow.org/wordpress/' was loaded over HTTPS, but requested an insecure stylesheet 'https://blog.wiz.us5.ircnow.org/wordpress/wp-includes/css/dist/block-library/style.min.css?ver=5.5.1'. This request has been blocked; the content must be served over HTTPS.
    (index):35 Mixed Content: The page at 'https://blog.wiz.us5.ircnow.org/wordpress/' was loaded over HTTPS, but requested an insecure stylesheet 'https://blog.wiz.us5.ircnow.org/wordpress/wp-content/themes/twentytwenty/style.css?ver=1.5'. This request has been blocked; the content must be served over HTTPS.
    (index):39 Mixed Content: The page at 'https://blog.wiz.us5.ircnow.org/wordpress/' was loaded over HTTPS, but requested an insecure stylesheet 'https://blog.wiz.us5.ircnow.org/wordpress/wp-content/themes/twentytwenty/print.css?ver=1.5'. This request has been blocked; the content must be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://blog.wiz.us5.ircnow.org/wordpress/' was loaded over HTTPS, but requested an insecure script 'https://blog.wiz.us5.ircnow.org/wordpress/wp-content/themes/twentytwenty/assets/js/index.js?ver=1.5'. This request has been blocked; the content must be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://blog.wiz.us5.ircnow.org/wordpress/' was loaded over HTTPS, but requested an insecure script 'https://blog.wiz.us5.ircnow.org/wordpress/wp-includes/js/wp-embed.min.js?ver=5.5.1'. This request has been blocked; the content must be served over HTTPS.

    also i have added the following lines in wp-config.php

    define( 'WP_SITEURL', 'https://blog.wiz.us5.ircnow.org/wordpress' );
    define( 'WP_HOME', 'https://blog.wiz.us5.ircnow.org/wordpress' );
    define( 'WP_INCLUDES_URL', 'https://blog.wiz.us5.ircnow.org/wordpress/wp-includes' );
    define( 'WP_CONTENT_URL', 'https://blog.wiz.us5.ircnow.org/wordpress/wp-content' );
    define( 'WP_PLUGIN_URL', 'https://blog.wiz.us5.ircnow.org/wordpress/wp-content/plugins' );
    $theme_root = WP_CONTENT_DIR . '/themes';

    thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Install the plugin “better search replace”. Then, in all tables, search for https://example.com and replace with https://example.com.

    There was no need to add those lines to wp-config.php.

    Thread Starter koustab

    (@koustab)

    hi
    thanks for your reply. i cannot install any plugin as i dont have any access as the page is not loading at all..
    thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Start by removing (or just commenting out) those lines you added in wp-config.php, then see if you can login with an http connection rather than an https one.

    Thread Starter koustab

    (@koustab)

    nope its the same issue. =(

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Did you also edit .htaccess or add any SSL-related plugins? There are many redirects happening.

    Thread Starter koustab

    (@koustab)

    i havent done anything with .htaccess and also as i said its a new installation so cannot even had a chance to install any plugins

    thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If this is a new installation without any content, I’d blow it all away (including the database and the .htaccess file) and start again. Rather that try to fix, it should be a 5 minute job to clean and reinstall.

    If your hosts offers some installation thing (e.g., bitnami, softaculous, cpanel installer, etc.), skip that and do it the “right way“.

    Thread Starter koustab

    (@koustab)

    hi steven
    its a vps so i have configured the httpd also its runs on openbsd. and also i have installed it twice already but same error.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Did you remove all files in /wherever/you/installed/wordpress (including the hidden ones) and drop the database before reinstalling?

    If so, there’s something wrong with your httpd and/or PHP setup, which is outside the scope of this forum.

    I don’t know if it will help, but this is the VirtualHost entry for my site, on a CentOS 7 VPS: https://gist.github.com/sterndata/55bac4f1d833421203cff7816e2f5276

    Thread Starter koustab

    (@koustab)

    hi i will have a look. thanks for your help

    regards

    Thread Starter koustab

    (@koustab)

    hi

    solved it

    if (isset($_SERVER[‘HTTP_X_FORWARDED_PROTO’]) && $_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’)
    $_SERVER[‘HTTPS’] = ‘on’;

    added these lines in wp-config.php

    and
    added the following line in the section http protocol https {
    after {

    match request header append “X-Forwarded-Proto” value “https”

    and bingo!

    thanks for your help again
    kou

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Mixed content’ is closed to new replies.