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) »
  • PDF Letter Error...
Pages: [1]

Author Topic: PDF Letter Error...  (Read 749 times)

HajimaIchiro

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5
  • PHP version: 5.4
PDF Letter Error...
March 03, 2012, 03:33:13 pm
First post here, so I apologize if I've broken any rules/etiquette.

I'm running CiviCRM 4.1.1 on Joomla 2.5.1

When I go to print a PDF letter from a contact's page, I get this error after hitting the "Make PDF Letter" button:

500 - An error has occurred.
Passed array does not specify a callable static method

I've googled the error, and the only thing to come up is a conflict between an HTML Purifier plugin and Joomla 2.5.x. However, I don't have that plugin installed, so that can't be it. I can create PDF labels just fine, so I don't believe it's a problem with the PDF printer overall... I've tried disabling nonessential Joomla plugins (the only 3rd party thing I've installed is Akeeba Backup), but I'm really at a loss here. Any idea what might be causing this?

I tried looking at the error log in '/www/joomla/media/civicrm/ConfigAndLog', but there didn't seem to be anything there with the correct timestamp.

Thanks in advance.

HajimaIchiro

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5
  • PHP version: 5.4
Re: PDF Letter Error...
March 04, 2012, 02:11:18 am
Just thought I'd add an update in case anyone else was having this issue. It seems to have been an incompatibility with Joomla 2.5

I mentioned earlier that googling the error message only brought up information about an incompatibility between Joomla 2.5 and HTMLPurifier. Well, I managed to find a patched version of HTMLPurifier by Alessandro Pasotti. (Was going to post link to his site, but board won't let me)

Comparing that to the unpatched original version, I found the code I needed to modify in 'utils.php' under the PDF folder. Once I did that, it started working.

I was going to post the code I modified to get this working, but the board keeps thinking it contains external URLs and not letting me post. A little too strict if you ask me... Oh well. Thanks to everyone who took a look at this. Maybe I'll try submitting a bug report or something...

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: PDF Letter Error...
March 04, 2012, 06:54:10 am

can you create an issue at http://issues.civicrm.org/ and attach the patch that fixes it. I suspect other folks will hit it also and will be good to incorporate it into core

thanx a lot for updating this topic and submitting the patch

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

HajimaIchiro

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5
  • PHP version: 5.4
Re: PDF Letter Error...
March 04, 2012, 07:32:32 am
No problem. This was driving me nuts, and I happened to wake up at 3am today with an idea. I'm just glad it worked and I hope it helps. I just created issue #CRM-9807

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • PDF Letter Error...

This forum was archived on 2017-11-26.