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) »
  • 4.3 CSS and JavaScript missing intermittedly
Pages: 1 [2] 3

Author Topic: 4.3 CSS and JavaScript missing intermittedly  (Read 4866 times)

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: 4.3 CSS and JavaScript missing intermittedly
May 16, 2013, 07:47:17 am
I have disabled Context and all other modules I don't absolutely need, but still no luck. I am still getting intermittent javascript fails.

When I run the database upgrade I get a message that "Some of the pending updates cannot be applied because their dependencies were not met." However, it does not tell me which updates cannot be applied.

The only caching I had was the Performance module, and I have tried disabling all caching.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 4.3 CSS and JavaScript missing intermittedly
May 18, 2013, 03:12:51 pm
Quote from: erogers on May 16, 2013, 07:47:17 am
I have disabled Context and all other modules I don't absolutely need, but still no luck. I am still getting intermittent javascript fails.

I'm not sure. What I would suggest is you get the source code of a page that fails and then the same page (same URL) when it works and compare them. Maybe you can see a difference.
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.

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 04:29:55 am
Hershel, thanks for looking again. I did this. My first post in this thread shows the differences between the good and bad versions of the same page.

Quote from: Hershel on May 18, 2013, 03:12:51 pm
I'm not sure. What I would suggest is you get the source code of a page that fails and then the same page (same URL) when it works and compare them. Maybe you can see a difference.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 04:38:51 am
Yes, I see now. It's quite odd. Can you try another theme? Perhaps on a copy of the site if you don't want to ruin your live site.

Also with CSS/JS caching it's the same? I think you said that it is. If so, it's even more bizarre. It almost looks as if CiviCRM is being throttled....
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.

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 05:38:52 am
I have tried it with Garland and Stark themes. It also happens on the Civi admin interface, which is using garland.  I have tried all combinations of page, block, css, and JS caching settings, including disabling all caching and truncating all drupal/civi cache tables.

FWIW, I am also experiencing the broken civicron problems that many others have reported on this forum since 4.3.0.

I am at a loss. I am willing to spend some resources on outside help, but I am rapidly approaching the point where it will make more sense to migrate away from Drupal/Civi rather than continue to invest time and energy in fixing this. We depend on Civi for online fundraising and event ticketing, and this has been going on for almost a month during our busiest time of the year.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 07:16:10 am

few thoughts:

1. the first error message seems to come from a drupal upgrade rather than a civi upgrade (unmet dependencies)

2. sometimes, its a lot easier and better to get someone skilled and knowledgeable at stuff to do major upgrades

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

secularaugust

  • I’m new here
  • *
  • Posts: 26
  • Karma: -1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1.41-3ubuntu12.10
  • PHP version: 5.3
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 11:20:12 am
Also just upgraded to 4.3.3 and we're getting a very similar problem.

I've tried tried switching over to Garland, but the errors are the same.

I think our Resource URLs are correct.

I cleared files/civicrm/templates_c.

It seems like there is supposed to be some kind of redirect to the jquery libraries in Civi, but it's not working. 

When I look in the /sites/all/modules/civicrm/packages/jquery/, the files it's calling aren't there. 

For example, there's a jquery-1.8.3.min.js file in there, but no jquery.min.js (which is what is being called).

Here's what I'm getting in my console:

Code: [Select]
[14:04:15.977] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/jquery.min.js [HTTP/1.1 404 Not Found 3189ms]
[14:04:15.978] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/jquery-ui-1.8.16/js/jquery-ui-1.8.16.custom.min.js [HTTP/1.1 404 Not Found 3132ms]
[14:04:15.978] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.contextMenu.js [HTTP/1.1 404 Not Found 2718ms]
[14:04:15.979] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.toolTip.js [HTTP/1.1 404 Not Found 2594ms]
[14:04:15.979] GET https://www.secularstudents.org/sites/all/modules/civicrm/js/jquery/jquery.crmaccordions.js [HTTP/1.1 404 Not Found 3108ms]
[14:04:15.980] GET https://www.secularstudents.org/sites/all/modules/civicrm/js/jquery/jquery.crmtooltip.js [HTTP/1.1 404 Not Found 3482ms]
[14:04:15.980] GET https://www.secularstudents.org/sites/all/modules/civicrm/js/jquery/jquery.crmrowhighlighter.js [HTTP/1.1 404 Not Found 3566ms]
[14:04:15.981] GET https://www.secularstudents.org/sites/all/modules/civicrm/css/deprecate.css [HTTP/1.1 404 Not Found 1710ms]
[14:04:16.806] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/DataTables-1.7.6/media/js/jquery.dataTables.min.js [HTTP/1.1 404 Not Found 2764ms]
[14:04:19.158] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/jquery-ui-1.8.16/js/jquery-ui-1.8.16.custom.min.js [HTTP/1.1 404 Not Found 979ms]
[14:04:20.145] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/jquery-ui-1.8.16/css/smoothness/jquery-ui-1.8.16.custom.css [HTTP/1.1 404 Not Found 891ms]
[14:04:21.078] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jstree/themes/default/jstree.css [HTTP/1.1 404 Not Found 988ms]
[14:04:22.081] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.contextMenu.js [HTTP/1.1 404 Not Found 765ms]
[14:04:22.860] TypeError: $ is not a function @ https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.textarearesizer.js:1
[14:04:22.920] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.toolTip.js [HTTP/1.1 404 Not Found 718ms]
[14:04:23.655] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/DataTables-1.7.6/media/js/jquery.dataTables.min.js [HTTP/1.1 404 Not Found 2778ms]
[14:04:26.445] GET https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/DataTables-1.7.6/media/css/demo_table_jui.css [HTTP/1.1 404 Not Found 1080ms]
[14:04:27.494] TypeError: $.datepicker is undefined @ https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.ui.datepicker.validation.pack.js:2
[14:04:27.495] ReferenceError: cj is not defined @ https://www.secularstudents.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery-fieldselection.js:2
[14:04:27.537] GET https://www.secularstudents.org/sites/all/modules/civicrm/js/jquery/jquery.crmaccordions.js [HTTP/1.1 404 Not Found 998ms]
[14:04:28.535] GET https://www.secularstudents.org/sites/all/modules/civicrm/js/jquery/jquery.crmtooltip.js [HTTP/1.1 404 Not Found 1003ms]
[14:04:29.549] GET https://www.secularstudents.org/sites/all/modules/civicrm/js/jquery/jquery.crmrowhighlighter.js [HTTP/1.1 404 Not Found 2780ms]

