Simple Invoices logo
    •  
      CommentAuthorFakeMoth
    • CommentTimeAug 15th 2007 edited
     permalink
    Hi,
    First: a very useful piece of software - congrats!
    Second: I really don't know why, but suddenly I have a page full of errors when I try to generate .pdf. I didn't mess with the files mentioned and I don't know what's this about. I also tried to overwrite them with fresh ones from the .zip, but no effect. Could you help me?

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: String not started expecting ' or " in Entity, line: 1 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Malformed declaration expecting version in Entity, line: 1 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Blank needed here in Entity, line: 1 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: parsing XML declaration: '?>' expected in Entity, line: 1 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: AttValue: " or ' expected in Entity, line: 6 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: attributes construct error in Entity, line: 6 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Couldn't find end of Start Tag family line 6 in Entity, line: 6 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: AttValue: " or ' expected in Entity, line: 7 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: attributes construct error in Entity, line: 7 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Couldn't find end of Start Tag normal line 7 in Entity, line: 7 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: AttValue: " or ' expected in Entity, line: 8 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: attributes construct error in Entity, line: 8 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Couldn't find end of Start Tag bold line 8 in Entity, line: 8 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: AttValue: " or ' expected in Entity, line: 10 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: attributes construct error in Entity, line: 10 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Couldn't find end of Start Tag encoding-override line 10 in Entity, line: 10 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: AttValue: " or ' expected in Entity, line: 11 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: attributes construct error in Entity, line: 11 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Couldn't find end of Start Tag normal line 11 in Entity, line: 11 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: AttValue: " or ' expected in Entity, line: 12 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: attributes construct error in Entity, line: 12 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Couldn't find end of Start Tag bold line 12 in Entity, line: 12 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Opening and ending tag mismatch: fonts line 5 and encoding-override in Entity, line: 13 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Opening and ending tag mismatch: config line 3 and family in Entity, line: 14 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Extra content at the end of the document in Entity, line: 16 in /home/1liquidcore/public_html/facturare/pdf/treebuilder.class.php on line 16

    Notice: Trying to get property of non-object in /home/1liquidcore/public_html/facturare/pdf/dom.php5.inc.php on line 19

    Notice: Trying to get property of non-object in /home/1liquidcore/public_html/facturare/pdf/dom.php5.inc.php on line 9

    Notice: Trying to get property of non-object in /home/1liquidcore/public_html/facturare/pdf/dom.php5.inc.php on line 13

    Fatal error: Call to a member function node_type() on a non-object in /home/1liquidcore/public_html/facturare/pdf/config.parse.php on line 143


    BTW, it seems to be working fine, except when generating a pdf file of the invoice.
    • CommentAuthorjustin
    • CommentTimeAug 15th 2007 edited
     permalink
    Hey

    Question: have pdfs ever work in Simple Invoices for you?

    Most likely reason is that theres some file permissions issue
    - what platform are you on - linux/win/mac...
    - if linux you can chown file pdf dir recursively to be that of the websrever user
    --- or if your lazy and dont care about security to much just chmod -Rv 777 * the pdf directory

    let me know how u go

    anyone else experienced this issue?

    Cheers

    Justin
    •  
      CommentAuthorFakeMoth
    • CommentTimeAug 15th 2007 edited
     permalink
    Thanks for the fast answer and sorry for the lack of info/specs. Simple Invoices worked like a charm for me, including the pdf export function; until today. The only thing i did was to install yesterday an ATI driver and reinstall postfix (in my knowledge those shouldn't pose a problem). And I've chown-ed the hell out of the files before I posted :|

    My machine, recently installed:
    Configuratie hardware:
    - AMD Athlon 64 3000+ Venice & Thermaltake Sonic Tower;
    - MB Asus A8N-E nForce 4 Ultra/939;
    - GC Asus Radeon AX300 SE 128MB/PCIeX;
    - 1024MB Kingston DDR400 dual kit (2x512MB);
    - 2 x HDD 80GB Seagate SATA150 clone;
    - DVD-ROM BTC ATA66 16x/48x;
    - Thermaltake Eclipse, 2x120 TT coolers, TT TR2 420W PFC;
    - Mustek UPS Offline 1000VA/600W.

    Configuratie software:
    - CentOS Linux 5.0 x86_64 kernel 2.6.18-8.1.8.el5;
    - Apache v 2.2.3, BIND v 9.3.3, Dovecot IMAP/POP3 Server v 1.0, Postfix v 2.3.3, SquirrelMail v 1.4.8-4, MySQL v 5.0.22, ProFTPd v 1.31, Samba v 3.02325202, PHP v 5.1.6, etc
    - Webmin/Usermin/Virtualmin, Joomla!, phpBB2, Coppermine, RoundCube, etc.
    • CommentAuthorjustin
    • CommentTimeAug 15th 2007 edited
     permalink
    hey

    only thing i can suggest is creating a new directory in your web root and re install Simple Invoices into that

    maybe for some reason your facturare/ directory is not happy any more

    cheers

    justin
    •  
      CommentAuthorFakeMoth
    • CommentTimeAug 17th 2007 edited
     permalink
    Tryed that already. I have installed Simple invoices again with the defaults (including path and the database name), hoping to get a fresh new start. No effect.

    I 've also tried to modify php.ini, httpd.conf, chmod the files/dirs - nothing; but i think that is something wrong with the apache/php (apache error log - why do i have php4 files in the path when I am using php5? it's not ok i suppose... and i don't see a dir "php4" in "lib64"...). Help pls - I need to bill someone :'( and I started to hate my server:

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/dom.so' - /usr/lib64/php4/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/gd.so' - /usr/lib64/php4/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/imap.so' - /usr/lib64/php4/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/ldap.so' - /usr/lib64/php4/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/mbstring.so' - /usr/lib64/php4/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/mysql.so' - /usr/lib64/php4/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/mysqli.so' - /usr/lib64/php4/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/odbc.so' - /usr/lib64/php4/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/pdo.so' - /usr/lib64/php4/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/pdo_mysql.so' - /usr/lib64/php4/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/pdo_odbc.so' - /usr/lib64/php4/pdo_odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/pdo_pgsql.so' - /usr/lib64/php4/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/pdo_sqlite.so' - /usr/lib64/php4/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/pgsql.so' - /usr/lib64/php4/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/xmlreader.so' - /usr/lib64/php4/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/xmlrpc.so' - /usr/lib64/php4/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/xmlwriter.so' - /usr/lib64/php4/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php4/xsl.so' - /usr/lib64/php4/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
  1.  permalink
    I use php5 on my servers and have a few things php4 related installed. when you messed with postfix did you touch squirrel mail any? you may want to try installing those shared objects or linking them if they are elsewhere. Are you installing the facturare/ straight from the server file system or uploading them with ftp from another machine? May want to ensure you are using proper binary/ascii transfer on the respected files. may want to check that the php4-domxml and/or and/or libapache2-modxslt and/or xml-core and/or php-xml-parser and/or *php5-cli* is installed? I'm a Debian person. and I know "linux is linux" but I don't know CentOS. did you double check everything that postfix affected maybe it messed with something else without you fully knowing? I'm sure you did, but, never hurts to ask, and I'm new here, so I'm not even 50% sure on simple invoices, but like you imma learn it inside and out eventually :-D
    •  
      CommentAuthorFakeMoth
    • CommentTimeAug 18th 2007 edited
     permalink
    Squirrelmail and postfix are working properly. There were 0 dependencies rezolved when I (un)installed postfix. I'm working localy so no FTP problems.

    Why did the software worked in the first place? That's very intriguing... :shock:

    I don't think it's responsible a php missing package; if u think there is, please let me know. BTW I checked continuously the apache logs and the error mentioned before didn't came up again! And now it's not exporting anything pdf/xls/doc/... It started only with the pdf export problem. I'm still using Simple Invoices just because I can (pre)view the invoices in the browser.

    php 5.1.6-12.el5 Development/Languages The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
    php-cli 5.1.6-12.el5 Development/Languages Command-line interface for PHP
    php-common 5.1.6-12.el5 Development/Languages Common files for PHP
    php-devel 5.1.6-12.el5 Development/Libraries Files needed for building PHP extensions.
    php-gd 5.1.6-12.el5 Development/Languages A module for PHP applications for using the gd graphics library
    php-imap 5.1.6-12.el5 Development/Languages A module for PHP applications that use IMAP.
    php-ldap 5.1.6-12.el5 Development/Languages A module for PHP applications that use LDAP.
    php-mbstring 5.1.6-12.el5 Development/Languages A module for PHP applications which need multi-byte string handling
    php-mysql 5.1.6-12.el5 Development/Languages A module for PHP applications that use MySQL databases.
    php-odbc 5.1.6-12.el5 Development/Languages A module for PHP applications that use ODBC databases.
    php-pdo 5.1.6-12.el5 Development/Languages A database access abstraction module for PHP applications
    php-pear 1.4.9-4 System PHP Extension and Application Repository framework
    php-pgsql 5.1.6-12.el5 Development/Languages A PostgreSQL database module for PHP.
    php-xml 5.1.6-12.el5 Development/Languages A module for PHP applications which use XML
    php-xmlrpc 5.1.6-12.el5 Development/Languages A module for PHP applications which use the XML-RPC protocol
    •  
      CommentAuthorFakeMoth
    • CommentTimeAug 18th 2007 edited
     permalink
    And a few other php related packages:


    perl-HTML-Parser 3.56-1 Development/Libraries HTML-Parser Perl module
    perl-XML-Parser 2.34-6.1.2.2.1 Development/Libraries A low level Perl module for parsing XML either via trees or streaming
    • CommentAuthorjustin
    • CommentTimeAug 18th 2007 edited
     permalink
    Hey FakeMoth,

    sorry - but ive got no ideas :(

    for a work around just install a PDF printer on your PC and manually print the 'print preview' to PDF

    Cheers

    Justin
  2.  permalink
    Hey, Have you attempted removing any pdf related binaries/programs, then purging all the related configuration files, then reinstalling? Sometimes just removing then reinstalling particular things will not reinstall any corrupt configuration files, they would need to be purged or manually removed --- I hope this helps.
    • CommentAuthorRuben
    • CommentTimeAug 19th 2007 edited
     permalink
    your apache install is trying to load php4 modules which you don't have installed. Take a good look at which php.ini is loaded and correct that problem first. Once you've gotten rid of these errors try si again and see which errors show up in your apache error log. My guess is that you are in fact missing a php module but your installation is so fubared that is has become a little too cumbersome to troubleshoot the problem. I feel that you have two options open to you : continue hacking away at your lamp installation until you've resolved all errors that pop up or start from scratch. Just a little tip, the problems you are facing have nothing to do with your si installation so you can stop fiddling about in the si files, that wont help you. Good luck.
    •  
      CommentAuthorFakeMoth
    • CommentTimeAug 19th 2007 edited
     permalink
    Great succeeeeesssssss! :D

    1. I didn't think that it was a missing php related package because I'm runing a lot of php based software on all my virtual domains and everything is fine.
    2. I didn't think that it was SI related because it worked for a long time, but now even with a fresh install, on any virtual domain, all I got was a bunch of errors.
    3. Today I realized that I altered php.ini for security reasons (Joomla! and phpBB especially are against setting ' register_globals = On "). So in my php.ini it was set to " Off "; i rolled back to the default, with " On " and at least now I see something (the pdf is missing some lines, but I'm sure I am the one responsible; I messed up with the files).
    4. Did you mentioned anyware in the documentation that ' register_globals = On " with php5? Is this the reason of the errors? 'Know something about that?
    5. Thanks for the patience and your interest!

    Il post again when EVERYTHING will be fine. Cheers! 8)
    •  
      CommentAuthorFakeMoth
    • CommentTimeAug 19th 2007 edited
     permalink
    It seems I have a lot of work ahead... continued at: http://simpleinvoices.org/forum/topic.php?id=310