After long hours of failure, I was trying to install CKFinder today, a function that I feel belongs in Drupal core, and that day is coming, I'm told. All of a sudden I could no longer log in to my admin panel. I can't plant a cursor in the box, that is. I tried several solutions posted to the forum, such as adding ?q=user to the URL but no luck. I had been editing CKFinder's config.php according to the CKFinder install tips when the problem started. I added a few lines to the file, such as session_start() and function CheckAuthentication and $_SESSION['CKFinder_UserRole'] = "admin" as shown below.
session_start();
function CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
// ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
// user logs in your system. To be able to use session variables don't
// forget to add session_start() at the top of this file.
$_SESSION['CKFinder_UserRole'] = "admin";
return false;
}
Then when I became locked out, I changed it all back, but that didn't let me log in. I know this is a tough one but does anybody have a clue
what I can do if anything? It looks like there are many ways to get locked out but mine has to do with php code I think.
Thanks!
Drupal newbie
Comments
So
So http://yourdomain.com/?q=user doesn't allow you to enter anything?
Do you have access to your database via PHPMyAdmin or something like that? You could manually disable the module by looking for the "systems" table in your database and setting the "status" value to "0" to disable CKFinder.
Then you'd probably want to clear the cache by doing something like this: http://mgalalm.com/2011/08/10/empty-drupal-db-cache-from-phpmyadmin/
Both of these operations can be done via Drush too: http://drupal.org/project/drush
-Finn
can't get to admin page
Finn,
Thanks for the tip. I did not actually have CKFinder installed yet so it doesn't show up in PhPMyAdmin. So I set the status of CKEditor to 0, since it might be the parent of CKFinder. In any case that didn't help, not even after I flushed the cache as you suggestion.
Another forum post told how to make the admin login window reappear, which is not my problem. Mine is just frozen. That tip was to denable this line in the PHP system table:
modules/user.module
but I checked and it was already enabled.
I'm afraid it's looking like I will need to rebuild the entire site. I'm now wondering, had I backed up the database, could I have just gone back to an earlier restore point in under Manage Backups in PhPMyAdmin? I'm guessing that would have worked.
Installing CKFinder was by far the biggest obstacle in building the site and it's what killed the site, trying to configure the config.php settings. I wish there had been a clear complete set of instructions for installing it but the install was more of a scavenger hunt through hell. I bought the module so I could get support but they were not helpful. I guess I will be looking for an alternative to CKFinder when I rebuild the site.
Thanks!!!
Pete
the troubled site:
http://earthmandesigngroup.com/?qmin
"There is a tendency for all knowledge, like all ignorance, to deviate from truth in an opportunistic direction." Gunnar Myrdal
No guarantee
but you might try to run install.php on your site, it helped me some time ago when I wasn't able to log into my site
Interesting. Would that be
Interesting. Would that be part of the Drupal install? I'm using the "one click" install from Fatcow, my host, so I don't have to deal with installing Drupal other than the one click.
Thanks for the suggestion. I'm inches from rebuilding the site, so at this point I'd try anything.
"There is a tendency for all knowledge, like all ignorance, to deviate from truth in an opportunistic direction." Gunnar Myrdal
solution
I finally got back into the Admin panel. I used the backup at my hosting service to restore the very last of the daily backups going back about two weeks. Had I waited another day or so it would not have been possible. Lesson learned: pay for backups at the hosting service. Backup and Migrate was no help because I could not get to the Admin panel to restore any of its backups.
Thanks to all for the help.
Peter
"There is a tendency for all knowledge, like all ignorance, to deviate from truth in an opportunistic direction." Gunnar Myrdal