Any ideas?

Thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 11:49:51 am

try deleting templates_c and see if that fixes it. Seems like some old stale cached files?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 12:09:41 pm
It does, but secularaugust wrote that templates_c was cleaned out.

secularaugust, did you also clear Drupal's caches? Do you have any special caching tools on your site?
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.

secularaugust

  • I’m new here
  • *
  • Posts: 26
  • Karma: -1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1.41-3ubuntu12.10
  • PHP version: 5.3
Re: 4.3 CSS and JavaScript missing intermittedly
May 21, 2013, 02:00:21 pm
Thanks.

Yeah, templates_c and all caches (Drupal and otherwise) have been cleared.

I notice that there are references to jquery.min.js in two places in civi...

packages/PHP/CodeCoverage/Report/HTML.php:          'jquery.min.js',
packages/PHP/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist:    <script src="jquery.min.js" type="text/javascript"></script>

I don't have the first clue if this should matter or not (I'm guessing not).

There might be more caching that my sys. admin knows about.  I'll keep hunting.

Thanks again.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: 4.3 CSS and JavaScript missing intermittedly
May 22, 2013, 12:39:02 pm
Can you look at civicrm/templates/CRM/common/jquery.files.tpl
It should be listing the correct version of jQuery.
Try asking your question on the new CiviCRM help site.

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: 4.3 CSS and JavaScript missing intermittedly
May 22, 2013, 12:55:19 pm
The first few lines of my jquery.tiles.tpl:

packages/jquery/jquery-1.8.3.min.js
packages/jquery/jquery-ui-1.9.0/js/jquery-ui-1.9.0.custom.min.js
packages/jquery/jquery-ui-1.9.0/css/smoothness/jquery-ui-1.9.0.custom.min.css


Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: 4.3 CSS and JavaScript missing intermittedly
May 22, 2013, 01:09:25 pm
And yet it's somehow not reading that file... caching is the only explanation I can think of for that. Do you have more than one files directory? Do a search for any directory named templates_c.
Also you can clear caches by visiting /civicrm/admin/setting/updateConfigBackend?reset=1 and pressing the clear cache button.
Try asking your question on the new CiviCRM help site.

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: 4.3 CSS and JavaScript missing intermittedly
May 22, 2013, 03:20:57 pm
As mentioned above, I have cleared all caching, turned off caching in the Performance preference. I have also manually truncated all civi and Drupal cache tables.

secularaugust

  • I’m new here
  • *
  • Posts: 26
  • Karma: -1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1.41-3ubuntu12.10
  • PHP version: 5.3
Re: 4.3 CSS and JavaScript missing intermittedly
May 23, 2013, 08:37:58 am
In our case it turned out to be an old Mailing List Subscription block that we'd created with an earlier version of Civi.  [facepalm]

Thanks again.

Quote from: secularaugust on May 21, 2013, 02:00:21 pm
Thanks.

Yeah, templates_c and all caches (Drupal and otherwise) have been cleared.

I notice that there are references to jquery.min.js in two places in civi...

packages/PHP/CodeCoverage/Report/HTML.php:          'jquery.min.js',
packages/PHP/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist:    <script src="jquery.min.js" type="text/javascript"></script>

I don't have the first clue if this should matter or not (I'm guessing not).

There might be more caching that my sys. admin knows about.  I'll keep hunting.

Thanks again.

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 4.3 CSS and JavaScript missing intermittedly

This forum was archived on 2017-11-26.