Simple Invoices logo
    • CommentAuthordvs
    • CommentTimeDec 2nd 2007 edited
     permalink
    Hey guys.
    I'm trying look at my created invoices with the "export to PDF" button and this is what comes up.

    Fatal error: Out of memory (allocated 19922944) (tried to allocate 41 bytes) in /home_dir/simpleinvoices/include/pdf/css.margin.inc.php on line 9

    Any ideas?? :?
    I had it working on my local server. Then I moved it to an of site remote dedicated server...maybe that assists in some how to getting to the solution.

    Thanks...

    P.S. - I tried mailing the invoice to myself and this came up...
    Fatal error: Out of memory (allocated 14417920) (tried to allocate 393216 bytes) in /home_dir/simpleinvoices/include/pdf/css.border.inc.php on line 21
    • CommentAuthorjustin
    • CommentTimeDec 2nd 2007 edited
     permalink
    • CommentAuthordvs
    • CommentTimeDec 3rd 2007 edited
     permalink
    Hey justin, thanks for looking into this.

    That I kind of realised, but the problem is that I can't get to my php.ini file because it is situated on a remote dedicated server that I do not have rights for viewing anything more than my hosting directory. I can however edit .htaccess files and I tried upping my php memory thru that. Don't know if I did it correctly though, but it didn't help. Or perhaps apache needs a restart for settings to take effect but I can't do that ether.

    My phpinfo.php says that I have memory set to 64MB and I might be mistaken but I recon that is more than enough. Still, how would I change the memory available to this aplication without going to php.ini??

    Any ideas?
    • CommentAuthordvs
    • CommentTimeDec 3rd 2007 edited
     permalink
    I couldn't edit the previous post so this is the P.S.

    I picked up that my "max_execution_time = 90" and the suggested value is 90. Could this be causing the problem and if so, how does one change this value without editing the php.ini??

    Thanks again.
    • CommentAuthordvs
    • CommentTimeDec 3rd 2007 edited
     permalink
    omw how many times will I have to try type this before I get it right lol!!

    The current max_execution_time = 30... Not 90. Recommended is 90. How to change that without using php.ini is the question I think.
    • CommentAuthorjustin
    • CommentTimeDec 3rd 2007 edited
     permalink
    • CommentAuthordvs
    • CommentTimeDec 4th 2007 edited
     permalink
    lol, ok after flying in the dark on configuring the .htaccess, I've got it generating my pdf's again (woopdidoo).
    But now...no more funky & cool logo on the pdf. The logo is there when I print preview it in html, but just a little black squire makes an appearance on the pdf version.

    This maybe related? I've got the memory on 64mb and I recon it's not that. Or should I start a new post for this one...?
    • CommentAuthorjustin
    • CommentTimeDec 4th 2007 edited
     permalink
    hey

    re logo

    1. check that there is no spaces is the file name - pdf doesnt like that
    2. is the file a transparent png/gif - pdf may not like that either

    Cheers

    Justin
    • CommentAuthordvs
    • CommentTimeDec 5th 2007 edited
     permalink
    Hey Justin.

    Yeah no I even tried the default SI logo and it still doesn't show up. I actually used these in the future so technicaly they should work :'(

    I'll play around a bit...maybe end up re installing again or something. Maybe it'll work itself out :?

    Oh, and still not enough memory to send pdf mails...but at least I can create them now ;)
    • CommentAuthorjustin
    • CommentTimeDec 5th 2007 edited
     permalink
    ok cool

    let us know how you go

    cheers

    justin
    • CommentAuthordvs
    • CommentTimeJan 5th 2008 edited
     permalink
    1 Month later...

    Bad news I'm afraid.
    I've now even tried installing the latest version - just finnished and it does this with ALL the logos...even the no logo logo...

    I think it might have something to do with the server configuration or maybe even file permissions. I'm installing it on a remote hosting server and I'm not sure how this effects the file permissions. I just know that I have a file permission issue with almost every application I install (that doesn't come with Plesk that is).

    I've edited the logo permissions just for kicks but that didn't do no nothin...I'm going to dig into the pdf folder and see if I can find something suspicious...

    If you have any ideas on the matter feel free to bud in :P

    Happy New Year ;)
    • CommentAuthorjustin
    • CommentTimeJan 7th 2008 edited
     permalink
    Hey DVS

    as long as the logos have read permissions (which they most likely do) then i don't think its a permissions issue - but you never know

    sorry but i can't think of anything else that may be causing this issue

    anyone else got any suggestions?

    Cheers

    Justin
    • CommentAuthordvs
    • CommentTimeJan 7th 2008 edited
     permalink
    Hey Justin,
    yeah the permissions thing doesn't make sense to me ether...but I'm getting desperate. :shock:

    So I've located the server error logs... and this is what gets generated every time I try to export / create the pdf:


    [Mon Jan 7 18:52:30 2008] [error] [client i.p.a.ddress] File does not exist: /route/to/home/public_html/403.shtml


    Does this mean anything to you?

    I can't make heads nor tails...what file is missing my friendly server, they're all there dam you :|

    I'm gona cry... :'(
    • CommentAuthorjustin
    • CommentTimeJan 7th 2008 edited
     permalink
    hey dvs

    doens't mean anything to me - we don't have a 403.shtml file in Simple Invoices

    one other thing - have a read up on html2pdf documents ( http://www.tufat.com/s_html2ps_html2pdf.htm ) - think there may be some special image setting we aren't using that may help you - just a thought

    cheers

    justin
    • CommentAuthorapmuthu
    • CommentTimeJan 9th 2008 edited
     permalink
    Out of memory errors - if you edit the php.ini file and a setting straddles a line with the comments overflowing, then we get this error. Also the php script timeout setting should be set to atleast 90 seconds to allow for generating PDF with bundled fonts.