Any Ideas as to why using the browser I get page not found?

It is trying to navigate to
sites/all/modules/ckeditor/ckfinder/ckfinder.html?Type=Images&CKEditor=edit-body&CKEditorFuncNum=2&langCode=en

CommentFileSizeAuthor
#25 screenshot1.jpg133.64 KBkd0afk

Comments

pinxi’s picture

I have the same issue with the image browser. Flash and link works. I did the followed the directions below. Now the browser works when I go directly to the ckfinder.html file, but doesn't within the ckeditor.

This works:
http://example.com/drupal/sites/all/modules/ckeditor/ckfinder/ckfinder.html

This doesn't work (which is launched when clicking the image button in ckeditor.)
http://example.com/drupal/sites/all/modules/ckeditor/ckfinder/ckfinder.h...

The Flash works though:
http://example.com/drupal/sites/all/modules/ckeditor/ckfinder/ckfinder.h...

And File works:
http://example.com/drupal/sites/all/modules/ckeditor/ckfinder/ckfinder.h...

1. Download CKFinder for PHP: http://ckfinder.com/download
2. Unpack CKFinder to the directory with the CKEditor module (into sites/all/modules/ckeditor/ckfinder)
The correct directory structure is as follows:

modules
ckeditor
ckeditor.module
ckeditor.admin.inc
...
ckfinder
core
ckfinder.php
config.php
...
ckeditor
_source
images
ckeditor.js
...

3. Grant "allow CKFinder file uploads" permission in "Administer > User Management > Permissions"
Note: if you don't see such permission then it means that CKEditor didn't find CKFinder
and you have probably uploaded CKFinder into wrong directory.
4. Open CKFinder configuration file (sites/all/modules/ckeditor/ckfinder/config.php) and do the following:

I) remove the CheckAuthentication() function:
(don't worry, this function is defined in filemanager.config.php, see below)

function CheckAuthentication() <- remove it
{ <- remove it
//WARNING : DO NOT simply... <- remove it
... <- remove it
return false; <- remove it
} <- remove it

II) add:

require_once '../../../../includes/filemanager.config.php';

straight below the following line:

$baseDir = resolveUrl($baseUrl);

5. Select CKFinder as preferred file browser in "Administer > Site configuration > CKEditor"
(in selected CKEditor profile scroll down to "File browser settings" section).
In the "File browser settings" section you may also change destination folders for files uploaded with CKFinder.

6. Locate file named settings.php inside your drupal directory
(usually sites/default/settings.php) and set $cookie_domain variable to the
appropiate domain (remember to uncomment that line). If you don't do this,
CKFinder may show an information that the connector is disabled.

wwalc’s picture

If the url is ok, the "page not found" erro may come from things like mod_security... in any case if you can send me a PM with a link where I can see this bug live then it could help me understand the problem.

wwalc’s picture

Status: Active » Postponed (maintainer needs more info)
compujohnny’s picture

You can watch a very nice screencast on How to Install CKfinder with CKeditor in Drupal and you will know exactly how to configure it correctly

irishjays’s picture

.../modules/ckeditormodule/ckfinder/ckfinder.html?Type=Images&CKEditor=edit-body&CKEditorFuncNum=2&langCode=en

Brings up Page not found for me. Does it have something to do with the module folder I called ckfindermodule?
I unchecked CKeditor in modules, changed the directory to ckeditor instead of above, then went back and checked ckeditor in modules.
Still no permissions for ckfinder...
Is there something I messed up?

dtougas’s picture

I am experiencing the same problem with my install.

smanes’s picture

I'm not getting a "Page Not Found" but it IS ignoring the sites/default/files/ directory and instead rooting the image browser at sites/default/files/images. That is, it skips right over the files/ directory.

The setup under admin/settings/ckeditor/edit/Advanced is:

Path to uploaded files: /sites/default/files/

Absolute path to uploaded files: %d%b%f/

Those settings should be exposing images in the files/ directory to CkFinder, right?

irishjays’s picture

Anyone working on this module here? Should i write to the people at CK?

