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) »
  • When running CiviMail cronjob, I am redirected to the Drupal install page
Pages: [1]

Author Topic: When running CiviMail cronjob, I am redirected to the Drupal install page  (Read 761 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
When running CiviMail cronjob, I am redirected to the Drupal install page
June 22, 2011, 08:16:10 pm
I am running my civimail.cronjob.php file via browser, and I am redirected to the <site>/sites/all/modules/civicrm/bin/install.php (drupal install page?).  I have checked that the cronjob is configured properly, and that the user has administer permissions.

It's as if the script isn't authenticating properly, or if it is, it is not loading the bootstrap, but I am lost, and don't know how to fix it.  Maybe it is a configuration error, but I've checked the configuration and it looks ok.

NOTE: The UpdateMembership.php script has the same result, it is also redirected to install.php

Stuff I've tried
  • Important: Running this (deliberately incomplete without all 3 parameters) will get a CiviCRM error, but with all 3 parameters I am directed to: <site>/sites/all/modules/civicrm/bin/install.php
  • I turned off all custom modules.
  • I have checked the .htaccess file in Drupal, it doesn't appear to have anything abnormal that I can see.
  • drupal's cron.php runs fine
  • upgraded contrib modules and drupal

The site was originally a 3.0 site, recently upgraded and now is 3.3.6

« Last Edit: July 06, 2011, 12:10:33 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: When running CiviMail cronjob, I am redirected to the Drupal install page
July 11, 2011, 12:37:38 pm
With the help of WebAccess debugging efforts, this problem was solved. 

Over the years many different developers had worked on this particular site, and they had created several copies of the website file structure in different locations, some above the current web root, some parallel.  These alternate, clones of the website were interfering with the bootstrap of civimail.cronjob.php and UpdateMembership.php when run.

When I removed the unused clones of the website (packing them away in tar.gz) files the scripts started functioning again.

Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • When running CiviMail cronjob, I am redirected to the Drupal install page

This forum was archived on 2017-11-26.