leew87 Posted October 29, 2022 Share Posted October 29, 2022 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 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 29, 2022 Share Posted October 29, 2022 Can you view the logo in a browser from that address? Have you tried reuploading that image? 0 Quote Link to comment Share on other sites More sharing options...
leew87 Posted October 29, 2022 Author Share Posted October 29, 2022 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. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 29, 2022 Share Posted October 29, 2022 If it were me I'd first try uploading the default tpl and testing to see if it behaves properly. That would rule out a server issue being to blame if it works with the default tpl and logo. 0 Quote Link to comment Share on other sites More sharing options...
leew87 Posted October 31, 2022 Author Share Posted October 31, 2022 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? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.