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) »
  • Can't upgrade CiviCRM from 4.2.9 on wordpress due to JS errors
Pages: [1]

Author Topic: Can't upgrade CiviCRM from 4.2.9 on wordpress due to JS errors  (Read 1985 times)

rainerh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.24
  • MySQL version: 5.5.34-MariaDB
  • PHP version: 5.3.27
Can't upgrade CiviCRM from 4.2.9 on wordpress due to JS errors
April 19, 2013, 08:57:27 am
Hello,
I tried upgrading CiviCRM on wordpress from 4.2.8 to 4.3.0 and 4.2.9 to 4.3.0 and 4.3.1, same problem there. When I'm on the DB update page, firefox gives me the following errors:
Quote
Zeitstempel: 19.04.2013 12:13:03
Fehler: TypeError: CRM.url is not a function
Quelldatei: http://domain/wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1
Zeile: 1398

Zeitstempel: 19.04.2013 12:13:07
Fehler: ReferenceError: cj is not defined
Quelldatei: http://domain/wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1
Zeile: 952

After hitting the button nonetheless, the page reloads with an empty [] instead the progress bar and two buttons "retry" and "skip" that don't do anything. On that page, the errors are:

Quote
Zeitstempel: 19.04.2013 12:15:16
Fehler: TypeError: CRM.url is not a function
Quelldatei: http://domain/wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade/queue/runner&reset=1&qrid=CRM_Upgrade
Zeile: 1398

Zeitstempel: 19.04.2013 12:15:23
Fehler: ReferenceError: cj is not defined
Quelldatei: http://domain/wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade/queue/runner&reset=1&qrid=CRM_Upgrade
Zeile: 1419

Zeitstempel: 19.04.2013 12:15:24
Fehler: ReferenceError: cj is not defined
Quelldatei: http://domain/wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade/queue/runner&reset=1&qrid=CRM_Upgrade
Zeile: 953

I've got the needed MySQL user rights for 4.3.0 and I am using a non-standard theme. Upgrade from 4.2.8 to 4.2.9 worked smoothly as usual. I couldn't find anything on the forums or in the issue queue on this. Does anyone know how to solve this or how to debug this kind of JS bugs in general? Can I upgrade the DB manually?

Thanks for helping
rainer

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Can't upgrade CiviCRM from 4.2.9 on wordpress due to JS errors
April 19, 2013, 10:00:12 am
The problem is that your css and js are missing. This means Civi's header is not getting printed. Check CRM/Core/Region.php.
Not sure in your case, but often this is a caching issue. Deleting the contents of files/civicrm/templates_c often helps.
Try asking your question on the new CiviCRM help site.

rainerh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.24
  • MySQL version: 5.5.34-MariaDB
  • PHP version: 5.3.27
[solved] Re: Can't upgrade CiviCRM from 4.2.9 on wordpress due to JS errors
April 21, 2013, 05:45:47 am
thanks for pointing me in the right direction. Turned out that my CiviCRM Ressource URL was not set correctly in http://domain/wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/setting/url&reset=1

had to point it to http://domain/wp-content/plugins/civicrm/civicrm/, then the CSS and JS showed up and upgrade went smoothly.

No idea why it was working without problems with the wrong URL before...

thanks a lot
Rainer

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Can't upgrade CiviCRM from 4.2.9 on wordpress due to JS errors
April 21, 2013, 10:17:26 am
Quote
No idea why it was working without problems with the wrong URL before...

Probably it was more like "fewer problems" than "no problems" but having your settings be correct is recommended for any version.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Can't upgrade CiviCRM from 4.2.9 on wordpress due to JS errors

This forum was archived on 2017-11-26.