Jump to content


Member Since 24 Aug 2004
Offline Last Active Jul 06 2011 10:49 PM

#965 Text Editor Bug

Posted by icarrion on 19 November 2004 - 02:12 PM

When inserting an image using the text editor, no images display.

I isolated the problem to link 41 on page sohoadmin/program/modules/page_editor/text_editor_newImge.php that says..

$directory = "$doc_root/images";

$doc_root is empty.

Replaceing that line with the following fixed it.

$directory = $_SERVER['DOCUMENT_ROOT']."/images";

Hope this helps!

Oh and BTW I'm on 4.7 latest as of 4 days ago.