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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Sorry. A non-recoverable error has occurred.
Pages: 1 2 [3] 4

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

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 23, 2011, 04:57:54 am
I ran that line manually and it gave no problems. That does in fact mean that I can run the upgrade script doest it?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Sorry. A non-recoverable error has occurred.
December 23, 2011, 05:23:20 am
The upgrade script will now fail, but you can edit CRM/Upgrade/Incremental/sql/3.4.1.mysql.tpl and remove the line you just ran and then, yes, try to upgrade again.
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.

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 23, 2011, 05:47:48 am
If I do that I get a the old error again, but now it says:

[debug_info] => UPDATE `civicrm_dashboard` SET fullscreen_url='civicrm/dashlet/activity&reset=1&snippet=4&context=dashletFullscreen' WHERE url='civicrm/dashlet/activity&reset=1&snippet=4';
UPDATE `civicrm_dashboard` SET fullscreen_url='civicrm/dashlet/myCases&reset=1&snippet=4&context=dashletFullscreen' WHERE url='civicrm/dashlet/myCases&reset=1&snippet=4';
UPDATE `civicrm_dashboard` SET fullscreen_url='civicrm/dashlet/allCases&reset=1&snippet=4&context=dashletFullscreen' WHERE url='civicrm/dashlet/allCases&reset=1&snippet=4';

Should I first run  the entire block below CRM 7796 in the 3.4.1. file manually, and then delete these lines (including the CRM-7796 line?) from that file?


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Sorry. A non-recoverable error has occurred.
December 23, 2011, 06:12:25 am
Quote from: TheoRichel on December 23, 2011, 05:47:48 am
Should I first run  the entire block below CRM 7796 in the 3.4.1. file manually, and then delete these lines (including the CRM-7796 line?) from that file?

Yes.
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.

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 23, 2011, 07:19:36 am
I did so, but again got a non recoverable error. If I follow the same recipe I should delete a lot more from that 3.4.1.mysql.tpl. See below a part of the source code:
div class="crm-accordion-body">
                                        <div class="crm-section">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 'DELETE FROM civicrm_navigation where name = 'Survey Types';
DELETE FROM civicrm' at line 2, 1064</div>
                                        <div class="crm-section">Additional Details: <p><pre>Array
(
    [callback] =&gt; Array
        (
           
  • =&gt; CRM_Core_Error
  • [1] =&gt; handle
            )

       
Code: [Select]
=&gt; -2
    [message] =&gt; DB Error: syntax error
    [mode] =&gt; 16
    [debug_info] =&gt; DELETE FROM civicrm_navigation where name = 'CiviCampaign';
DELETE FROM civicrm_navigation where name = 'Survey Types';
DELETE FROM civicrm_navigation where name = 'Campaign Types';
DELETE FROM civicrm_navigation where name = 'Campaign Status';
DELETE FROM civicrm_navigation where name = 'Engagement Index';

SELECT @administerID    := MAX(id) FROM civicrm_navigation where name = 'Administer';
SELECT @adminCampaignWeight := MAX(weight)+1 FROM civicrm_navigation where parent_id = @administerID;

INSERT INTO civicrm_navigation
    ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES     
    ( 1, NULL, 'CiviCampaign', 'CiviCampaign', 'administer CiviCampaign,administer CiviCRM', 'AND', @administerID, '1', NULL, @adminCampaignWeight );

SET @adminCampaignID:=LAST_INSERT_ID();

INSERT INTO civicrm_navigation
    ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES     
    ( 1, 'civicrm/admin/campaign/surveyType&amp;reset=1',                            'Survey Types',  'Survey Types', 'administer CiviCampaign',    '', @adminCampaignID, '1', NULL, 1 ),
    ( 1, 'civicrm/admin/options/campaign_type&amp;group=campaign_type&amp;reset=1',      'Campaign Types',  'Campaign Types', 'administer CiviCampaign',    '', @adminCampaignID, '1', NULL, 2 ),
    ( 1, 'civicrm/admin/options/campaign_status&amp;group=campaign_status&amp;reset=1',  'Campaign Status',  'Campaign Status', 'administer CiviCampaign',    '', @adminCampaignID, '1', NULL, 3 ),
    ( 1, 'civicrm/admin/options/engagement_index&amp;group=engagement_index&amp;reset=1','Engagement Index',  'Engagement Index', 'administer CiviCampaign', '', @adminCampaignID, '1', NULL, 4 );

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Sorry. A non-recoverable error has occurred.
December 24, 2011, 09:44:30 am
Sounds like there is a fundamental problem with your DB, perhaps a partial upgrade. I can't really offer any advice aside from following this idea of running the SQL manually and then removing it from the file.

If the SQL worked manually, then it sounds like it's not a partial upgrade actually, but why you get those errors I really don't know.
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.

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 26, 2011, 07:20:15 am
Allright. Thanks so far. I would like to try to install then Civicrm 3.4.1. now and do it another way, in sofar that up till now I ftp the decompressed Civicrm files to the civicrm-folder. This is 50 mb and takes many hours, so now I would now do it the recommended way, upload the compressed file and decompress on the site.
The upgrade manual says:

Unpack the files into <drupal home>/sites/all/modules/.

// Modify this line to use your real drupal root cd <drupal home>/sites/all/modules // Modify this line with the actual downloaded package file name tar -xzf civicrm_download_file.tgz

But to begin with I have no idea how to get this files there if i do not use Dreamweaver. I know a tiny bit about how to use putty. Is there some sort of dummy guide for this?
I suppose I should first go to /sites/all/modules?
Then upload the package (with which command?)
Then unpack it with the command: 'tar -xzf civicrm_download_file.tgz' ??




Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Sorry. A non-recoverable error has occurred.
December 26, 2011, 07:22:28 am
Upload the package using FTP or using the control panel. Actually control panel is best because most control panels allow you to click on a file, once it's uploaded, and it will unzip it for you. Try that.
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.

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 27, 2011, 12:44:46 pm
I have uploaded Civicrm 3.4.1, uploaded the backup of the 3.4.0 tables and tried to run the upgrade script which immediately ended with 4 instances of:

user warning: Smarty error: unable to read resource: "CRM/common/jquery.files.tpl" in /home/theorichel/domains/grkmain.com/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1093.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Sorry. A non-recoverable error has occurred.
December 28, 2011, 01:08:02 am
Do you have the file  /home/theorichel/domains/grkmain.com/public_html/sites/all/modules/civicrm/templates/CRM/common/jquery.files.tpl ?
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.

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 28, 2011, 02:21:23 am
Thanks. That was indeed the problem. Since I couldnt make the filemanager in my control panel working (but that is another story) I plainly decompressed the Civicrm files locally and then uploaded the whole thing (50 mb) with FTP. Although I have a reliable connection, this upload always stopped somewhere in the TinyMCE directory and the rest of the files would have to be put afterwards. This time I had the impression that everything had gone well, but it hadnt. I uploaded the missing files and Civcirm runs again. I understand that uploading 50 mb in individual files can pose problems, but the number of times Civicrm failed in this respect is really exceptional.
Anyway, many thanks for your help, without it this problem wouldnt have been solved.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Sorry. A non-recoverable error has occurred.
December 28, 2011, 02:34:48 am
My pleasure. :)
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.

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 28, 2011, 03:36:32 am
I was a bit too early alas. Since the smarty error meant that the upgrade wasnt terminated properly, I decided to deleted the tables, reupload the backup and run the upgade script again. It ended with the familiar non recoverable db error. This time I didnt have to open the page source, the error is clearly displayed, here the upper part:
-----------------------------
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 'UPDATE `civicrm_dashboard` SET fullscreen_url='civicrm/dashlet/activity&reset=1&' at line 3, 1064
Additional Details:

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

       
Code: [Select]
=> -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] => ALTER TABLE `civicrm_dashboard` ADD `fullscreen_url` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'fullscreen url for dashlet';

