Jump to content

InvoicePDF.tpl not showing logo even tho logo is there


leew87

Recommended Posts

Hi all 

i am pulling my hair out i have a custom design invoicepdf.tpl 

it is not showing my logo i set for some reason it has been working for many years without issue but for some reason it is now not working no changes have been made or anything. i have checked the location using curl and it shows a 200 status so i know it is looking in the correct location it just will not display. 

i have tried to contact whmcs support that say its a custom invoicepdf.tpl issue so would need to find a developer to troubleshoot/help. 

can anyone help or even point me in the right direction of how i could attempt to troubleshoot this. 

the code im using is 

# Logo
$logoFilename = 'placeholder.png';
if (file_exists(ROOTDIR . '/assets/img/illit/logo.png')) {
    $logoFilename = 'logo.png';
} elseif (file_exists(ROOTDIR . '/assets/img/illit/logo.jpg')) {
    $logoFilename = 'logo.jpg';
}
$pdf->Image(ROOTDIR . '/assets/img/illit/' . $logoFilename, 15, 25, 75);

i have other images added to my invoicepfd.tpl file with the same coding they work just fine without issue. 

i am at a bit of a lose. 

thank you all in advance for any help 

Link to comment
Share on other sites

Hi Bear 

yes i have tried i have also tried using the curl  via SSH this gives a 200 status. 

curl -o /dev/null -s -w "%{http_code}\n" https://billing.illit.co.uk/assets/img/illit/logo.png
200

but the logo still does not display for some great unknow reason. 

Link to comment
Share on other sites

hi i have tried the default tpl file that works even with my cost but even with the code working if i copy it make it does not display. which is why i am pulling my hair out clearly if it works on the default it should work on the custom. 

this code has been working for a very long which with no issue has there be any recent changes to the way it has to be coded? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated