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 (Moderator: Dave Greenberg) »
  • PDF letter doesn't display in activities
Pages: [1]

Author Topic: PDF letter doesn't display in activities  (Read 1271 times)

Jsu1972

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: 5.0.8
  • PHP version: 5.3.6
PDF letter doesn't display in activities
February 12, 2012, 11:55:48 pm
When I create a PDF letter it doesn't display in the activities tab. The tab count shows there are activities there but nothing shows up. I am working on a fresh install of the system.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PDF letter doesn't display in activities
February 14, 2012, 11:16:53 am
Possibly a site configuration problem preventing the listing from being retrieved. Do you see any Javascript errors? Try enabling Firebug console on Firefox and check the ajax calls. You should see a URL like this:

http://drupal.demo.civicrm.org/civicrm/ajax/contactactivity?snippet=4&context=activity&cid=27

You can open that URL in a new tab and see if you get data or errors.
Protect your investment in CiviCRM by  becoming a Member!

Jsu1972

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: 5.0.8
  • PHP version: 5.3.6
Re: PDF letter doesn't display in activities
February 21, 2012, 02:40:04 pm
thanks for the reply! as this is one of several projects i was delayed in getting around to checking this.  below is that i get from firebug.  it looks like a problem in the ajax as you mentioned but i'm a little lost on how to fix it. and i can't paste in the firebug results because it says i can't post external links.  i did try to open the url as you mentioned when i open it in a new tab there are 2 errors in firebug that says "cj is not defined"

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PDF letter doesn't display in activities
February 22, 2012, 12:02:03 pm
May be conflict between Drupal jQuery and CiviCRM jQuery instance (or another module you have enabled). You might try searching on that error and see if you get clues. There's been some work on preventing conflicts in the 4.1 release which is now stable - so you could try a test upgrade and see if that fixes things.
Protect your investment in CiviCRM by  becoming a Member!

Jsu1972

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: 5.0.8
  • PHP version: 5.3.6
Re: PDF letter doesn't display in activities
February 22, 2012, 12:59:20 pm
I've tried searching for the error but no luck.  I also tried upgrading both drupal to 7.12 and civicrm to 4.1. No luck.  As I mentioned before this was a brand new installation of drupal and civicrm. The top of the error (just below the link you posted before) says

cj("#contact-activity-selector-" + context).dataTable is not a function

if i open it in a new tab the errors below show up twice

cj is not defined
()index....1&cid=1 (line 306)
[Break On This Error]    

cj('#crm-container')

index....1&cid=1 (line 306)

and then a bunch of code below in the jquery. section.  Is there anything specific from there i need to look at? it looks like it's trying to call some function cj that is not defined?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PDF letter doesn't display in activities
February 23, 2012, 12:28:15 pm
1. which theme are u using. may be try with default garland.
2. try clearing drupal cache (admin / performance) and clearing CiviCRM template cache (delete templates_c folder and sub-folders under files/civicrm)
3. check Resource URL setting (CiviCRM > Administer > System Settings)

Attach screenshots if none of above helps.
Protect your investment in CiviCRM by  becoming a Member!

Jsu1972

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: 5.0.8
  • PHP version: 5.3.6
Re: PDF letter doesn't display in activities
February 23, 2012, 02:20:22 pm
I've completed the things mentioned but it still didn't help. I was already using garland, caches were recleared, and url were correct.  here is the screen shot.

Jsu1972

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: 5.0.8
  • PHP version: 5.3.6
Re: PDF letter doesn't display in activities
February 23, 2012, 02:25:44 pm
here is the picture if i right click

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PDF letter doesn't display in activities
February 23, 2012, 04:38:59 pm
The problem seems to be that your getting a 500 Internal Server Error trying to access the dataTables plugin javascript file (so some server configuration issue). Best bet is to copy / paste that first URL (the one that's reporting the 500 error) into your browser and verify you get the 500 error. Then you'll need to figure out why (permissions issue or ???).
Protect your investment in CiviCRM by  becoming a Member!

Jsu1972

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • MySQL version: 5.0.8
  • PHP version: 5.3.6
Re: PDF letter doesn't display in activities
February 23, 2012, 05:14:22 pm
ok thanks for all your help! thought i'd give you the final fix just in case someone else has the same problem.  I'm using multi site and virtual document roots.  in the drupal .htaccess there is a section that says you need to uncomment the "RewriteBase /" line. I did this and it fixed the internal 500 errors and activities snow up now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • PDF letter doesn't display in activities

This forum was archived on 2017-11-26.