Jump to content

Assets not accessible - sometimes/mobile devices???


r2d2
 Share

Recommended Posts

Hi Everyone,

I've got a weird issue I haven't been able to figure out. Please help.

For some people who visit the site, they are not able to access any of the assets, like images. For example, this image, can you access it? If so, try on your mobile device (with WIFI turned off).

http://cms.psc.state.ga.us/site/assets/files/1018/eaton_1438x2100.150x200.jpg

Here's the code ...

<img alt="Commissioner <?php echo $page->title; ?>" src="http://cms.psc.state.ga.us<?php echo $page->heroImage->size(150, 200)->url; ?>"/>

Here's the page for this ...

http://www.psc.state.ga.us/content.aspx?c=/commissioners/chuck-eaton/

... or look at it through here but it's not embeded within the main site ...

http://cms.psc.state.ga.us/commissioners/chuck-eaton/

Any thoughts to the issue?

Any help is very appreciated. Thanks.

Link to comment
Share on other sites

Even on desktop your images aren't acessible for me.

do you really have the absolute url in the path? Normally it's not needed. Could do it like this when the image is in your $page

<img alt="<?php echo $page->title; ?>" src="<?php echo $page->heroImage->size(150, 200)->url; ?>" />

or can do this, if image is not placed via your $page (e.g. in template file?)

<img src="<?php echo $config->urls->templates?>your/path/to/image.jpg"
Link to comment
Share on other sites

The reason the absolute URL is needed is because I'm pulling the content generated from the ProcessWire site into another site and the other/host site doesn't have those assets.

Here's the page in the ProcessWire site ...

http://cms.psc.state.ga.us/commissioners/

And here is one of the assets:

http://cms.psc.state.ga.us/site/assets/files/1018/eaton_1438x2100.jpg

I did verify that it exists in that location.

I just can't figure out why some people have no problems seeing the assets while other do. I'm running this on Ubuntu 64-bit.

Link to comment
Share on other sites

One of the logs is saying:

File does not exist: /var/www/cms/images_new, referer: http://cms.psc.state.ga.us/commissioners/chuck-eaton/

What is images_new? Where did that come from?



Sounds to me like the cms subdomain is not accessible outside your network which is why you can't access it on your mobile device and we can't access it at all.

My desktop is outside the network. I'm not VPN'd or anything. And it works there.

If my iPhone uses WIFI, I can see the images. If I turn off WIFI, I can no longer see them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...