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
Comment #1
chrislynch commentedThis has continued to work for me on two production servers.
How do I get the code committed to the main project?
Comment #2
chrislynch commentedStill got no idea how to commit this patch - sorry!
Maybe putting this unassigned will help get some attention?
Comment #3
ontwerpwerk commentedis this still active? does it also apply to drupal 4.7?
Comment #4
ontwerpwerk commentedComment #5
ontwerpwerk commentedfile management seems to work in the current version, support for the old modules is minimal at the moment,