Home › Forums › WordPress › Web Invoice – Invoicing and billing for WordPress › Errors with latest version
Tagged: dompdf, Functions.php on line 1060
- This topic has 8 replies, 3 voices, and was last updated 12 years, 9 months ago by
S H Mohanjith.
-
AuthorPosts
-
August 25, 2010 at 20:20 #3727
DivaVocals
MemberUsing 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..
August 26, 2010 at 01:03 #5473DivaVocals
MemberFound 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..
August 26, 2010 at 08:48 #5476S H Mohanjith
MemberI 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
August 26, 2010 at 20:02 #5479DivaVocals
MemberUsing the VERY latest versions of your plugin and WordPress. My PHP Version is 5.2.13
August 27, 2010 at 08:10 #5482cddrummergo
MemberI 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
August 27, 2010 at 11:08 #5485S H Mohanjith
Member@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
August 28, 2010 at 08:04 #5488cddrummergo
MemberSo 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.
??
August 28, 2010 at 11:54 #5491S H Mohanjith
Member@cddrummergo, my bad, I missed don’t, now updated.
September 8, 2010 at 15:19 #5494S H Mohanjith
Member -
AuthorPosts
- You must be logged in to reply to this topic.