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) »
  • error running civimail.cronjob.php and EmailProcessor.php
Pages: [1]

Author Topic: error running civimail.cronjob.php and EmailProcessor.php  (Read 1507 times)

tgramil

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
error running civimail.cronjob.php and EmailProcessor.php
August 06, 2010, 05:33:02 pm
I have been trying to set up and use civimail, but cannot get  either civimail.cronjob.php and EmailProcessor.php to work.  Both jobs, when run from the command line or through the web interface both give the same error:
            (0] => CRM_Core_Error
            (1] => handle
    (code] => -18
    [message] => DB Error: no such table
      where the info from debug line includes: Table 'uacrewor_drp01.users' doesn't exist
    this error makes sense, because the table is not users, but drup_users ; the prefix is set in the drupal setting file as
         $db_prefix = 'drup_';

I am struggling with this and am pretty much stuck.  I have looked through the code but cannot, for example,  find where the .users part of 'uacrewor_drp01.users' table is determined, or where the drupal table prefix might be incorporated into the table name.  

Any help pointing me in the right direction would be greatly appreciated.

         Thanks in advance,
                 Tom G.


« Last Edit: August 06, 2010, 05:49:56 pm by tgramil »

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: error running civimail.cronjob.php and EmailProcessor.php
August 06, 2010, 05:44:27 pm

you need to let civicrm know the name of the drupal user table. the setting screen for this is here:

http://drupal.demo.civicrm.org/civicrm/admin/setting/uf&reset=1

thinking a bit more (and since this error has come up a few times recently), it seems like it would be great if civicrm could figure out the "users" table based on the CMS (drupal or joomla) and whether it is prefixed etc and add the right prefix. Would be great if you can investigate and submit a patch which will auto-detect the users table name

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

tgramil

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: error running civimail.cronjob.php and EmailProcessor.php
August 06, 2010, 06:01:08 pm
Donald,
   That fixes it, of course....
    ( I should remark on my astonishment that your reply came before I even had a chance to correct a typo in my post!!)
     
   I'm pretty tied up now getting things working for a big deadline for using civicrm for our Fall season, but when I have a chance I'll try to have a look regarding your suggestion.  (Though I'm not sure that I can even begin to sort out the Joomla part)
 
         Thanks a ton,
                Tom G.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • error running civimail.cronjob.php and EmailProcessor.php

This forum was archived on 2017-11-26.