Ever since I updated some component of my site at some point, when I attempt to browse server in ckfinder installed with ckeditor, I get this error:

The requested page "/sites/all/modules/ckeditor/ckfinder/core/connector/php/connector.php?command=Init&type=Images&id=Full" could not be found.

(image upload used to work fine)

In fact, a little php file to print "hello world" if loaded from the ckfinder directory, results in 404. The same test file loaded from the parent ckeditor directory prints fine.

I am not a programmer, only an end-user/site admin, but I have installed cke with ckf many times before. I am familiar with the proper installation directory structure and have done the required editing of ckf's config.php and of drupal's settings.php file. The site's status report sees ckeditor just fine and the editor loads for the one profile I have set up so far. When I click the image button on the cke editor, the ckfinder dialog pops up, but I just can't browse the server or upload images.

specs:
Drupal 7.22
CKEditor 7.x-1.13 (same problem was happening with 1.12)
CKEditor engine 4.1 (I tried reverting to 3.6.1, did not help, reinstalled 4.1)
CKFinder 2.3.1

It seems to me this may have begun happening (but I'm really not sure) after the Drupal upgrade that replaced the .htaccess file, may have been this latest upgrade to 7.22??

Why would my server not be able to print "hello world" from the ckfinder directory when everything else on my site (except ckfinder) is working fine and the same file loads fine when it's in the parent ckeditor directory?? I have examined directory permissions and the ckfinder directory has the same exact permissions and ownership as the parent ckeditor directory.

I have been struggling with this for days, doing dozens of web searches and searches in this issue queue and on d.o in general to try to solve it, tried IRC but got no responses ... need to be able to insert images into the posts on our website, so I'm reaching out here. I hope to solve this without reverting to an older backup of the site on which ckfinder was working, and then try to figure out how to move our current content into the backup.

Any assistance would be so appreciated. I cannot see anything I've done wrong!

thanks,

kazar

Comments

kazar’s picture

I meant to include one more tidbit to the above info:

when I load http://example.com/sites/all/modules/ckeditor/includes/filemanager.confi...

the page that loads says:

Fatal error: Call to undefined function resolveUrl() in /home/myuseraccount/public_html/sites/all/modules/ckeditor/includes/filemanager.config.php on line 97

kazar’s picture

polite "bump". Should I be asking this somewhere else? thanks

lucsar’s picture

Hi,

have same issue. Did you find a solution?

I'm still working on my own to resolve this!

Thanks

kazar’s picture

***I WILL PAY*** for someone to help me solve this. Just now I created a sandbox subdomain on my server. Installed everything fresh. Default theme, only module is CKEditor. Followed instructions to the T and have triple-checked everything including the edits to ckfinder/config.php and drupal's settings.php.

I am not an advanced server admin (by a long shot) but have installed drupal sites in 5, 6 and 7 that work fine. None of this is new to me.

What is new to me is that even in this fresh sandbox installation with no themes nor modules other than CKEditor, I cannot browse server or upload images using CKFinder. The Drupal Status Report checks out fine. But I still get:
The requested page "/sites/all/modules/ckeditor/ckfinder/core/connector/php/connector.php?command=Init&type=Images&id=Full" could not be found.

I believe the server cannot read any of the php files inside the ckfinder directory, although everything else php-driven is running just fine. WHY IS THIS HAPPENING? Sorry to shout but I see other people reporting this around the web and no answer.

Could it be the new .htaccess file that began being distributed with recent Drupal upgrades? If so I would have no clue how to solve that and would be happy to pay any webmaster/drupal experts who can help me tackle this (and teach me as we go) via a screen-sharing session. My $$$ to your PayPal. I'll even write up the solution for the community.

Please Take My Money.

thanks

kazar

lucsar’s picture

:) Ok, don't worry, we'll find the solution, I'm sure ;)

let me send you this link that you may not have seen before:
http://drupal.org/node/1865428 --> http://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/CKFinder

The strangest think with the link above from cksource.com is that they do not mention the path to userfiles as reported here at point (8):
http://drupal.org/node/728210

Also point (11) that's needs to be decrypted!!!

Keep in touch.

kazar’s picture

Thanks for the response lucsar! Some comments on the pages you point to later, but first I really think this is the crux of the problem (NOTE I JUST UPDATED THE LINKS 10:10 -0400)

A simple php file that works fine here:

http://sandbox.svgarden.org/sites/all/modules/ckeditor/hello.php

Does not read in the ckfinder subdirectory inside ckeditor:

http://sandbox.svgarden.org/sites/all/modules/ckeditor/ckfinder/hello.php -->returns 404

Why is my server unable to read php files inside the ckfinder directory?

owner:group on both the ckeditor directory and its ckfinder subdir are the same
permissions on ckeditor folder is 755, on ckfinder 775 (these were the default permissions upon installation)
permissions on the hello.php file in both directories is 644

I'm thinking none of the other troubleshooting ideas are worth pursuing if my server cannot read php files inside the ckfinder directory, no?

thanks a gigabyte for any help

lucsar’s picture

I'm thinking none of the other troubleshooting ideas are worth pursuing if my server cannot read php files inside the ckfinder directory, no?

Not sure because for me hello.php works fine called within ckfinder directory:
http://www.emr-guardian.com/sites/all/modules/ckeditor/ckfinder/hello.php

even within ckfinder/core/connector/php:
http://www.emr-guardian.com/sites/all/modules/ckeditor/ckfinder/core/con...

BUT NOT from ../ckfinder/userfiles: (The requested page "/sites/all/modules/ckeditor/ckfinder/userfiles/hello.php" could not be found.)
http://www.emr-guardian.com/sites/all/modules/ckeditor/ckfinder/userfile...

with both .htaccess enabled/disabled:

<IfModule mod_php5.c>
  php_value engine off
</IfModule>
<IfModule mod_php4.c>
 php_value engine off
</IfModule>

let's check forward...

kazar’s picture

.htaccess file is above my pay grade. What can I try next? I've scanned .htaccess and bootstrap.inc and cannot find a clue, to the best of my non-developer ability, as to why php cannot be read inside the ckfinder directory (or any subdirectory).

At this point I will try IMCE for my main site, just so I can enable authors to upload photos, but I will keep my sandbox install available to try to solve this problem with CKFinder. If there is anything I should test please break it down for someone who knows no php (but who can get the sense of what the code means when i read it).

thanks very much!

lucsar’s picture

Title: php files in ckfinder directory not found » GOOD NEWS!!!

Hi,

finally I got the solution ;) Hope the same for you.

Very Important: follow ONLY these instructions step by step relating installation/integration process:
http://docs.cksource.com/CKEditor_for_Drupal/Open_Source
http://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/CKFinder

Let's follow this post:
http://drupal.org/node/713724#comment-6502342

You really to NOT have "404 page not found" if you point straight to your connector.php file.

You have to tune your file permission to gain access and get something like this instead:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Connector>
<Error number="10"/>
</Connector>

For me it works if I set the following permission for all my drupal site (files&folders) assuming that my hosting service doesn't allow to change user&group which are fixed and the same.

Be sure to be in public_html folder and type this command in terminal window:
find . -type f -exec chmod u=rw,g=r,o=r '{}' \;
find . -type d -exec chmod u=rwx,g=rx,o=rx '{}' \;

Let me know
Cheers

scotwith1t’s picture

Title: GOOD NEWS!!! » php files in ckfinder directory not found

changing the title will make it a lot harder for folks to find this post. reverting back. :) going to try this one in our instance as well and try and report back.

scotwith1t’s picture

nevermind, this doesn't apply to us, but at least the title's back to good now. :)

lucsar’s picture

Sorry, didn't realize the title changes... never again, promise ;)

ron_s’s picture

Version: 7.x-1.13 » 7.x-1.x-dev
Related issues: +#2671786: ckfinder_path function typos

Your problem is most likely related to this issue: https://www.drupal.org/node/2671786

See the patch on that thread. The module code has an error.