Probably me being stupid, or missing something. But after installing KCFinder and the WYSIWYG bridge, and (I think) completing configuration, the Browse Server button appears, but when I try to use it I get:

Page not found
The requested page "/?q=sites/all/libraries/kcfinder-2.51/browse.php?type=images&cms=drupal&CKEditor=edit-body-und-0-value&CKEditorFuncNum=2&langCode=en" could not be found.

Thoughts/ comments?

Comments

duck.hsu’s picture

I have the same problem~

When I click the tab button(File browser or Image browser)
View / Edit / Shortcuts / File browser / Image browser
It brings this:

Page not found
The requested page "/drupal-7.10/?q=sites/all/libraries/kcfinder/browse.php?type=images&cms=drupal" could not be found.

What is wrong here?

juliekj’s picture

subscribe - same problem :(

itz_andr3’s picture

Assigned: Unassigned » itz_andr3
Category: support » bug
Priority: Normal » Major

I have the same problem (+working solution),
have 2 drupal 7 instalation:

1. localhost, with setting on admin/config/kcfinder
KCFinder library path: sites/all/libraries/kcfinder
Upload path URL: http://localhost/drupal/sites/default/files/kcfinder
This one running smooth, no problem at all

2. new live server, install using auto drupal 7 installer, with setting on admin/config/kcfinder
KCFinder library path: sites/all/libraries/kcfinder
Upload path URL: http://[my site].com/?q=sites/default/files/kcfinder
(don't know why this time default install using ?q=sites/default/files/kcfinder as path)
This one got problem 404,

Page not found
The requested page "/?q=sites/all/libraries/kcfinder/browse.php?type=images&cms=drupal" could not be found.

I try a working solution:
given here: http://drupal.org/node/1343038

In kcfinder.inc.php (within /sites/all/modules/kcfinder)

/**
* Returns the kcfinder library absolute url path, based on variable_get('kcfinder_library_path')
*/
function kcfinder_library_path_url() {
	//return url(variable_get('kcfinder_library_path'), array('absolute' => TRUE, 'language' => FALSE));
	return str_replace(
		"/?q=", "/", url(variable_get('kcfinder_library_path'),	array('absolute' => TRUE, 'language' => FALSE))
	);
}

and change: admin/config/kcfinder
Upload path URL: http://[my site].com/sites/default/files/kcfinder
(remove ?q=), and save config

It works!!!!

I think this issue only happened if default installer not enabled Clean URLs config
(Administration » Configuration » Search and metadata > Clean URLs)
more info, read: http://drupal.org/node/15365

so enabled Clean URLs, also can be other solution

if this considered to be the right solution, please release the newer version with this fix.
thx