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) »
  • Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
Pages: [1]

Author Topic: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined  (Read 1749 times)

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 13, 2013, 01:58:06 pm
Following the upgrade steps on the upgrade page, I can view the Upgrade page at /civicrm/upgrade?reset=1. I can click Upgrade Now, but what happens is I land on a page that does nothing:

CiviCRM Upgrade Tasks
[]     Retry  Skip

I get the following error in my console: ReferenceError: cj is not defined @ http://[mydomain]/civicrm/upgrade/queue/runner?reset=1&qrid=CRM_Upgrade:85

A search around the internet suggests this might be a problem with JQuery update. I do have jquery_update installed. Disabling it does not solve my issue.

PHP is 5.3.15.

Anyone know how to fix this?

Update: cleared my templates_c folder. Could not clear all caches with Drush; the menu cache dumps a bunch of CiviCRM html to my terminal screen:

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <base href="http://rcaaup.mayfirst.org/sites/all/modules/civicrm/" />
  <style type="text/css" media="screen">@import url(http://rcaaup.mayfirst.org/sites/all/modules/civicrm/css/civicrm.css);</style>
  <style type="text/css" media="screen">@import url(http://rcaaup.mayfirst.org/sites/all/modules/civicrm/css/extras.css);</style>
</head>
<body>
<div id="crm-container" class="crm-container" lang="en" xml:lang="en">
<div class="messages status no-popup">  <div class="icon red-icon alert-icon"></div>
 <span class="status-fatal">Sorry but we are not able to provide this at the moment.</span>
    <div class="crm-section crm-error-message"></div>
            <hr style="solid 1px" />
        <div class="crm-section crm-error-message">DB Error: no such field</div>
            <p><a href="http://rcaaup.mayfirst.org/" title="Main Menu">Return to home page.</a></p>
</div>
</div>
<script language="JavaScript">
function toggle( element ) {
    var className = element.className;
    if ( className  == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') {
        element.className = 'crm-accordion-wrapper  crm-fatal-error-details-block';
    } else {
        element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block';
    }
}
</script>

</body>
</html>

The reason I need to update is that my host updated their PHP, and now CiviCRM is throwing a bunch of "Strict warning: Non-static method" errors regarding calls from CiviCRM. These errors might also be preventing the upgrade?
« Last Edit: November 13, 2013, 06:06:04 pm by slamorte »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 13, 2013, 06:18:54 pm
Try using drush to upgrade rather than the web UI.
Try asking your question on the new CiviCRM help site.

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 13, 2013, 11:20:22 pm
I get more nutty output:

$ drush cvupdb
Upgrade outputs: "<br />Membership renewal reminders must now be configured using the Schedule Reminders feature, which supports multiple renewal reminders  (Administer > Communications > Schedule Reminders). The Update Membership Statuses scheduled job will no longer send membershp renewal reminders. You can use your existing renewal reminder message template(s) with the Schedule Reminders feature.<br />The Set Membership Reminder Dates scheduled job has been deleted since membership reminder dates stored in the membership table are no longer in use.<br />A new organization contact has been added as the default domain contact using the information from your Organization Address and Contact Info settings: 'Rutgers Council of AAUP Chapters'.<br />Default versions of the following System Workflow Message Templates have been modified to handle new functionality: <ul><li>Events - Registration Confirmation and Receipt (on-line)</li><li>Events - Registration Confirmation and Receipt (off-line)</li><li>Pledges - Acknowledgement</li><li>Pledges - Payment Reminder</li><li>Contributions - Receipt (off-line)</li><li>Contributions - Receipt (on-line)</li><li>Memberships - Signup and Renewal Receipts (off-line)</li><li>Memberships - Receipt (on-line)</li><li>Personal Campaign Pages - Admin Notification</li></ul> If you have modified these templates, please review the new default versions and implement updates as needed to your copies (Administer > Communications > Message Templates > System Workflow Messages).<br />If you are interested in trying out the new Accounting Integration features, please review user permissions and assign the new 'manual batch' permissions as appropriate.<br />System Administrator Alert: If you are running scheduled jobs using CLI.php, you will need to reconfigure cron tasks to include a password. Scheduled jobs will no longer run if the password is not provided (<a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs" target="_blank">learn more</a>).<br />Default versions of the following System Workflow Message Templates have been modified to handle new functionality: <ul><li>Events - Registration Confirmation and Receipt (on-line)</li><li>Events - Registration Confirmation and Receipt (off-line)</li></ul> If you have modified these templates, please review the new default versions and implement updates as needed to your copies (Administer > Communications > Message Templates > System Workflow Messages)."

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 14, 2013, 12:07:45 am
Formatting aside, the content is pretty much what you'd get from a successful normal upgrade. check out the items described (eg. membership renewal reminders+ msg tpl if you did alter them)

Go back to the upgrade url, you should get a message saying you're already upgraded.

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

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 14, 2013, 12:54:43 am
Before upgrade can you try clearing templates_c folder

Kurund
Found this reply helpful? Support CiviCRM

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 14, 2013, 07:39:38 am
Ah, I didn't know that was the correct results for a drush upgrade.

I had a further issue with there being no CiviCRM shortcut and no CiviCRM admin bar. Drush cc [5] menus seems to have fixed this issue.

I think my upgrade issue is resolved, thank you!

Sadly it didn't fix the issue I was trying to fix in the first place, which is:

Code: [Select]
Strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in CRM_Core_Block::setTemplateValues() (line 587 of /home/members/rutgersaaupaft/sites/rutgersaaup.org/web/sites/all/modules/civicrm/CRM/Core/Block.php).
That may need to be another bug report.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 14, 2013, 11:36:43 pm
That's not the error you listed in your first post that you wanted to fix "in the first place."

I understand you want your error log to be perfect, but warnings and notices can usually be ignored.

Also, change to a default template before upgrading, the one that comes 'standard' with your CMS
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 15, 2013, 12:16:10 am
I would suggest following:

- restore back to 4.2.7 and make sure everything works
- delete templates_c folder
- follow upgrade instruction via web ( not drush )

Hth
Kurund
Found this reply helpful? Support CiviCRM

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 15, 2013, 02:43:00 pm
Quote from: CiviTeacher.com on November 14, 2013, 11:36:43 pm
That's not the error you listed in your first post that you wanted to fix "in the first place."

That's because that was another bug ticket. Upgrading CiviCRM was the recommended solution. That's what brought me here.

Quote
I understand you want your error log to be perfect, but warnings and notices can usually be ignored.

It's not about my log. The errors are displayed on the website page, to the public, at the top of every page with CiviCRM content. Since I use CiviCRM for events listings in the sidebar, that means every page is displaying 2-10 "Strict Warning" messages to the public.

Quote
Also, change to a default template before upgrading, the one that comes 'standard' with your CMS

Do you mean default theme? Not sure what you mean by default template.

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Re: Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined
November 15, 2013, 02:45:16 pm
Quote from: Kurund Jalmi on November 15, 2013, 12:16:10 am
I would suggest following:

- restore back to 4.2.7 and make sure everything works
- delete templates_c folder
- follow upgrade instruction via web ( not drush )

Hth
Kurund
[/quote

Thanks Kurund, but I have already done this. 4.2.7 works great on my live site, and works great on my dev site when I port it over from the live. But I cannot upgrade via the web at all, as per the errors I have discussed here, even if I delete the templates and clear the cache. The upgrade webpage simply does nothing at all. Drush, on the other hand, successfully upgrades me to 4.3.x.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.2.7 to 4.3/4.4 fails: ReferenceError: cj is not defined

This forum was archived on 2017-11-26.