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

    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..


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

    So I made the following change

    On line 1056 find this:

    require_once “lib/”;

    Change to this:

    require_once “lib/”;



    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..


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

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

    Thanks for all the help


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


    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] 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/ on line 194, referer:

    [Fri Aug 20 07:10:09 2010] [error] [client] 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/ on line 194, referer:



    @cddrummergo, that’s because you don’t have the DOM extension enabled. See

    Updated: Switched to don’t have from have


    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.



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

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