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) »
  • Sorry. A non-recoverable error has occurred.
Pages: [1]

Author Topic: Sorry. A non-recoverable error has occurred.  (Read 3834 times)

marleyman

  • Guest
Sorry. A non-recoverable error has occurred.
January 20, 2010, 01:15:12 pm
Hi all,

I'm running Joomla 1.5
PHP 5.2.12
MySQL: 4.1.20

I installed: civicrm-3.1.beta5-joomla-alt.zip per the Instructions. After install I tried going to Components-->CiviCRM and I get the following Error:

    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]"]
)


Can anyone help me?
Thanks...really can't wait to get this baby up and running!

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Sorry. A non-recoverable error has occurred.
January 20, 2010, 02:04:13 pm
Civi require MySQL 5.0.x with innodb.

http://civicrm.org/aboutcivicrm

support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lseibert

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Sorry. A non-recoverable error has occurred.
February 01, 2010, 06:13:15 pm
I am getting the same error and our server is configured with the correct MySql & PHP.  I was trying to update an event.

    Sorry. A non-recoverable error has occurred.

    DB Error: no database selected

    Database Error Code: MySQL server has gone away, 2006

    Return to home page.

Error Details:

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

       
Code: [Select]
=> -14
    [message] => DB Error: no database selected
    [mode] => 16
    [debug_info] =>
(
  SELECT *
  FROM     civicrm_menu
  WHERE    path in ( 'civicrm/event/manage', 'civicrm/event', 'civicrm' )
            AND domain_id = 1
  ORDER BY length(path) DESC
  LIMIT    1
)

UNION (
  SELECT *
  FROM   civicrm_menu
  WHERE  path IN ( 'navigation' )
          AND domain_id = 1
)
 [nativecode=2006 ** MySQL server has gone away]
    [type] => DB_Error
    [user_info] =>
(
  SELECT *
  FROM     civicrm_menu
  WHERE    path in ( 'civicrm/event/manage', 'civicrm/event', 'civicrm' )
            AND domain_id = 1
  ORDER BY length(path) DESC
  LIMIT    1
)

UNION (
  SELECT *
  FROM   civicrm_menu
  WHERE  path IN ( 'navigation' )
          AND domain_id = 1
)
 [nativecode=2006 ** MySQL server has gone away]
    [to_string] => [db_error: message="DB Error: no database selected" code=-14 mode=callback callback=CRM_Core_Error::handle prefix="" info="
(
  SELECT *
  FROM     civicrm_menu
  WHERE    path in ( 'civicrm/event/manage', 'civicrm/event', 'civicrm' )
            AND domain_id = 1
  ORDER BY length(path) DESC
  LIMIT    1
)

UNION (
  SELECT *
  FROM   civicrm_menu
  WHERE  path IN ( 'navigation' )
          AND domain_id = 1
)
 [nativecode=2006 ** MySQL server has gone away]"]
)

gemmag

  • Guest
Re: Sorry. A non-recoverable error has occurred.
February 10, 2010, 12:28:45 am
I'm getting an error also. I'm using joomla and when I go components>CiviCRM the page doesn't load. If I click on "configure dashboard" I get the error below. If I click on "my contact dashboard" I get "Sorry. A non-recoverable error has occurred. You must be logged in to view this page"

I am a complete newbie, but contacted my host and they said I have MySQL 5.0.x with innodb. They can't figure out the problem, and suggested I contact CiviCRM for support.

If anyone could help it would be hugely appreciated - I'm on a serious deadline to get an NGO directory launched!


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 ')' at line 2, 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] =>
                    INSERT INTO civicrm_dashboard_contact ( dashboard_id, contact_id )
                    VALUES  ( 1,  ) [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 ')' at line 2]
    [type] => DB_Error
    [user_info] =>
                    INSERT INTO civicrm_dashboard_contact ( dashboard_id, contact_id )
                    VALUES  ( 1,  ) [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 ')' at line 2]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="
                    INSERT INTO civicrm_dashboard_contact ( dashboard_id, contact_id )
                    VALUES  ( 1,  ) [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 ')' at line 2]"]
)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Sorry. A non-recoverable error has occurred.
February 10, 2010, 03:31:31 pm
That query / error indicates that your logged in Joomla user doesn't have a linked CiviCRM contact. Have you tried logging out and back in to Joomla admin site?
Protect your investment in CiviCRM by  becoming a Member!

