This took me 3 hours to figure out!!! Some serious debugging.

Line 301: $sp = $_SERVER["PATH_TRANSLATED"];

to
$sp = $_SERVER["SCRIPT_FILENAME"];

See:
http://www.zend.com/manual/reserved.variables.php

for more info

CommentFileSizeAuthor
#2 fckeditor.module.core.inc.patch544 bytespcdonohue

Comments

john t. haller’s picture

This should be patched in the FCKEditor package or, at the very least, noted on the main module page here. I had given up on FCKEditor a while back after spending hours trying to get image browsing to work. This change did the trick.

The full path to the file needing the change is:

/modules/fckeditor/ssip/core.inc

pcdonohue’s picture

StatusFileSize
new544 bytes

Thank you!

This was the exact problem I was struggling with, and I expect others as well (http://drupal.org/node/31375 for example)

A simple enough fix, does this really require a patch? Or does the change break other webservers? I don't know enough about this particular setting to say, but incase I've included a patch that I made against 4.6.5 using your fix.

Patrick

pcdonohue’s picture

Just to spell out what hanumani pointed out in the original post

From http://www.zend.com/manual/reserved.variables.php

'SCRIPT_FILENAME'

The absolute pathname of the currently executing script.

Note: If a script is executed with the CLI, as a relative path, such as file.php or ../file.php, $_SERVER['SCRIPT_FILENAME'] will contain the relative path specified by the user.

'PATH_TRANSLATED'

Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping.

Note: As of PHP 4.3.2, PATH_TRANSLATED is no longer set implicitly under the Apache 2 SAPI in contrast to the situation in Apache 1, where it's set to the same value as the SCRIPT_FILENAME server variable when it's not populated by Apache. This change was made to comply with the CGI specification that PATH_TRANSLATED should only exist if PATH_INFO is defined.

Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define PATH_INFO.

I'm pretty new to the Drupal community, so please forgive me if I'm just blabbing on about the obvious...

ontwerpwerk’s picture

Status: Reviewed & tested by the community » Closed (works as designed)

we'll update the ssip pacage for 4.7 soon