1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

images not loading in site preview

Discussion in 'Plesk for Linux - 8.x and Older' started by crash0verride, Apr 26, 2007.

  1. crash0verride

    crash0verride Guest

    0
     
    Hi,

    I migrated 80 sites to plesk last night, but when I preview the sites in "Site Preview", some sites render fine, others do not have their pictures, and on some one them I get the following message:

    Code:
    ERROR: PleskFatalException
    Unable to resolve host name
    
    0: /usr/local/psa/admin/plib/common_func.php3:158
    	psaerror(string 'Unable to resolve host name')
    1: /usr/local/psa/admin/htdocs/sitepreview.php:14
    
    
    ERROR: PleskFatalException
    Unable to resolve host name
    
    0: /usr/local/psa/admin/plib/common_func.php3:158
    	psaerror(string 'Unable to resolve host name')
    1: /usr/local/psa/admin/htdocs/sitepreview.php:14
    
    ERROR: PleskFatalException
    Unable to resolve host name
    
    0: /usr/local/psa/admin/plib/common_func.php3:158
    	psaerror(string 'Unable to resolve host name')
    1: /usr/local/psa/admin/htdocs/sitepreview.php:14
    
    
    Has anyone else experienced this? Anyone any ideas?
     
  2. bonesadams

    bonesadams Guest

    0
     
    Hi,

    probably in your code the URL of the picture/s is something like:

    http://yourdomain.tld/image_folder/image.img

    and the domain is not pointed to the server .. then if you try the preview it will show the files that have links like image_folder/image.img or just image.img, but wont show you the files that have a domain in its URL.

    ...
    Unable to resolve host name
    ...
    This error is saying the same.

    Hope that helped you and hope a domain propagation is the only issue there. :)

    Cheers!
     
  3. crash0verride

    crash0verride Guest

    0
     
    I think it is to do with the way the previewing page handles reference paths for the CSS file and the images. When I add the IP to my hosts file and load the page in my bowser 90% of sites work perfectly.

    For anyone experiencing problems with the site preview I would suggest hand hacking your hosts file to bypass DNS.
     
Loading...