gemmag

  • Guest
Re: Sorry. A non-recoverable error has occurred.
February 11, 2010, 05:11:13 am
Hi Dave

Thank you very much for your reply.  :)

I have tried logging out and back in, but I am still getting the same error.

Gemma

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Sorry. A non-recoverable error has occurred.
February 12, 2010, 10:53:32 am
We've not seen that error before so I not sure what's going on. I assume this is a new installation, so you might try uninstalling and then installing the latest version (3.1.2) and see if that helps. I would also double-check the MySQL version your host is running.
Protect your investment in CiviCRM by  becoming a Member!

gemmag

  • Guest
Re: Sorry. A non-recoverable error has occurred.
February 16, 2010, 11:18:23 pm
Hi Dave

Thanks for your reply - much appreciated.  It is a new installation and I unintalled and then installed the new version on Joomla but still had the same problem.  I then tried installing on Drupal instead, and everything is working great :)

Thanks again
Gemma

nascent

  • I’m new here
  • *
  • Posts: 14
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla 1.5
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Sorry. A non-recoverable error has occurred.
July 21, 2010, 01:38:46 am
Hi, I've bumped this because I'm having exactly the same error as Gemma.

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

    [code] => -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] =>
DELETE FROM civicrm_acl_cache
WHERE  modified_date IS NULL OR (TIMESTAMPDIFF(MINUTE, modified_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, modified_date, NOW()) >= 0)' at line 2]
    [type] => DB_Error
    [user_info] =>
DELETE FROM civicrm_acl_cache
WHERE  modified_date IS NULL OR (TIMESTAMPDIFF(MINUTE, modified_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, modified_date, NOW()) >= 0)' at line 2]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="
DELETE FROM civicrm_acl_cache
WHERE  modified_date IS NULL OR (TIMESTAMPDIFF(MINUTE, modified_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, modified_date, NOW()) >= 0)' at line 2]"]
)

My setup on a dedicated managed server:

Joomla 1.5.18
PHP 5.2.13
MySQL 5.0.83 and I've definitely got Innodb enabled

mysql> show storage engines;
+------------+---------+------------------------------------------------------------+
| Engine     | Support | Comment                                                    |
+------------+---------+------------------------------------------------------------+
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance     |
| HEAP       | YES     | Alias for MEMORY                                           |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables  |
| MERGE      | YES     | Collection of identical MyISAM tables                      |
| MRG_MYISAM | YES     | Alias for MERGE                                            |
| ISAM       | YES     | Obsolete storage engine, now replaced by MyISAM            |
| MRG_ISAM   | YES     | Obsolete storage engine, now replaced by MERGE             |
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys |
| INNOBASE   | YES     | Alias for INNODB                                           |
| BDB        | YES     | Supports transactions and page-level locking               |
| BERKELEYDB | YES     | Alias for BDB                                              |
| NDBCLUSTER | NO      | Clustered, fault-tolerant, memory-based tables             |
| NDB        | NO      | Alias for NDBCLUSTER                                       |
| EXAMPLE    | NO      | Example storage engine                                     |
| ARCHIVE    | NO      | Archive storage engine                                     |
| CSV        | NO      | CSV storage engine                                         |
| BLACKHOLE  | NO      | Storage engine designed to act as null storage             |
+------------+---------+------------------------------------------------------------+

I've checked all the suggestions made in the thread above, including the civicrm_contact table and I do exist there as the only user.
If this is an issue with linking the civicrm user to the joomla user, how/where would that link show?

Unlike Gemma, I don't have the option of changing to Drupal.

cheers,
H.[/code]

nascent

  • I’m new here
  • *
  • Posts: 14
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla 1.5
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Sorry. A non-recoverable error has occurred.
July 21, 2010, 03:28:25 am
Update:
My Joomla/CiviCRM installation now working OK.
There seems to have been a problem somewhere in the database. I had previously successfully installed the CiviCRM component on my localhost, so I deleted all the database tables and copied over the tables from my localhost installation and then updated all the paths in CiviCRM.

One thing I noticed was that in the civicrm_contact table when the installation wasn't working, the id for the first user (me) was 6. In the civicrm_contact table that IS working, the id for the first user is 1. Don't know if this has something to do wit it, but thought it may help someone else.

cheers,
H.

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

This forum was archived on 2017-11-26.