HI,

I've been struggling with an major issue for a drupal site that I'm putting togheter for a small business. While developing on my localhost it all worked fine but when putting the site the production server. Thing's aren't working as they suppose to.

The problem are with Images. I can use Ckfinder to upload images to the site, but they aren't displayed on the page.

Same for the logo. When uploading the image, it's placed under sites/default/files/images and the whole Url is shown when checking the code with firebug.

I've checked the BaseUrl, Konfiguration, .htaccess file but cannot find what the issue are.
I'm using One.com as the webbhost.

Anyone that had the same issue that could point me in the right direction. Cause right now I'm clueless and stock in this issue, it more or less put me on hold putting this site public.

Thanks.

Comments

jaypan’s picture

Look at the HTML source to see the actual output. You will probably have to update the paths manually.

Contact me to contract me for D7 -> D10/11 migrations.

sreyas’s picture

When you are doing the developement on the localhost you are probably doing it on some folder say folder name "drupal"

Then your local url would be http://localhost/drupal/

So the ckeditor insert the file url as /drupal/sites/default/files/filename.gif

But when you take this same site to a live domain, you put all the drupal files in the public_html folder and your site url becomes http://www.sitename.org/ , but the /drupal folder inserted by ckeditor stays in the datbase. So the url used for images become http://www.sitename.org/drupal/sites/default/files/filename.gif which is wrong. You just need to edit content and update the url as
http://www.sitename.org/sites/default/files/filename.gif

Please try this and let us know

------------------
Ciril Sreedhar
Sreyas IT Solutions
Server Administration | Web Designing | Web Programming

tmms’s picture

I have a similar problem, first images were not displaying but then I solved uncommenting the Rewrite Base / line in the .htaccess
But now I have the logo which has disappear and I cannot access the pdf files uploaded. Anyone experiencing the same problem?
I think mine is an .htaccess problem because even if I try to access the resource via URL it gives me a 404 page.
Note: my website was running online on a testing host, the problems showed when I switched from 7.10 to 7.12 and I moved to the definitive host

tmms’s picture

I solved my problem, permission on folders were messed up, make sure folders are set to 755 and files to 644!