We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46283
    • 7 Posts
    Quote from: BobRay at Mar 02, 2015, 06:50 PM
    Try deleting all files in the core/cache directory. There may be an image cache that clearing the MODX site cache doesn't affect.

    Can you paste the code that displays the image?

    Code is trivial:
    <div class="wrapper">
      <figure class="latest overlay"> 
         <img src="/assets/templates/rpf/images/demo/backgrounds/1.png">
      </figure>
    </div>


    For now this problem is with every image on site.

    I don't see core/cache directory. There is only assets/cache directory.


    • discuss.answer
      • 13226
      • 953 Posts
      Is it possible that you forgot to add the "base href" tag in the header of your template ?

      <!DOCTYPE HTML>
      <html>
      <head>
      <meta charset="utf-8">
      <title>[*pagetitle*]</title>
      <base href="[(site_url)]">
      </head>
      <body>
      [*content*]
      </body>
      </html>


      A tip:

      Change:
      <img src="/assets/templates/rpf/images/demo/backgrounds/1.png">

      Into:
      <img src="[(site_url)]assets/templates/rpf/images/demo/backgrounds/1.png">

      Or:
      <img src="[(base_url)]assets/templates/rpf/images/demo/backgrounds/1.png">


      If you have the base href tag in the header you only need:
      <img src="assets/templates/rpf/images/demo/backgrounds/1.png">


      Any change you make to any document in the manager will automatically clear the sites cache files. So simply open the homepage and save it - log out and then close all instances of your browser.

      Re-open the browser, ensure the browser cache has been properly cleared and then open the website (front end).

      BobRay
      Try deleting all files in the core/cache directory.
      No worries, core/cache is Revo not Evo. [ed. note: iusemodx last edited this post 9 years, 2 months ago.]
        • 46283
        • 7 Posts
        Quote from: iusemodx at Mar 02, 2015, 10:55 PM

        Change:
        <img src="/assets/templates/rpf/images/demo/backgrounds/1.png">

        Into:
        <img src="[(site_url)]assets/templates/rpf/images/demo/backgrounds/1.png">

        Or:
        <img src="[(base_url)]assets/templates/rpf/images/demo/backgrounds/1.png">


        Thats works!!! Thanks a lot!
        • discuss.answer
          • 46283
          • 7 Posts
          Sorry, I found that it is my host issue. Topic closed.
            • 46886
            • 1,154 Posts
            Ok good glad there is a solution.