wwalc’s picture

Can anyone send me a PM with a sample login/pass where I can see this bug live? I cannot reproduce it locally so it seems I'm missing something here.
@irishjays - any chance for a PM with link?

irishjays’s picture

Status: Postponed (maintainer needs more info) » Fixed

Hey everyone, I suppose the page not found explained it all. I copied CKFINDER into the same directory as the COPY HERE.TXT meant for CKEDITOR. Anyone experiencing this issue check that you didn't copy the CKFINDER to the directory with COPY HERE.txt in it. This is counter intuitive, I suggest we change COPY HERE.TXT to COPY CKEDITOR HERE.TXT and then another called COPY CKFINDER HERE.TXT in the right directory. That directory is:
modules/ckeditor/CKFINDER

It seems easy enough by reading the instructions but as anyone familiar with WYSIWYG drupal it's always copied into a folder within a folder and the copy here text makes it an easy mistake.

Working great, I love it.

sethleonard’s picture

Status: Fixed » Active

I'm having the same problem (page not found).

If it helps, I found that if I remove "&CKEditor=edit-body" from the query string:

Type=Images&CKEditor=edit-body&CKEditorFuncNum=2&langCode=en

It works. Sorry I can't give you a live URL, wwalc, only the administrator can create content on my site.

okkingaj’s picture

There is one more thing not mentioned in the screencast. The rights of the folder sites\default. I did not have this issue when installing from installatron. But I did run into this when installing from CVS. Changing the rights of said folder to 555 solver the problem for me.

superpowerchicken’s picture

Hi there, I had this same issue described in post #1 but resolved it by clearing my browser cache and restarting the browser.

I was following the install video mentioned in post #4 but was playing around with things in between.

I think the key to reproduce the issue is:

