Search code examples
drupaldrupal-theming

Images not showing up on drupal test site


I have successfully installed CKeditor and am attempting to link some images. After many errors I got the path right but once saved the page still ends up blank and when going back to administer the basic page the image is no longer there nor a broken image link...? I put the image file in an images folder inside the files folder. I did notice that the image shows up in the wsiwyg editor when properly linked but still no luck.

Thanks for the help


Solution

  • If your drupal installation is in a subfolder (eg. http://localhost/drupal/) then the images won't work as they reference the root (/), which is in fact localhost (i.e. not where the images are).

    To fix it, edit sites/default/settings.php, uncomment the $base_url = statement and change it to eg. $base_url = 'http://localhost/drupal/';