Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3727
    DivaVocals
    Member

    Using the latest version with WP 3

    Getting the following error when I send invoice to client:

    Fatal error: Class ‘DOMPDF’ not found in /home2/XXXXXX/public_html/XXXXXX/wp-content/plugins/web-invoice/Functions.php on line 1060

    I’ve already deactivated and re-activated the plugin.. I have deleted and re-installed. Error still persists..

    #5473
    DivaVocals
    Member

    Found the answer myself.. These threads on two other forums gave me the nudge in the right direction:

    http://codeigniter.com/forums/viewreply/574249/

    http://drupal.org/node/552882#comment-2121560

    So I made the following change

    On line 1056 find this:

    require_once “lib/dompdf_config.inc.php”;

    Change to this:

    require_once “lib/dompdf_config.inc.php”;

    spl_autoload_register(‘DOMPDF_autoload’);

    ===================================================

    No more error, and the invoices generate correctly..

    Only thing left to do is to figure out how to update the invoice logo to include my logo instead of the red “X” of death.. Gonna work on the invoice formatting too.. The current format leaves a lot to be desired..

    #5476

    I can’t reproduce the issue and looking at the code the spl_autoload_register(‘DOMPDF_autoload’); is there in lib/dompdf_config.inc.php .

    Could I know which version (2.0.13?) you are using and your PHP version?

    Thanks for all the help

    #5479
    DivaVocals
    Member

    Using the VERY latest versions of your plugin and WordPress. My PHP Version is 5.2.13

    #5482
    cddrummergo
    Member

    I seem to be getting the same error, but can show it to you in a different way.

    My error shows itself when trying to email invoice to client.

    php -v

    PHP 5.3.2 (cli) (built: Mar 5 2010 15:31:46)

    Copyright (c) 1997-2010 The PHP Group

    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

    My Apache error logs.

    [Fri Aug 20 07:10:09 2010] [error] [client 173.203.xxx.xxx] PHP Warning: require_once(/home/xxx/public_html/wp-content/plugins/web-invoice/lib/dompdf/include/domdocument.cls.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/wp-content/plugins/web-invoice/lib/dompdf_config.inc.php on line 194, referer: http://www.xxxxxx.com/wp-admin/admin.php?page=new_web_invoice&web_invoice_action=save_and_preview

    [Fri Aug 20 07:10:09 2010] [error] [client 173.203.xxx.xxx] PHP Fatal error: require_once() [function.require]: Failed opening required ‘/home/xxxxxx/public_html/wp-content/plugins/web-invoice/lib/dompdf/include/domdocument.cls.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /home/xxxxxx/public_html/wp-content/plugins/web-invoice/lib/dompdf_config.inc.php on line 194, referer: http://www.xxxxxx.com/wp-admin/admin.php?page=new_web_invoice&web_invoice_action=save_and_preview

    [Sat

    #5485

    @cddrummergo, that’s because you don’t have the DOM extension enabled. See http://www.digitaljunkies.ca/dompdf/faq.php#dom

    Updated: Switched to don’t have from have

    #5488
    cddrummergo
    Member

    So i take it from your post I am not supposed to have the DOM extension enabled?

    When I go to that link, it states that the error is because I dont have the DOM extention enabled. ” This error occurs when the version of PHP that you are using does not have the DOM extension enabled.” is what the link you provided gives, but you state the opposite.

    ??

    #5491

    @cddrummergo, my bad, I missed don’t, now updated.

    #5494
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.