1. Set up ckeditor first and set the file browser to ckfinder.
2. Try out ckeditor on the site. Click the image button and click 'Browse Server' (it doesn't work).
3. Complete installation of ckfinder etc.

Then I get the page not found error.

Clearing the browser cache and restarting cleared the issue.

mephir’s picture

Status: Active » Closed (fixed)

If you have any lack of clarity about issue, feel free to reopen it.

plugnplay’s picture

Thank you superpowerchicken. I had this problem with 'page not found' as well and can confirm that I originally tried browsing with CKFinder before I had actually installed (maybe the cause of the problem?).

I tried the tip for clearing my browser cache then restarting the browser, which wasn't normally the sort of thing that I would expect to clear a problem like this, but it worked great.

pendashteh’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

it might help someone. i had the same problem. it worked without query and returned "Page not found" with query.
i just commented the line below in drupal main .htaccess

# Make Drupal handle any 404 errors.
#ErrorDocument 404 /index.php

it worked. then i uncommented it again

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

and it still works! and i don't know why!

narendrak’s picture

Will CK finder Demo version work fine after site is live?

remoran’s picture

Issue tags: +browse for server

I simply cannot believe that Browse Server is NOT part of the equation here. I build sites for a living and not having the ability to browse for files is stupid. Dreamweaver has had this for YEARS!!! I have been farting around for hours trying to get the damn browse server settings for ckeditor to work and cannot get it to run. Get browse for server working and be done with it. This is just inexcusable that this function is not built into the module from the get go. Get with it people and fix it!!

pumpkinkid’s picture

Actually, after mucking around with the settings, found out I needed to clear my cache on the performance page...

It was user error on my part...

You need to understand that while Drupal works wonderfully, each module is maintained by people who are donating their time to further development...

In the case of CKEditor/CKFinder, they are two separate modules that were developed for use outside of Drupal... All this module does is implement it's use within Drupal...

BTW, just cause Dreamweaver has the functionality, does not mean that Drupal works the same way... there are many security issues that we need to keep in mind as opposed to Dreamweaver that is used by users that already have full server access...

remoran’s picture

I understand. Drupal itself is terrific. No argument but at the same time, the browse for server function is an essential part of getting anything done on the web, a operation that should be part of every wysiwyg app no matter what CMS the component is designed to work with.

pumpkinkid’s picture

Not if everybody on your website (if you allow users other than yourself) has access to the wysiwyg... Think about how bad it would be if you allowed everyone to browse your server...

This editor in particular separated the function so that you could use a different module for browsing the server such as IMCE...

Did you get the finder to work after refreshing your cache? If not you may want to see if IMCE works better for you.

mseraphim’s picture

I assume you already sorted out your problem, but for anyone else struggling with this, hopefully this will help.

I updated all my drupal site's modules to the latest versions, just to find out Ckeditor wasn't working. In the update process I disabled the ckeditor module and deleted the old folder from my site. I then uploaded the new version, ran update.php and enabled ckeditor. After all this I realized it's still not working. I had to download the ckeditor software from http://ckeditor.com/download and upload that to the ckeditor folder of the module I already installed. Nice one, now Ckeditor works fine, however browsing the server didn't - PAGE NOT FOUND.

From here I had to download the ckfinder from http://ckfinder.com/download and extract it into my ckeditor/ckfinder directory as well. Then I had to edit the config.php file and there you go, all working great.

IF YOU HAVE PROBLEMS WITH THIS, READ THIS IMPORTANT POST:
Ckeditor and ckfinder installation @ http://drupal.org/node/728210 Posted by Ciril Tharayil

Great Stuff, hope this helps.

I think they should post details regarding upgrading the ckeditor module to a newer version, warning folks that they would need to setup ckfinder from scratch again.

Cheers,

Mseraphim

dczepierga’s picture

Status: Active » Closed (fixed)
aaronmeister’s picture

I too was having the 404 issues and this is that one step that I forgot! After I changed the permissions to 777, then edited the file, added 555 back, it worked.

Now I just need to find a way to use the browse server function while the site is off-line for maintenance.

kd0afk’s picture

StatusFileSize
new133.64 KB

"3. Grant "allow CKFinder file uploads" permission in "Administer > User Management > Permissions""
Where is the Administer link. I am using drupal7 with the administration menu module.

Marchena-1’s picture

Also having issue with CkEditor - Page not found.

Is there a way i can have you look into my site so I can figure this out?

datarazor’s picture

Okay for anyone who also has this issue, I found out that the issue is that the connector had permission issues.

When you surf to:

/sites/all/modules/ckeditor/ckfinder/core/connector/php/connector.php

You should see a WHITE page, if you get a 404, you could have a permission problem.

Try putting a new PHP file called: test.php in this folder with just:

<?php
print ("test");

In it, does it say "test" when you navigate to this test.php file?
/sites/all/modules/ckeditor/ckfinder/core/connector/php/test.php

If it does not, go to your website in SSH (or cpanel file manager or what-not) and select the ckfinder folder and change all the permissions of it, and all subfolders, to 755.

From terminal this would be:

#chmod -R 755 sites/all/modules/ckeditor

(Assuming you are in public_html)

Now when you go to the connector.php you should see a WHITE page if it is configured correctly.

Spent a looong time thinking it was a setting issue in my setting.php or config.php or the ckeditor settings, but in fact it was just a simple permissions problem.

I hope this helps someone else!

lucsar’s picture

Right! Solved (finally) for me. ;)

Thanks

rachanakamlesh’s picture

Issue summary: View changes

Hi,

I have a question on ckfinder configuration.How can I configure CKFINDER for Multi-site functionality ?.
I have setup ckfinder for single site but when I switched to multisite How can I achieve this ?.

Thanks,
-Kamlesh

sushantverma.it’s picture

Hi

You can put the ckeditor on sites/all/module/contribe/ckeditor and put the ckeditor plugin (configure form live path "//cdn.ckeditor.com/4.5.9/full-all") and ckfinder in sites/all/libraries/----.

For configure ckfinder - please ckfinder/conf.php - add below line at the top of the file.

require_once '../../../../../modules/ckeditor/includes/filemanager.config.php';

If you have any query/concern, please comment on the same thread.

Cheers
-Sushant

sushantverma.it’s picture