Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5405

Drupal functions not accessible from Smarty template

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.2
    • Fix Version/s: Unscheduled
    • Component/s: CiviMail
    • Labels:
      None

      Description

      I have Smarty template, which pulls out some info from Drupal database to build custom email for each recipient.
      When I run test mailings from web interface, everything is fine.
      When I run wget civimail.cronjob.php then it appears that no Drupal functions are available for the same mailing.
      I get reference(s) to undefined functions of Drupal.

      If I try to bootstrap,
      require_once( '.../includes/bootstrap.inc' );
      drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
      then I'll get following:
      Fatal error: Cannot redeclare conf_init() (previously declared in .../civicrm.config.php:37)

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              ragnarkurm ragnar kurm
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: