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 »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Dashlet in backend is not showing up
Pages: [1]

Author Topic: Dashlet in backend is not showing up  (Read 1063 times)

chaseweb

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Dashlet in backend is not showing up
November 26, 2012, 04:49:56 pm
Hi,

I am not sure why the dashlet is not showing up.  But I don't even see the link where it says configure your dashboard.
Everything else is working fine (at least the features I am using)

I am on Joomla 2.5.8, and Civi 4.2.6

Screenshot attached.

Thanks
Corey

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: Dashlet in backend is not showing up
November 26, 2012, 05:38:08 pm
Try flushing cache for joomla, civicrm and your browser and see if that doesn't help.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

chaseweb

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Re: Dashlet in backend is not showing up
November 27, 2012, 11:17:09 am
Hi,

Thanks for responding - I flushed all the caches Joomla, Browser, and Civicrm (Cleanup Caches)
And still the issue is there.

Corey

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: Dashlet in backend is not showing up
November 27, 2012, 11:36:17 am
Is it the entire dashboard or just a single dashlet?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Dashlet in backend is not showing up
November 27, 2012, 12:17:35 pm
Looks like Firebug is showing a javascript error in your screenshot (red x to far right). Check what the error(s) are.
Protect your investment in CiviCRM by  becoming a Member!

chaseweb

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Re: Dashlet in backend is not showing up
November 27, 2012, 12:33:34 pm
Hi,

Ok this is what the error is complaining about

Console Error
Timestamp: 11/27/2012 3:29:01 PM
Error: SyntaxError: unterminated string literal
Source File: http://womansclubofraleigh.org/administrator/index.php?option=com_civicrm
Line: 1044, Column: 31
Source Code:
        img_win.document.write('<html><head><script src="/media/dojo/20121127/a73d8699e28b1

Code: [Select]
OFC.jquery = {
         name: "jQuery",
           image: function(src) { return "<img src='data:image/png;base64," + $('#'+src)[0].get_img_binary() + "' />"},
           popup: function(src) {
          var img_win = window.open('', 'Save Chart as Image');
      [color=red][b]img_win.document.write('<html><head><script src="/media/dojo/20121127/a73d8699e28b186d694f709bf3f3abba.js" type="text/javascript"></script><title>Save Chart as Image<\/title><\/head><body>' + OFC.jquery.image(src) + ' <\/body><\/html>'); [/b][/color]
      img_win.document.close();
                       }
               }

Corey

chaseweb

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Re: Dashlet in backend is not showing up
November 27, 2012, 12:34:53 pm
Oh I didn't know I couldn't highlight with in
Code: [Select]
blocks so please ignore the [color and [b] blocks
here is the offending line of code

[code]]img_win.document.write('<html><head><script src="/media/dojo/20121127/a73d8699e28b186d694f709bf3f3abba.js" type="text/javascript"></script><title>Save Chart as Image<\/title><\/head><body>' + OFC.jquery.image(src) + ' <\/body><\/html>'); [/b][/color]
              img_win.document.close();

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dashlet in backend is not showing up
November 27, 2012, 05:12:58 pm
That line of code is in templates/CRM/common/openFlashChart.tpl  on line 48
However I just downloaded the 4.2.6 tarballs for J! (regular and alt) and neither one has the offending dojo script.
Please delete the contents of templates_c on your server. If that doesn't work, try going to the civicrm source files on your server and inspect the above file to see if it contains the dojo script (and if so, you should replace your civicrm code with a freshly downloaded one - but no need to reinstall)
Try asking your question on the new CiviCRM help site.

chaseweb

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Re: Dashlet in backend is not showing up
November 27, 2012, 07:06:54 pm
Hi,

I deleted the contents under media/civicrm/templates_c  (that didn't help)

When I inspect the file at line 48 - this is what I see

Code: [Select]
OFC.jquery = {
         name: "jQuery",
           image: function(src) { return "<img src='data:image/png;base64," + $('#'+src)[0].get_img_binary() + "' />"},
           popup: function(src) {
          var img_win = window.open('', 'Save Chart as Image');
      img_win.document.write('<html><head><title>Save Chart as Image<\/title><\/head><body>' + OFC.jquery.image(src) + ' <\/body><\/html>');
      img_win.document.close();
                       }
               }   

I don't even see a script tag?

Corey

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dashlet in backend is not showing up
November 27, 2012, 07:13:07 pm
That all looks correct. That is what the file is supposed to look like, and your markup (view page source) should look the same. I'm really not sure why an extra script is getting injected into your markup. This is not happening on the Joomla demo, so it may be unique to your setup.
Try asking your question on the new CiviCRM help site.

chaseweb

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Re: Dashlet in backend is not showing up
November 27, 2012, 07:47:16 pm
Ok I will dig in further.

Thanks
Corey

chaseweb

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Re: Dashlet in backend is not showing up
November 27, 2012, 07:58:55 pm
Just one question,

Is civi using dojo framework?  Is it civi who installs the js files in /media/dojo/....?
Because this file is really on the server so I am just trying to find out if civi installs this?

Thanks
Corey

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Dashlet in backend is not showing up
November 27, 2012, 08:04:09 pm
No, Civi does not use dojo.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Dashlet in backend is not showing up

This forum was archived on 2017-11-26.