The code uses $_SERVER["PATH_TRANSLATED"] in function _fck_connector_get_real_path.
My Apache2 server was not returning a value for this.

I resolved this by adding an override parameter to the properties.inc file and then altering the function as follows:

function _fck_connector_get_real_path($path) {
$properties = _fck_connector_properties();
$separator = $properties['path_separator'];
if ($separator == '\\') {
$separator .= '\\';
}

if (!empty($properties['path_translated']))
{
$sp = $properties['path_translated'];
}
else
{
$sp = $_SERVER["PATH_TRANSLATED"];
}

$sp = substr($sp, 0, strpos($sp, 'modules'));
$sp = _fck_connector_remove_from_end($sp, $separator);

// rewrite path to replace context path
if ( !empty($properties['context_path']) && strstr($path, $properties['context_path'])) {
$path = substr($path, strlen($properties['context_path']) + strpos($path, $properties['context_path']));
}
if ( empty($path) ) {
$path = '/';
}
if ( !ereg('/$', $path) ) {
$path .= '/';
}
$sp .= str_replace('/', $separator, $path);
return $sp;
}

Comments

chrislynch’s picture

Status: Needs review » Reviewed & tested by the community

This has continued to work for me on two production servers.

How do I get the code committed to the main project?

chrislynch’s picture

Assigned: chrislynch » Unassigned

Still got no idea how to commit this patch - sorry!

Maybe putting this unassigned will help get some attention?

ontwerpwerk’s picture

is this still active? does it also apply to drupal 4.7?

ontwerpwerk’s picture

Status: Reviewed & tested by the community » Needs work
ontwerpwerk’s picture

Status: Needs work » Closed (won't fix)

file management seems to work in the current version, support for the old modules is minimal at the moment,