Home Forums Total Images disappear daily

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4005
    DmacHashThemes
    Participant

    Everyday between 10 p.m. and 10 a.m. USA Pacific time the only images that work on my Hash-Total wp site are Buttons, About Us, and the Counter parallax background. All others including site-branding logo, sliders, recipes, social icons, SiteOrigin wigets, show broken links. This is cyclical, spontaneous, and resolves itself every 10 a.m. without my intervention. This happens across all browsers and after clearing browser caches. Cannot find the cause.

    #4022
    DmacHashThemes
    Participant

    Success. Was able to reproduce the problem in a way that pointed to a plug-in called Adaptive Images that is intended to efficiently re-size images for mobile devices. It was probably added to an earlier version of the website that used a different theme. Disabled the plug-in and the problem did not reoccur at the usual time. Must have been in conflict with the Total theme’s own image re-sizing functions.

    #4500
    DmacHashThemes
    Participant

    Disappointing development. The problem of the social icons and nav menu arrows showing as broken links has returned. I have deactivated all unused plugins, and selectively deactivated every plugin in current use to test for some conflict. Every time I try this the icons return for a few hours and then revert to showing as broken links again.

    Please tell me how to fix this.

    #4532
    Hash
    Keymaster

    Hi,

    The theme does not have any problem. The problem should be either in the setting or the plugin or hosting you are using. So far when i checked your website, everything seems to be working good.

    #4538
    DmacHashThemes
    Participant

    As I have said, the problem is intermittent or cyclical. You just dropped in at a good time. It is not a problem with plugins because I have systematically deactivated them one at a time with no improvement. After a few hours the problem has always come back. Google Chrome Developer Console indicated a possible problem with CORS policy, so I added an “Access-Control-Allow-Origin” statement to .htaccess. So far it looks good but I won’t really know until many hours go by.

    #4539
    Hash
    Keymaster

    The CORS error occurs when the url of your site does not match with the url entered in the Settings -> General page’s WordPress url and site url fields. These field should contain this url

    #4540
    DmacHashThemes
    Participant

    Yes, that is how it is set.

    The Developer Console does not indicate a problem when the site is functioning properly, but when it breaks the error report references a series of items like this: “www.rananoshoots.com/:1 Access to Font at ‘http://rananoshoots.com/wp-content/themes/total/css/fonts/fontawesome-webfont.woff2?v=4.6.3’ from origin ‘http://www.rananoshoots.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.rananoshoots.com’ is therefore not allowed access.”

    Seems to indicate necessity for adding statement to .htaccess “Header set Access-Control-Allow-Origin “http://www.rananoshoots.com” in order to access fonts and icons. But again, I still won’t know if it is a permanent fix until many hours have passed. Your thoughts?

    #4562
    DmacHashThemes
    Participant

    Update: It has been 6 days since adding the Access-Control statement to .htaccess and the problem has not returned. I see now that there are discussions on various outside forums about how this has solved similar issues for others.

    I also see from the .htaccess contents below that the image cache is set to expire every 6 hours. Quite a coincidence since that is about how often the problem would reappear. I hope that sharing this will help everyone.
    >>>>>>>>>>>>>>>>>>>
    # BEGIN WordPress
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access plus 6 hours”
    ExpiresByType image/jpeg “access plus 6 hours”
    ExpiresByType image/gif “access plus 6 hours”
    ExpiresByType image/png “access plus 6 hours”
    ExpiresByType text/css “access plus 6 hours”
    ExpiresByType application/pdf “access plus 1 week”
    ExpiresByType text/javascript “access plus 6 hours”
    ExpiresByType text/html “access plus 10 minutes”
    ExpiresByType image/x-icon “access plus 1 year”
    ExpiresDefault “access plus 3 hours”
    </IfModule>
    Header set X-Endurance-Cache-Level “2”
    Header set Access-Control-Allow-Origin “http://www.rananoshoots.com&#8221;
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.