Logo in PDF/DOC/PRINT on Windows XP
  • Im running WampServer on Windows XP on a localhost. I have given simpleinvoices a domain address to (ie: my.simpleinvoices.org) so I'ts easy to manage with all my other development websites.

    The only issue i have is the with logo not displaying on ANY print/web version, PDF/DOC/PRINT. You name it, its not there. From what I can tell its because there is a '\' in the url just before template:

    http://my.simpleinvoices.org\/templates/invoices/logos/Untitled-3.png

    If I remove the \ it works, but obviously, i can't do that in a PDF.

    So, where in the code is that slash?

  • hah, I found it!

    So, listen up any WinXP peeps who are having the same issue. The problem is that dirname ads a \, anyways, find the function getURL(), its int include\sql_queries.php go to the function getURL() then add the following line just afterh $dir = dirname(....):

    $dir = str_replace('\\','',$dir);

    If anyone sees any issue with this, let me know.

  • justinjustin May 2010

    thanks david

    i've added your fixed into svn refer http://code.google.com/p/simpleinvoices/source/detail?r=3016

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories