With the latest CVS update, I'm no longer able to insert images. When I click "OK" in the popup dialog to insert the image, I get the broken image icon. Switching to HTML view, I see that the inserted URL is incorrect. Instead of <img src="image/view/343">, I get <img src="local.mn-leon.org/node/344/image/view/343"> (other attributes omitted for simplicity).

Comments

chrisb222’s picture

I had the same problem. I fixed it by removing $base_url from line 627.

kjl’s picture

Line 627 is the last line of the file htmlarea.module v 1.48 2004/08/14.

I'm getting broken images too, although the url is in the form of img src=image/view/123

doesn't preview either. appears unrelated to the node.module patch in the other thread.

Eric Scouten’s picture

chrisb222, perhaps you can clarify this patch? I grepped the entire htmlarea sourcebase (CVS as of 20 August) and found no reference to $base_url anywhere near line 627 of any file.

gordon’s picture

Assigned: Unassigned » gordon

I have been able to replicate this problem, My new web site seems to have this problem, and I think it is to do with what php returns in a wrong value for $_SERVER['HTTP_HOST'] which then conf_init is getting stuff wrong.

I am going to be doing more investigation tonight.

gordon’s picture

I found the problem, I needed to change the popups so that they would change the $_SERVER['PHP_SELF'] to '/index.php' like what you get from nornal drupal pages.

Anonymous’s picture