Having trouble... images that I try to use while creating a page won't show up. I've used:

HTML full:
<img src="http://domain.com/sites/default/files/images/img.jpg">

HTML short:
<img src="sites/default/files/images/img.jpg">

BBCode full:
[img]http://domain.com/sites/default/files/images/img.jpg[/img]

and

BBCode short:
[img]sites/default/files/images/img.jpg[/img] 

Yes, I have the bbcode module installed.

Any suggestions on what I can try?

Thanks,
~DH

Comments

nj74’s picture

I am also having this problem. What gives? The images only show when I promote to front page.

decibel.places’s picture

check all your permissions (especially image module => view original images)

and settings on all image modules you are using

and permissions (chmod) on the images directory

can you give a working url?

~are you netsperienced? /\_][_][_/\ Reliable Web Hosting - cheap!

idcm’s picture

I had the same issue and was about to reply and ask for help. I tried the suggestions provided above but no luck. Then suddenly, after dragging and dropping the image in and out of the image directory several times (trying other directories), it worked.

I have no idea what occurred. I also was using the html short version you referenced. I am guessing it has something to do with my local development environment.

If anyone else has experienced this, please share.

decibel.places’s picture

I believe that in certain circumstances, the ACL for images created by php code will onhy display the images in that directory with php with the proper permissions.

Attempting to access the image directly by URL will return an error message.

~are you netsperienced? /\_][_][_/\ Reliable Web Hosting - cheap!

idcm’s picture

The images are already created. it is a matter of having the server recognize they are there or access them so they are seen on the page. I am using straight html in the node so that code should pass straight to the browser, right? An html node isn't processed by the PHP "engine" - right?

The windowsXP-based localhost dev environment I am using doesn't seem to have the ability to set permissions like my linux server production environment. Besides, it did eventually work for some odd reason. Also, the images in the themes directory (called by css) show up just fine.

If you have any suggestions regarding the process of setting permission in my windows environment, that would be cool. thanks

decibel.places’s picture

I meant the images are uploaded with php, not actually created. In some circumstances these type of images are not accessible directly, only through php.

Sounds like you are just ftp'ing the images to your filesystem - that should work, I sometimes ftp images to my files dir so I can link to them elsewhere.

I usually install the FCKeditor and use it to edit the body of nodes. You need to enable the php connector to upload images. Of course, I sometimes need to edit its output in source view, but I find it is efficient for inserting images.

Two other options would be first create the image as an image type node, then reference it in the html node. You could also attach the image to the html node, and link to the uploaded image in the html node - you will probably want to disable listing it as an attachment.

~are you netsperienced? /\_][_][_/\ Reliable Web Hosting - cheap!