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) »
  • [Solved via facepunch] Javascript Errors All Over The Place
Pages: [1]

Author Topic: [Solved via facepunch] Javascript Errors All Over The Place  (Read 2108 times)

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
[Solved via facepunch] Javascript Errors All Over The Place
November 13, 2014, 11:49:13 am
Like Aliens... we are suddenly seeing all these javascript errors. They started soon after the 4.5.2 upgrade. Everything was working fine right after the upgrade and then a few days later, the menu up and disappeared. Nothing was changed on the Drupal 6 installation. Still digging into this but it is really weird.

Quote
SyntaxError: illegal character jquery-1.11.1.min.js:1
SyntaxError: illegal character jquery-ui.min.js:1
SyntaxError: illegal character lodash.compat.min.js:1
SyntaxError: illegal character jquery.mousewheel.min.js:1
SyntaxError: illegal character select2.min.js:1
SyntaxError: illegal character jquery.tableHeader.js:1
SyntaxError: illegal character jquery.textarearesizer.js:1
SyntaxError: illegal character jquery.form.min.js:1
SyntaxError: illegal character jquery.timeentry.min.js:1
SyntaxError: illegal character jquery.blockUI.min.js:1
SyntaxError: illegal character jquery.dataTables.min.js:1
SyntaxError: illegal character jquery.validate.min.js:1
SyntaxError: illegal character jquery.ui.datepicker.validation.pack.js:1
SyntaxError: illegal character Common.js:1
SyntaxError: illegal character crm.ajax.js:1
ReferenceError: jQuery is not defined jquery.menu.min.js:1
ReferenceError: jQuery is not defined jquery.jeditable.min.js:38
ReferenceError: jQuery is not defined jquery.notify.min.js:7
ReferenceError: jQuery is not defined jquery.crmeditable.js:157
ReferenceError: jQuery is not defined crm.optionEdit.js:2
SyntaxError: illegal character crm.drupal.js:1
ReferenceError: jQuery is not defined en_US:73
SyntaxError: illegal character noconflict.js:1
TypeError: CRM.$ is not a function runner:106

This investigation started when this started when we tried to upgrade to 4.5.3: http://forum.civicrm.org/index.php/topic,34728.0.html
« Last Edit: November 13, 2014, 07:20:41 pm by Coleman Watts »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 11:51:12 am
If you are using Drupal 6, see https://github.com/civicrm/civicrm-core/pull/4532
Try asking your question on the new CiviCRM help site.

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 11:56:02 am
Ah, sorry, keep missing you between the posts. Let me check that out.

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 12:02:39 pm
I applied the patch, cleared all the caches... still no joy. This is so weird.

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 02:22:13 pm
Is it possible the upload failed in some way?

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 02:57:34 pm
Have tried a fresh installation but I am still getting these javascript errors.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 05:21:20 pm
Those errors suggest that the files are not loading. Possibly due to a permissions problem? I suggest you "view page source" in your browser and click on one of the offending scripts and check out where the link takes you. My guess is you'll see a "page not found" or "access denied".
Try asking your question on the new CiviCRM help site.

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 06:43:36 pm
Whoa. I clicked on a bunch of the .js files and this is what came up in my text editor.

Going to look into the permissions.

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
Re: After Upgrade to 4.5.2 Javascript Errors All Over The Place
November 13, 2014, 07:14:31 pm
Oh, good lord.... I am going to punch someone... in the face! It looks like the client added a weird GZIP compression in the .htaccess file (something I should have checked earlier) and it looks like the files were going haywire with "compression sickness".

Aaaaand... upgrade goes smoothly after dealing with compression problems.

Someone is getting a talking to... tomorrow.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: [Solved via facepunch] Javascript Errors All Over The Place
November 13, 2014, 07:21:44 pm
Glad you found the culprit. Added [Solved via facepunch] to the issue title so others who come across this will see the appropriate solution ;)
Try asking your question on the new CiviCRM help site.

shanebee

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.x
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5.x
Re: [Solved via facepunch] Javascript Errors All Over The Place
November 13, 2014, 07:38:42 pm
It just reminds me that I need to check the basics first.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • [Solved via facepunch] Javascript Errors All Over The Place

This forum was archived on 2017-11-26.