Alexander Orlov Posted June 13, 2014 Report Posted June 13, 2014 Hi when uploading the invoice logo it then uploads to the required file but does not show on the invoices. I am running the latest version of blesta so would any have any ideas on this. Quote
0 Paul Posted June 13, 2014 Report Posted June 13, 2014 Check if you have the GD extension in your PHP. TCPDF attempts to use GD to manipulate the logo in some circumstances, if it cannot do so it will not appear. Quote
0 Alexander Orlov Posted June 13, 2014 Author Report Posted June 13, 2014 thanks would that stop it from showing on the invoice settings page as well Quote
0 Greg-Mega Posted June 13, 2014 Report Posted June 13, 2014 I had the same issue, never did work out what it was that stopped it working. GD extension is in and working, permissions were good (it worked once the day prior then never again). I ended up manually modifying the field in the company_data table I think it was, i think there was a row for inv_logo and inv_background, once I manually entered the path it all worked fine. It also wouldn't display the picture for you to delete on the Invoice Settings page but there was no error when uploading \ saving changes. Quote
0 Alexander Orlov Posted June 13, 2014 Author Report Posted June 13, 2014 thanks for that could you PM me a sample of what you put within the database so I can make the required changes to my database. Quote
0 Greg-Mega Posted June 13, 2014 Report Posted June 13, 2014 I just had a look, under the `company_settings` table. If you have multiple companies set up you'll have to work out which Company ID is the one you're modifying by looking in the `companies` table to get the ID. Key: inv_background Company ID: 1 (if you only have 1 Company) Value: /home/accountname/public_html/billing/uploads/1/invoices/inv_background.jpg Key: inv_logo Company ID: 1 (if you only have 1 Company) Value: /home/accountname/public_html/billing/uploads/1/invoices/inv_logo.jpg Or you could just run: UPDATE `company_settings` SET value = '/path/to/image' WHERE company_id = 1 AND key = 'inv_logo'; UPDATE `company_settings` SET value = '/path/to/image' WHERE company_id = 1 AND key = 'inv_background'; Change the path and Company ID as applicable. Quote
0 Alexander Orlov Posted June 13, 2014 Author Report Posted June 13, 2014 just noticed I don't have the inv_logo one in Quote
0 Greg-Mega Posted June 13, 2014 Report Posted June 13, 2014 Did that fix it? That's probably what it was for me, Blesta may only have been running an update query on a non existing record, I can't remember now it was a couple weeks ago. I remember being pretty convinced it wasn't anything to do with GD or file system permissions. Quote
0 Alexander Orlov Posted June 13, 2014 Author Report Posted June 13, 2014 not yet does the image have to be in the uploads file as I rather not place it their Quote
0 Alexander Orlov Posted June 13, 2014 Author Report Posted June 13, 2014 if I send you a copy of my database table for the company settings could you make the required changes? Quote
0 Greg-Mega Posted June 14, 2014 Report Posted June 14, 2014 not yet does the image have to be in the uploads file as I rather not place it their Can you see the logo image you've uploaded? If you can't you might want to check your /tmp and /uploads directories are writable under Settings -> System -> Basic Settings. Because I could see the file being uploaded and renamed to inv_logo.ext or inv_background.ext but it wouldn't set it to it in the invoice settings. You may have a different problem if you can't see the file being uploaded and saved under your uploads directory. Quote
0 Alexander Orlov Posted June 14, 2014 Author Report Posted June 14, 2014 i am able to see the logo being uploaded to the uploads file so no idea what is going on. Quote
0 PauloV Posted June 14, 2014 Report Posted June 14, 2014 i am able to see the logo being uploaded to the uploads file so no idea what is going on. Please check my solution here: http://www.blesta.com/forums/index.php?/topic/2605-invoice-logo-is-uploaded-but-not-showing/#entry18887 Quote
0 Alexander Orlov Posted June 14, 2014 Author Report Posted June 14, 2014 Hi thanks for that but the only problem i have including uploading both files is the UPDATE `company_settings` SET value = '/path/to/image' WHERE company_id = 1 AND key = 'inv_logo'; in the database that does not exist. It was a new installation so could someone have a look at this for me if i sent over a copy of my database but removing admin details. Quote
0 Greg-Mega Posted June 14, 2014 Report Posted June 14, 2014 I will if you PHPMyAdmin export your company_settings table. Quote
0 Alexander Orlov Posted June 14, 2014 Author Report Posted June 14, 2014 cheers its been sorted with help from Greg on skype. Quote
0 Tyson Posted June 16, 2014 Report Posted June 16, 2014 This is the actual fix. PauloV and Michael 2 Quote
0 Michael Posted June 16, 2014 Report Posted June 16, 2014 Patched up even though I don't have the issue because the code is there Quote
Question
Alexander Orlov
Hi when uploading the invoice logo it then uploads to the required file but does not show on the invoices.
I am running the latest version of blesta so would any have any ideas on this.
18 answers to this question
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.