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) »
  • Users table not found by cron?
Pages: [1]

Author Topic: Users table not found by cron?  (Read 891 times)

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Users table not found by cron?
September 30, 2009, 12:27:31 pm
Hi - When I run the cron job to send civimail the cron job is looking for a users table that doesn't exist.  

Somehow when I initially set up drupal/civicrm I ended up with everything in the same database.   So while I have a CRM database called "mydomain_civicrm01", it has no tables in it.  All the tables are in my drupal database "mydomain_drup01".

There is a users table in there called drup_users.   I browsed that and I see that the username/encrypted pass combination that is being sought by the cron job is a match, so I guess I need some way to tell the cron job the proper table location?

Can someone please point me in the direction?

Here's the error with all the private fields masked:

I get :
Quote
Sorry. A non-recoverable error has occurred.

DB Error: no such table

Database Error Code: Table 'mydomain_civicrm01.users' doesn't exist, 1146

Return to home page.


Error Details:

Array
(
    [callback] => Array
        (
            
  • => CRM_Core_Error
  • [1] => handle
            )

        
Code: [Select]
=> -18
    [message] => DB Error: no such table
    [mode] => 16
    [debug_info] => SELECT u.* FROM users u WHERE LOWER(u.name) = 'myuser' AND u.pass = 'myencrypedpass' AND u.status = 1 [nativecode=1146 ** Table 'mydomain_civicrm01.users' doesn't exist]
    [type] => DB_Error
    [user_info] => SELECT u.* FROM users u WHERE LOWER(u.name) = 'myuser' AND u.pass = 'myencrypedpass' AND u.status = 1 [nativecode=1146 ** Table 'mydomain_civicrm01.users' doesn't exist]
    [to_string] => [db_error: message="DB Error: no such table" code=-18 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT u.* FROM users u WHERE LOWER(u.name) = 'myuser' AND u.pass = 'myencrypedpass' AND u.status = 1 [nativecode=1146 ** Table 'mydomain_civicrm01.users' doesn't exist]"]
)

[/quote]
« Last Edit: September 30, 2009, 12:39:33 pm by civicrmsav »

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: Users table not found by cron?
September 30, 2009, 02:46:02 pm

1. you might want to set your users table name here:

administer civicrm >> global settings >> drupal integration settings

2. seems like your CIVICRM_UF_DSN in civicrm.settings.php is also not set properly. You might want to ensure that it points to your drupal database

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

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Users table not found by cron?
October 01, 2009, 05:57:14 am
Thanks so much.  Changing the table name made it work, but I corrected the CIVICRM_UF_DSN setting as well.  All seems well now. 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Users table not found by cron?

This forum was archived on 2017-11-26.