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
Comment #1
chrisb222 commentedI had the same problem. I fixed it by removing $base_url from line 627.
Comment #2
kjl commentedLine 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.
Comment #3
Eric Scouten commentedchrisb222, 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.
Comment #4
gordon commentedI 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.
Comment #5
gordon commentedI 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.
Comment #6
(not verified) commented