We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42596
    • 45 Posts
    Hey guys...I hope this is being posted in the correct place but here goes...
    (Admins feel free to move this topic somewhere more appropriate if this is the case)

    So I started building a website for a client a while ago...like months ago...the guy I work for is a designer so I'm essentially working for his client. Long story short his client couldn't pay him or something like that and development of the site haulted despite the fact the site was 99% complete.

    Now, months later I guess the client has had some money come in because I have been asked to resume work on the site.

    My problem is that randomly the site seems to be denying itself resources?

    In chrome I get this error in the console:
    Failed to load resource: net::ERR_INSECURE_RESPONSE https://www.wheeldeal.co.nz/assets/css/bootstrap.min.css

    ...this is for everything...CSS, Javascript, images...evrything...

    It seems that it is trying to get it all through https and I dont need it to and have no idea why it is doing this?

    I have googled the problem a bit and it seems it might have something to do with .htaccess but I just have the standard .htaccess file that comes with modx...the only things that arent commented out in the htaccess file are the following:

    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

    Apart from that I was wondering if there was a setting in the manager of MODx that might be causing this?

    The website I'm dealing with is http://www.wheeldeal.co.nz/

    Take a look for yourself and you should be having the same problem...could it possibly be the host at all?

    Thanks!

    cleanboy

    This question has been answered by Jako. See the first response.

      • 28042 ☆ A M B ☆
      • 24,524 Posts
          <base href="https://www.wheeldeal.co.nz/" />


      somewhere along the line it's being set to https. Check the System Settings.

      https://www.markhamstra.com/modx/2012/07/3-tips-for-serving-a-modx-site-over-ssl/
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • discuss.answer
        • 13428 ☆ A M B ☆
        • 1,031 Posts
        The value in the base href attribute is cached wrong for some reason. Replace the [[++site_url]] with [[!+site_url]] in there.
          • 42596
          • 45 Posts
          Quote from: Jako at Mar 01, 2016, 02:51 AM
          The value in the base href attribute is cached wrong for some reason. Replace the [[++site_url]] with [[!+site_url]] in there.

          Hey...so I changed the tag from [[++site_url]] to [[!+site_url]] and that worked...thanks a lot!