CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron "Sorry, can not load CMS user account."
Pages: [1]

Author Topic: Cron "Sorry, can not load CMS user account."  (Read 1148 times)

Alex Sondy

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.2
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Cron "Sorry, can not load CMS user account."
January 05, 2012, 05:53:24 am
Hello everyone,

when ever I call a cron php-file - for example "EmailProcessor.php" - it returns "Sorry, can not load CMS user account."
http://mydomain.de/sites/all/modules/civicrm/bin/EmailProcessor.php?name=username&pass=fuishc3122&key=s1t3k3ydummy

The user name is simple and the password as well. I created a dedicated user with the appropriate permissions and of course I tested the same with a full admin user. Still the error message persists.

It seems that civicrm is not able to authenticate the cms user and in a bare correlation it seems to be somewhat similar to the following post:
http://forum.civicrm.org/index.php/topic,21720.msg92382.html#msg92382

leading to the following code:
Code: [Select]
        if ( $name ) {
            $user = user_authenticate(  array( 'name' => $name, 'pass' => $pass ) );
            if ( empty( $user->uid ) ) {
                echo '<br />Sorry, unrecognized username or password.';
                exit( );
            }

Does anyone have a clue? Can it be, that the drupal function for authentication is corrupted - how would I fix/reset that?

Thank you for your help.
Alex

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cron "Sorry, can not load CMS user account."
January 05, 2012, 09:57:11 am

would be great if you can trace thru the code and figure out why its not authenticating

Are there some other modules that implement the hook_user_login and interfere with the process?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Alex Sondy

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.2
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Re: Cron "Sorry, can not load CMS user account."
January 05, 2012, 01:30:40 pm
I figured it out. A module was messing with my authentication. I turned it off and rebuild the permission table - NOW - finally it works fine and first processed 900 bounced mails xD

Thank you!

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Cron "Sorry, can not load CMS user account."
October 31, 2013, 04:12:16 am
The same error occurs in 4.3.7 and 4.3.6 with Drupal 6: see http://issues.civicrm.org/jira/browse/CRM-13602

Dave J

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Cron "Sorry, can not load CMS user account."
October 31, 2013, 12:15:22 pm
As an aside the original forum post calls the cron the old way - it should be bin/cron.php
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron "Sorry, can not load CMS user account."

This forum was archived on 2017-11-26.