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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Batch CiviCRM scripts are looking for the wrong table name
Pages: [1]

Author Topic: Batch CiviCRM scripts are looking for the wrong table name  (Read 1013 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Batch CiviCRM scripts are looking for the wrong table name
May 16, 2010, 10:20:24 pm
When I try to execute any batch  CiviCRM script, I get an SQL error:

    Sorry. A non-recoverable error has occurred.

    DB Error: no such table

    Database Error Code: Table 'amyisrae_drp1.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) = 'admin' AND u.pass = '32f6662026f705743141586712fbe492' AND u.status = 1 [nativecode=1146 ** Table 'amyisrae_drp1.users' doesn't exist]
    [type] => DB_Error
    [user_info] => SELECT u.* FROM users u WHERE LOWER(u.name) = 'admin' AND u.pass = '32f6662026f705743141586712fbe492' AND u.status = 1 [nativecode=1146 ** Table 'amyisrae_drp1.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) = 'admin' AND u.pass = '32f6662026f705743141586712fbe492' AND u.status = 1 [nativecode=1146 ** Table 'amyisrae_drp1.users' doesn't exist]"]
)


I am using Drupal 6.16 and CiviCRM 3.0.2
Ideas?

Thanks,
Sarah
« Last Edit: May 16, 2010, 10:23:29 pm by sgladstone »
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Batch CiviCRM scripts are looking for the wrong table name
May 17, 2010, 04:59:39 am
ANd you don't have user table? or it's in a different db ?

X+

P.S. What batch script are you trying ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Batch CiviCRM scripts are looking for the wrong table name
May 17, 2010, 06:40:11 am
Drupal and CiviCRM are both in the same database. My Drupal user table is called "drup_users" 

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Batch CiviCRM scripts are looking for the wrong table name
May 17, 2010, 06:43:08 am
Don't know, never had the problem. You might want to upgrade to 3.1.4.

What scripts are you trying and how do you try them exactly ?
X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: Batch CiviCRM scripts are looking for the wrong table name
May 17, 2010, 08:10:33 am

set the drupal users table name in administer civicrm >> global settings >> drupal integration settings

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

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Batch CiviCRM scripts are looking for the wrong table name
May 18, 2010, 07:59:48 pm
Thanks Lobo - That did the trick. I don't know how I forgot to change that setting.  Should it be added to the configuration checklist?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Batch CiviCRM scripts are looking for the wrong table name
May 18, 2010, 10:13:41 pm
The checklist is mostly for things you are very likely to have to change.

You are probably among a tiny minority that have a non standard table prefix on drupal. I think that's better having the lone one confused once in a while than everyone scratching their head wondering if they should change it everytime.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Batch CiviCRM scripts are looking for the wrong table name

This forum was archived on 2017-11-26.