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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • db error: unknown error.
Pages: [1]

Author Topic: db error: unknown error.  (Read 1953 times)

dlats

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
db error: unknown error.
July 02, 2014, 06:08:07 am
The system is Apache 2.2.27, PHP 5.4.30 and MySQL 5.5.38-Maria. I have several drupal/civicrm sites hosted on this server.

For Drupal 7.28 and civicrm 4.4.6, changing a module setting (disable or enable) produces the error. The action is completed before the error appears. I tried PHP 5.3 with the same results.

Here are other combinations that get the error; Drupal 7.22 & civicrm 4.3.4, drupal 7.22 & civicrm 4.4.5, drupal 7.22 & civicrm 4.4.3 and drupal 7.28 & civicrm 4.4.5.

However, drupal 7.15 & civicrm 4.2.8 works without error.

The apache log has no error in it.

Back trace: PEAR_Error->PEAR_Error("DB Error: unknown error", -1, 16, (Array:2), "DROP FUNCTION IF EXISTS civicrm_strip_non_numeric [nativecode=1548 ** Cannot ..."

This occurs on all sites that have the error, even the fresh install one.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: db error: unknown error.
July 02, 2014, 08:01:57 am
If you look in this Google seach, you will find a lot of threads on this forum on this subject. Perhaps one of those can answer your question.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

dlats

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: db error: unknown error.
July 02, 2014, 09:48:33 am
Most of those posts refer to upgrades or server migration. This is a brand new install. I tried doing /civicrm/menu/rebuild&reset=1&triggerRebuild=1, but the error still persists.

dlats

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: db error: unknown error.
July 06, 2014, 08:21:23 am
You don't need to run mysql_upgrade as suggested in other posts, you can run "repair" table from phpmyadmin on all the tables. That fixes the problem.

The other db error I encountered was when saving the site email and address. Logging out then in solves this one as suggested in another post.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: db error: unknown error.
July 06, 2014, 08:15:13 pm
Related: CiviCRM rebuilds DB triggers when unrelated Drupal modules are enabled / disabled

Wouldn't fix your problem, but speeds up developer flow (since the bug causes any Drupal module enable/disable to take several minutes eg if logging enabled) and would mean you wouldn't run into the issue so often.
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • db error: unknown error.

This forum was archived on 2017-11-26.