Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Images inaccessible sporadically  (Read 243 times)

Offline bmather9

  • xtreemhost Member
  • **
  • Posts: 6
    • View Profile
  • Hosting Username: xth_10121065
Images inaccessible sporadically
« on: February 12, 2012, 03:39:03 PM »
I have a wordpress site with some images that are used as background sections of my pages.  Sometimes they load perfectly fine, other times they won't load. 

I've tried everything on the wordpress side to fix this but now I think it's something to do with the hosting.  I've noticed that when the images are working I can navigate to them directly; for example: http://offcolor.xtreemhost.com/wp-content/themes/adhesive/images/img01.jpg

But when the images are not working, trying to navigate to them directly gives me a 403 error. 

I also tried hosting one of the images elsewhere and linked to it.  After doing that, when the images stopped working, the one that I had hosted somewhere else continued to display properly, while the others did not. 

What could be causing this strange behavoir?

Offline glenn_admin

  • Administrator
  • xtreemhost Ultrafan
  • *****
  • Posts: 3031
    • View Profile
Re: Images inaccessible sporadically
« Reply #1 on: February 12, 2012, 11:10:07 PM »
The fact that they are giving a 403 error when calling them directly is normal (to prevent hotlinking). Did you try using a smaller background image? Maybe the execution time to load the website exceeds the maximum...

No support by PM please, only send me a PM if I asked you to do so.

Offline bmather9

  • xtreemhost Member
  • **
  • Posts: 6
    • View Profile
  • Hosting Username: xth_10121065
Re: Images inaccessible sporadically
« Reply #2 on: February 12, 2012, 11:27:17 PM »
The total size of the 6 background images combined is about 7kb.  Is it possible that is too much?  Seems reasonable to me. 

The site is http://www.offcolor.co.cc/ if you want to check it out.  Totally hit or miss if you get the background pics or not.  If it works, you'll notice a black bar behind the text at the top of the page. 

Offline glenn_admin

  • Administrator
  • xtreemhost Ultrafan
  • *****
  • Posts: 3031
    • View Profile
Re: Images inaccessible sporadically
« Reply #3 on: February 12, 2012, 11:34:36 PM »
If your image is hosted on the subdomain, you can't use it in your co.cc domain. You need to make sure that all images are hosted in the same htdocs folder from where you're calling them.
No support by PM please, only send me a PM if I asked you to do so.

Offline bmather9

  • xtreemhost Member
  • **
  • Posts: 6
    • View Profile
  • Hosting Username: xth_10121065
Re: Images inaccessible sporadically
« Reply #4 on: February 12, 2012, 11:39:14 PM »
I don't have any subdomains, hence only 1 htdocs folder. 

I did do some messing around with the .htaccess file that was in the root.  I ended up removing it or maybe it kept disappearing after I tried editing it?  Either way its not there anymore.  Could this be the problem? 

I still have .htaccess file inside my htdocs folder its contents:

Quote
# BEGIN WordPress
<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

ErrorDocument 503 http://www.offcolor.co.cc/error/503.html
ErrorDocument 502 http://www.offcolor.co.cc/error/502.html
ErrorDocument 505 http://www.offcolor.co.cc/error/505.html
ErrorDocument 401 http://www.offcolor.co.cc/error/401.html
ErrorDocument 500 http://www.offcolor.co.cc/error/500.html
ErrorDocument 403 http://www.offcolor.co.cc/error/403.html
ErrorDocument 400 http://www.offcolor.co.cc/error/400.html
ErrorDocument 408 http://www.offcolor.co.cc/error/408.html
ErrorDocument 501 http://www.offcolor.co.cc/error/501.html
ErrorDocument 405 http://www.offcolor.co.cc/error/405.html
ErrorDocument 415 http://www.offcolor.co.cc/error/415.html
ErrorDocument 404 http://www.offcolor.co.cc/error/404.html
ErrorDocument 504 http://www.offcolor.co.cc/error/504.html

php_value display_errors on
php_value error_append_string none

Offline glenn_admin

  • Administrator
  • xtreemhost Ultrafan
  • *****
  • Posts: 3031
    • View Profile
Re: Images inaccessible sporadically
« Reply #5 on: February 12, 2012, 11:42:09 PM »
I see, you have PARKED the co.cc domains, while you have to ADD them instead (which will create separate htdocs folders). Please try this and your images will show up.
No support by PM please, only send me a PM if I asked you to do so.

Offline bmather9

  • xtreemhost Member
  • **
  • Posts: 6
    • View Profile
  • Hosting Username: xth_10121065
Re: Images inaccessible sporadically
« Reply #6 on: February 21, 2012, 10:26:11 PM »
So after watching this problem for a while now, it seems to have been corrected by removing the parked domains.  I think I was simply using the parked domains incorrectly.  For now I'm happy with it working the way it is, but maybe in the future I'll play with the domains to try to learn how to use them properly. 

xtreemhost Forums

Re: Images inaccessible sporadically
« Reply #6 on: February 21, 2012, 10:26:11 PM »