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) »
  • broken jquery, dashlets, action links = png fix conflict
Pages: [1]

Author Topic: broken jquery, dashlets, action links = png fix conflict  (Read 5318 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
broken jquery, dashlets, action links = png fix conflict
March 06, 2010, 03:12:02 am
Just a quick note to say there is a conflict between civicrm 3.1.3 and png fix (i.e drupal module called png fix which fixes pngs for IE 5 & 6)

Symptoms include action links not working.

autocomplete search not working

This error message
Javascript must be enabled in your browser in order to use the dashboard features.

Turning off png fix solves it.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: broken jquery, dashlets, action links = png fix conflict
March 07, 2010, 09:30:12 pm
It would be great if you can investigate and contribute patch for this.

thanks
Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: broken jquery, dashlets, action links = png fix conflict
March 08, 2010, 09:01:37 am
That is most probably a conflict between the jquery used in civicrm and the one in png fix.

Run it with firebug, see if you have error msg about missing functions autocomplete and so on. Likely that one erases the config of the other one (conflict on the "jQuery" name in the variables).
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: broken jquery, dashlets, action links = png fix conflict
March 08, 2010, 12:07:47 pm
Yes, my impression was that it was a jquery conflict although I didn't get to the bottom of it. There is another png fix type module out there I think. Is png fix a major / common module or is it only used by a small number of sites?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: broken jquery, dashlets, action links = png fix conflict
March 10, 2010, 04:12:30 am
I cant seem to get dashboard working properly either.

Joomla 1.5.15 and CiviCRM 3.1.1

Firebug reports
Error: cj("#civicrm-dashboard").dashboard is not a function
Source File: http://www.brightonpermaculture.org.uk/administrator/index.php?option=com_civicrm
Line: 808

Have disabled some other Joomla admin modules that may have created jquery conflicts (these are Joomla non core, ie non mootools based)

This upgrade was all about the dashboard. I am gonna compare with similar setup to see if errors are same.

Be good to know if this exists elsewhere/what quick fix is.

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: broken jquery, dashlets, action links = png fix conflict
March 10, 2010, 05:35:52 am
Can you check if you have correct resource url, ie http://www.brightonpermaculture.org.uk/.....

Kurund
Found this reply helpful? Support CiviCRM

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: broken jquery, dashlets, action links = png fix conflict
March 10, 2010, 08:15:32 am
OK have this fixed now though seems to be a path issue on reports (separate post for that)
What I did to fix this was the following - not sure it is advisable.

I went to the civicrm_domain table and copied it a s a backup (just in case)

I then deleted all the data in the 'config_backend' field

Accessing  the Joomla civicrm admin seems to automatically repopulates this data presumable from file system and config files.

Now version number is correct (see my other post) and dashboard / jquery is working.

Yay!

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: broken jquery, dashlets, action links = png fix conflict
March 10, 2010, 09:42:15 am
Well I spoke to soon.
This has stopped working. Jquery no longer works for dashboard and my reported version number has slipped back to 3.0.2.

Firebug reports :
Error: cj("#civicrm-dashboard").dashboard is not a function
Source File: url/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1
Line: 788

Of course Joomla uses mootools but civi should be running jquery in noconflict mode which it seems to be.... :(





xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: broken jquery, dashlets, action links = png fix conflict
March 10, 2010, 11:08:38 am
Have a look at the source of your page. Do you have two separate and different jquery lib that are loaded ? (one from civi, the other from another module) ?

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: broken jquery, dashlets, action links = png fix conflict SOLVED on Joomla
March 10, 2010, 01:30:58 pm
Thanks Xavier,
No there are not two copies of jquery but it appears that the calendar js files are missing from the joomla install package.
I just verified this by checking the path from the admin source code and looking for the files on the server.
They are not there.Eg below refs are missing.

Quote
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/js/calendar.js"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/js/lang/calendar-lang.php?en_US"></script>
<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/js/calendar-setup.js"></script>

I just extracted all joomla packages and looked for these files and cant find them.
I am not sure if the joomla civic version is looking for joomlas calendars javascript files or its own - I assume Civi has its own and that these are missing from the installers.

HOWEVER- just solved:
I just realised that my template overides for Civi includes the whole of the Civi templates directory in joomlas 'media/civicrm/custom".
I think this has created incorrect paths as above and them cached them.
Once i limited the custom templates to events and got rid of the rest (forcing Civi to use its default templates) AND deleted the cache its all looking alot more sensible!

My conclusion:
- Only overide templates you need one at a time and keep that cache clean
- Potential issues exist for advacned custom templates in joomla civi installs

cheers
Alan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • broken jquery, dashlets, action links = png fix conflict

This forum was archived on 2017-11-26.