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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • A non-recoverable error has occurred [Please help me out here]
Pages: [1]

Author Topic: A non-recoverable error has occurred [Please help me out here]  (Read 5803 times)

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
A non-recoverable error has occurred [Please help me out here]
June 05, 2009, 11:16:54 am
I've installed the civicrm correctly, although it says but when I call one of the app it tell me the following, and then what can one do:

 
Sorry. A non-recoverable error has occurred.


--------------------------------------------------------------------------------

DB Error: syntax error

Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0 )' at line 7, 1064

Return to home page.

Error Details:


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

        
Code: [Select]
=> -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] =>
DELETE     g
FROM       civicrm_group_contact_cache g
INNER JOIN civicrm_contact c ON c.id = g.contact_id
WHERE      g.group_id IN (
    SELECT id
    FROM   civicrm_group
    WHERE  TIMESTAMPDIFF(MINUTE, cache_date, NOW()) > 0  
)
 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0  
)' at line 7]
    [type] => DB_Error
    [user_info] =>
DELETE     g
FROM       civicrm_group_contact_cache g
INNER JOIN civicrm_contact c ON c.id = g.contact_id
WHERE      g.group_id IN (
    SELECT id
    FROM   civicrm_group
    WHERE  TIMESTAMPDIFF(MINUTE, cache_date, NOW()) > 0  
)
 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0  
)' at line 7]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="
DELETE     g
FROM       civicrm_group_contact_cache g
INNER JOIN civicrm_contact c ON c.id = g.contact_id
WHERE      g.group_id IN (
    SELECT id
    FROM   civicrm_group
    WHERE  TIMESTAMPDIFF(MINUTE, cache_date, NOW()) > 0  
)
 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0  
)' at line 7]"]
)

« Last Edit: June 10, 2009, 12:30:38 am by rud »
Regards

Rudy Madsen

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: A non-recoverable error has occurred
June 05, 2009, 01:53:49 pm
CiviCRM requires MySQL 5.0.x or higher with INNODB support. Looks like you / your host is running an older non-supported version.
Protect your investment in CiviCRM by  becoming a Member!

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: A non-recoverable error has occurred
June 08, 2009, 07:55:39 am
I did run the older version but now I've upgrated to 5.0.67.

I still get the error:

Code: [Select]

Sorry. A non-recoverable error has occurred.


--------------------------------------------------------------------------------

DB Error: syntax error

Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0 )' at line 7, 1064

Return to home page.

Error Details:


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

    [code] => -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] =>
DELETE     g
FROM       civicrm_group_contact_cache g
INNER JOIN civicrm_contact c ON c.id = g.contact_id
WHERE      g.group_id IN (
    SELECT id
    FROM   civicrm_group
    WHERE  TIMESTAMPDIFF(MINUTE, cache_date, NOW()) > 0   
)
 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0   
)' at line 7]
    [type] => DB_Error
    [user_info] =>
DELETE     g
FROM       civicrm_group_contact_cache g
INNER JOIN civicrm_contact c ON c.id = g.contact_id
WHERE      g.group_id IN (
    SELECT id
    FROM   civicrm_group
    WHERE  TIMESTAMPDIFF(MINUTE, cache_date, NOW()) > 0   
)
 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0   
)' at line 7]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="
DELETE     g
FROM       civicrm_group_contact_cache g
INNER JOIN civicrm_contact c ON c.id = g.contact_id
WHERE      g.group_id IN (
    SELECT id
    FROM   civicrm_group
    WHERE  TIMESTAMPDIFF(MINUTE, cache_date, NOW()) > 0   
)
 [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(MINUTE, cache_date, NOW()) > 0   
)' at line 7]"]
)
[/code]
Regards

Rudy Madsen

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: A non-recoverable error has occurred [Please help me out here]
June 12, 2009, 06:45:55 am

i suspect your mysql upgrade did not go thru, or you are still using an old version of mysql

that sql snippet works fine in my local version of mysql

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

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: A non-recoverable error has occurred [Please help me out here]
June 20, 2009, 01:57:14 am
My upgrade did go thru and works fine. I can manage all my data ...

I still got the same problem.

Please try to help...

/Rudy
Regards

Rudy Madsen

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: A non-recoverable error has occurred [Please help me out here]
June 22, 2009, 10:09:25 am
If you have phpMyAdmin set up for your MySQL server, or command line access to MySQL - you can verify the version:
Code: [Select]
SELECT version();

... and try running the MySQL snippet directly (it also runs fine for me with 5.0.41-log)

Code: [Select]
DELETE     g
FROM       civicrm_group_contact_cache g
INNER JOIN civicrm_contact c ON c.id = g.contact_id
WHERE      g.group_id IN (
    SELECT id
    FROM   civicrm_group
    WHERE  TIMESTAMPDIFF(MINUTE, cache_date, NOW()) > 0  )

Protect your investment in CiviCRM by  becoming a Member!

Osman

  • Guest
Re: A non-recoverable error has occurred [Please help me out here]
July 07, 2009, 12:39:02 am
I have the same problem and I need someone to help me to fix this issue. Is there anyone who is pro in solving this issue on my website? I do not mind to pay a reasonable cost to someone who can fix this issue on my website asap. Please let me know.

fzrhusker1

  • Guest
Re: A non-recoverable error has occurred [Please help me out here]
July 10, 2009, 01:26:38 am
Your database is configured to use the MyISAM database engine. CiviCRM requires InnoDB. You will need to convert any MyISAM tables in your database to InnoDB. Using MyISAM tables will result in data integrity issues. This will be a fatal error in CiviCRM v2.1.

Will this mess up any of my curretn data if I have my host do it and will I need to reinstall.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: A non-recoverable error has occurred [Please help me out here]
July 10, 2009, 11:55:50 am
Please start another thread for your issue - and include details about the "history" of your site and the database (existing since x.x version vs. new install etc.).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • A non-recoverable error has occurred [Please help me out here]

This forum was archived on 2017-11-26.