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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cronjob & EmailProcessor goto to civicrm/bin/user resulting in error 404
Pages: [1]

Author Topic: Cronjob & EmailProcessor goto to civicrm/bin/user resulting in error 404  (Read 1240 times)

Louis

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
Cronjob & EmailProcessor goto to civicrm/bin/user resulting in error 404
October 26, 2011, 01:36:52 am
Im unable to trigger or process emails as running civimail.cronjob.php or EmailProcessor.php either directly or wget results in an attempt to locate
http://..../sites/all/modules/civicrm/bin/user which then fails as "404 Not Found" since it does not exist.

Browsing to http://.../sites/all/modules/civicrm/bin/EmailProcessor.php?name=xxx&pass=yyy&key=xdfg returns page not found.

http://<site>/index.php?q=civicrm/mailing/queue&reset=1 is the only working method to trigger emails.

Is there a workaround for this ?
CiviCrm 3.4.6  Drupal 6.19

Louis

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
Re: Cronjob & EmailProcessor goto to civicrm/bin/user resulting in error 404
October 26, 2011, 08:40:30 am
Followed Robinhood's lead http://forum.civicrm.org/index.php/topic,21720.0.html and commented out
this part of CRM/Utils/System/Drupal.php

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

Now after executing civicrm.cronjob.php jobs now say "running" but never complete. I assume because the script does not know if the user has the proper permissions to run the job.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cronjob & EmailProcessor goto to civicrm/bin/user resulting in error 404

This forum was archived on 2017-11-26.