r2d2 Posted August 28, 2013 Share Posted August 28, 2013 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 More sharing options...
Manfred62 Posted August 28, 2013 Share Posted August 28, 2013 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 More sharing options...
r2d2 Posted August 28, 2013 Author Share Posted August 28, 2013 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 More sharing options...
Manfred62 Posted August 28, 2013 Share Posted August 28, 2013 Cross-Domain data requests?? Seems to be a problem with cross domain policy. Link to comment Share on other sites More sharing options...
r2d2 Posted August 28, 2013 Author Share Posted August 28, 2013 It's not a cross domain policy issue. You can try hitting the asset directly from the Apache web server and it doesn't work ... http://cms.psc.state.ga.us/site/assets/files/1018/eaton_1438x2100.jpg Well, it doesn't work my mobile device and some people can't access it from the desktop. The accessibility is not consistent. That's why I'm stumped. Link to comment Share on other sites More sharing options...
Soma Posted August 28, 2013 Share Posted August 28, 2013 I cannot access anything from that domain not matter what and where and with what. Looks like not a problem of PW. I would check the logs. Link to comment Share on other sites More sharing options...
adrian Posted August 28, 2013 Share Posted August 28, 2013 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. Link to comment Share on other sites More sharing options...
r2d2 Posted August 28, 2013 Author Share Posted August 28, 2013 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 More sharing options...
r2d2 Posted August 28, 2013 Author Share Posted August 28, 2013 Solved. It was a firewall issue. I can't believe how long that took to figure out. I appreciate all the help. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now