UPDATE `civicrm_dashboard` SET fullscreen_url='civicrm/dashlet/activity&reset=1&snippet=4&context=dashletFullscreen' WHERE url='civicrm/dashlet/activity&reset=1&snippet=4';
UPDATE `civicrm_dashboard` SET fullscreen_url='civicrm/dashlet/myCases&reset=1&snippet=4&context=dashletFullscreen' WHERE url='civicrm/dashlet/myCases&reset=1&snippet=4';
UPDATE `civicrm_dashboard` SET fullscreen_url='civicrm/dashlet/allCases&reset=1&snippet=4&context=dashletFullscreen' WHERE url='civicrm/dashlet/allCases&reset=1&snippet=4';

DELETE FROM civicrm_navigation where name = 'CiviCampaign';
DELETE FROM civicrm_navigation where name = 'Survey Types';
DELETE FROM civicrm_navigation where name = 'Campaign Types';
DELETE FROM civicrm_navigation where name = 'Campaign Status';
DELETE FROM civicrm_navigation where name = 'Engagement Index';

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

Afterwards I managed to add the field 'fullscreen url' manually but it is of not much use I think.
This is an upgrade from 3.4.0 to 3.4.1

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 28, 2011, 03:52:10 am
What if I
1. Delete and reupload the backup
2 Run the whole content of 3.4.1.mysql.tpl as an sql command
3. Delete the latter file on the site
4. Run the upgrade script?

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: Sorry. A non-recoverable error has occurred.
December 28, 2011, 04:09:12 am
No that doesnt work: Error

SQL query:

INSERT INTO civicrm_navigation(
domain_id,
url,
label,
name,
permission,
permission_operator,
parent_id,
is_active,
has_separator,
weight
)
VALUES (
{$domainID}, NULL , '{ts escape="sql" skip="true"}CiviCampaign{/ts}', 'CiviCampaign', 'administer CiviCampaign,administer CiviCRM', 'AND', @administerID , '1', NULL , @adminCampaignWeight
);

MySQL said: Documentation
#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 '}, NULL, '{ts escape=&quot;sql&quot; skip=&quot;true&quot;}CiviCampaign{/ts}', 'CiviCampaign', 'admi' at line 4

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

This forum was archived on 2017-11-26.