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 CiviContribute (Moderator: Donald Lobo) »
  • Error Help please
Pages: [1]

Author Topic: Error Help please  (Read 3027 times)

nightlrd

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Joomla 1.5
Error Help please
October 10, 2008, 06:53:37 am
Hi,
From contribute page, I try to print recipts of contributions I have recieved (which says it will download a PDF to local computer) and I get the following error:

Fatal error: Class 'DOMPDF' not found in /Site directory/xxx/xxx/site/administrator/components/com_civicrm/civicrm/CRM/Utils/PDF/Utils.php on line 42

Setup is CiviCRM 2.1 on a Joomla 1.5.7 system.

Thanks for any help.

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: Error Help please
October 10, 2008, 07:06:16 am

We've had some issues with packages like dompdf using autoload etc (since joomla also uses autoload) and might defer the fix for this till we figure out how to do it without any major hacks

You will need to hack a joomla core files (libraries/loader.php) to make this work

Code: [Select]
*** 159,168 ****
--- 159,171 ----
  function __autoload($class)
  {
        if(JLoader::load($class)) {
                return true;
        }
+     if ( function_exists( 'DOMPDF_autoload' ) ) {
+         return DOMPDF_autoload( $class );
+     }
        return false;
  }

lobo
« Last Edit: October 10, 2008, 08:19:10 am by Donald 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

andrew.cloudaccess

  • Guest
Re: Error Help please
December 21, 2010, 07:17:04 am
Please don't use the above advice, by doing so you're asking for trouble every time you will upgrade Joomla or Civi. Instead please ask developers to fix bug 7252: http://issues.civicrm.org/jira/browse/CRM-7252

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error Help please

This forum was archived on 2017-11-26.