hello,

I get this error message.
According to the manual you get this message if you are using the built in file manager but im using imce.
I find this wierd.

Roelof

CommentFileSizeAuthor
#9 config.php modified7.68 KBJorrit

Comments

Artur Formella’s picture

Status: Active » Postponed (maintainer needs more info)

Did you set "File browser type:" to IMCE? Does this error occur in popup?
I think that IMCE show this message.
Could you give us steps to reproduce this bug?

rwobben’s picture

I did now a new install because i de-installed everything.

What i did was this :

I downloaded the FCKE module (6.x-2.0-alpha1).
I downloaded the fcke files (2.6.3)
I put this in the fcke dir of the fcke module.
I downloaded the imce module (6.x-1.1)

After that i uploaded everything to the webserver.
I enabled everything.

After that i maked a profile for FCKE.
and in the advanced i set the file browser type to imce.

Then i make a new page.
I press the image button.
Choose a image.
Pressed oke.

And now no error message , wierd.

But when i enable quick uploads.
then i choose a image.
Press "send to the server"
and the error appears.

And in the status report i found this :

You are using a feature that requires manul integration into config.php. Read instructions about enabling built-in file browser and add "require_once ..." statement in editor/filemanager/connectors/php/config.php.

but i don't use the built-in file browser.

Roelof

Roelof

Artur Formella’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Postponed (maintainer needs more info) » Active

Yes. FCKeditor file browser / connector is used in two situations:
- when built-in file browser is enabled
- when quick uploads are enabled

We need to simplify it. Wwalc have already added it to the TODO list (http://drupal.org/node/277657).

rwobben’s picture

Oke,

As i understand it :

I have to the steps which the status page tell me to do ?

Roelof

mgifford’s picture

I just got this error message too. Realized that there was a spelling error and wanted to report it. There is a missing A in the word manual, should look like this:

You are using a feature that requires manual integration into config.php. Read instructions about enabling built-in file browser and add "require_once ..." statement in editor/filemanager/connectors/php/config.php.

Now I've got to figure out if this feature can be used in a multi-site install.

Mike

wwalc’s picture

Status: Active » Fixed

Actually this issue has been already fixed: #323170: You are using a feature that requires $cookie_domain to be set, but it is not set in your settings.php..

Thanks for the info about a typo in the instruction.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

christo’s picture

Version: 6.x-2.0-alpha1 » 6.x-2.1
Status: Closed (fixed) » Needs work

This issue started messing with me when I updated the FCKeditor module, including the underlying PHP FCKeditor a few days ago. I too had the "cookie_domain" issue at first, but the error message from the FCKeditor module tells exactly what to do there. I pinned this further error down today, the one reporting "You are using a feature that requires manual integration into config.php (either built-in filebrowser or quick uploads are enabled in the sysadmin profile). Read instructions about enabling built-in file browser and add "require_once ..." statement in editor/filemanager/connectors/php/config.php."

The problem is that something must have changed in the FCKeditor config.php (sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php) file that broke a sanity check being done by the function _fckeditor_requirements_filemanager_config_check($profile_name) function in sites/all/modules/fckeditor/fckeditor.install file for the Drupal FCKeditor module. That function is called when an FCKeditor module profile (Administer>Site configurat>FCKeditor>Profile>edit>File browser settings) is set to have either the File browser type set to "Built-in file browser", or "Allow quick uploads" is set to Yes.

With the recent FCKeditor php code (not the Drupal module, the separate non-Drupal-specific PHP code from SourceForge), the filemanager/connectors/php/config.php file will not pass the sanity tests in the Drupal FCKeditor module fckeditor.install file function _fckeditor_requirements_filemanager_config_check() where it is ensuring that the UserFilesAbsolutePath and ForceSingleExtension settings have been set. Refer to sites/all/modules/fckeditor/fckeditor.install to see the code.

The _fckeditor_requirements_filemanager_config_check() function is looking to see a line containing "filemanager.config.php" in between the $Config['UserFilesABsolutePath'] = and $Config['ForceSingleExtension'] = setting lines. I chose not to modify the code in the Drupal module fckeditor.install file, for obvious reasons, but rather fixup the config.php file in sites/all/modules/fckeditor/fckeditor/editor/filemanager/connector file.

Here is a snippet from the config.php file I hacked to make the Drupal FCKeditor install function happy. I just added the middle part

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/home/username/drupal6/uploads' ;

// Addition to fix issue with Drupal FCKeditor module function in fckeditor.install code:
// ***************** ADD THIS LINE HERE, ** BETWEEN ** $Config['UserFilesAbsolutePath'] and $Config['ForceSingleExtension']
// ***************** if you get odd messages about You are using a feature that requires manual integration into config.php....
// when you enable built-in filebrowser or quick uploads in ANY profile for Drupal FCKeditor module (found in v2.6.6)
$Config['required_once'] = "filemanager.config.php";

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;

In any case, just make sure you have the string "filemanager.config.php" stuck between the UserFilesAbsolutePath and ForceSingleExtension setting lines in the config.php line, and you're good to go with the existing Drupal FCKeditor install code in fckeditor.install

Jorrit’s picture

StatusFileSize
new7.68 KB

I don't understand your comment. You're saying that you are adding:

$Config['required_once'] = "filemanager.config.php";

Between

$Config['UserFilesAbsolutePath'] = '' ;

and

$Config['ForceSingleExtension'] = true ;

However, what the README and the error message want you to do is to insert:

require_once "../../../../../filemanager.config.php";

between those lines.

If you don't do that, the Drupal access controls are not applied to the file browser settings.

As a confirmation, could you attach your config.php to this issue? I've attached mine (FCKeditor 2.6.6 version)

Jorrit’s picture

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