I have added the image module, I have been trying for a day and a half to add an image to a page. I can only ever see the broken link red cross.

I have tried many ways - nothing seems to work.

My site is hosted by a hosting company.

I would appreciate any help - have to hand over to a client in 2 days.

Comments

Hetta’s picture

Kimster’s picture

Many thanks Hetta - but not resolved problem - I believe I understand more now, I am now using TinyMCE and IMCE, same problem, I have posted on the media and document management forum:

"Images upload fine but do not display - if I try to access just the image with the browser I get server 500 error.

I suspect that my problem is ownership of the htaccess file in the files directory. I cannot change permissions/content or delete it via ftp. I have tried changing it with php script, it won't have that either.

My host are saying they won't change it for me.

So the question is - can I change this via some other method within Drupal (preferred solution), do I need to find another hosting company, or, is there a workaround?"

jaime_pomales’s picture

Have you checked your "input format"? It is directly below the node body textarea. If you have it set to "Filtered HTML" your images will be filtered out.

Select "Full HTML"

Filtered HTML

* Web page addresses and e-mail addresses turn into links automatically.
* Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
* Lines and paragraphs break automatically.

PHP code

* You may post PHP code. You should include <?php ?> tags.

Full HTML

* Web page addresses and e-mail addresses turn into links automatically.

Kimster’s picture

Yes I have full html selected.

Thanks tho

Hetta’s picture

OK, I just noticed that on my own install, images only display for user 1 if I have not enabled the core upload module That's on a vanilla 5.x-2.x-dev ...
Could that be your problem?

Kimster’s picture

Seems to be the same whether enabled or not.

lejon’s picture

I have i18n module installed and that prevents me from seeing any images. When I uninstall it I can see them. Is that your problem?

If it is, does anyone know a solution?!

Augustin’s picture

Project: Image » Internationalization
Component: image.module » Code

Hi,

I have the same problem http://drupal.org/node/222155

The problem is from the i18n module, it is changing the link path of your images according to their languages.

so if your images are in files/images/, i18n will change the path in yourlanguange/files/images, but actually this directory doesn't exist so there are no images shown.

I still didn't have any answer how to prevent the image path to be changed.

I will come back if I found something.

Bye.

Hetta’s picture

marked http://drupal.org/node/222132 as duplicate.

Kimster’s picture

At long last have found solution - my hosting company reset the owner of the htaccess files I was then able to modify it.

Thanks everyone

lejon’s picture

Glad you got it working Kimster.

However, problem is same for the rest of us. Is there a fix for still being able to display images held in the images folder after installing Internationalization module?

Kimster’s picture

I don't know anything about the internationalization module.

In case it's the same thing and I didn't make it clear, this is the content of my .htaccess file in the files directory:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
#Options None
#Options +FollowSymLinks

As a quick test you could just delete htaccess and see if that works (need to put it back as it's a security thing).

Cheers

lejon’s picture

Have opened new issue on this topic as Kimster's issue is now solved.

http://drupal.org/node/224740

Kimster - feel free to close this discussion!

Kimster’s picture

Status: Active » Closed (fixed)
eatanicecream’s picture

I had the same problem as Kimster and solved it by commenting out the following line in my .htaccess file:

Options +FollowSymLinks

Kimster’s picture

Status: Closed (fixed) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.