SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › PDF not displaying logo (just an empty square)
Tagged: PDF Logo
- This topic has 5 replies, 1 voice, and was last updated 5 years ago by chris.
-
AuthorPosts
-
October 21, 2019 at 12:07 pm #677chrisParticipant
Struggling to get round the PDF logo problem, running master with PHP 7.1, have done the below:
The first step is to ensure the pdf exports directory is writeable by the webserver To do this the cachce directory in your Simple Invoices folder must be writeable, in unix cd to the Simple Invoices ‘tmp’ directory (cd /var/www/html/simpleinvoices/tmp) and chown the cache directory to the apache (webserver user) (chown apache:apache cache), in windows just browse to the cache folder and make sure its writeable by all users.
We also need to make the pdf fonts directory writeable. To do this in unix chown the ./library/pdf/fpdf directory to the apache(web server) user (chmown apache:apache library/pdf/fpdf/), in windows just browse to the fdpf folder(in the pdf folder) and make sure its writeable by all users.And also:
2) Or add the following in your php.ini file:
allow_url_fopen = on
allow_url_include = 1PHP.ini looks like this:
; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)display_errors = Off
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 512M
post_max_size = 8M
session.gc_maxlifetime = 1440
session.save_path = “/var/cpanel/php/sessions/ea-php71”
upload_max_filesize = 8M
zlib.output_compression = Off
allow_url_fopen = on
allow_url_include = 1I’m not sure if i’m mixing instructions from difference versions or if i just have the worst luck possible, been at this for weeks now and desperate as I need to move into this new install as old server is being decommissioned ASAP. From what I’ve seen this fearless version has all the bits that were missing to make SI perfect for my uses, would be delighted if i can get it going.
October 21, 2019 at 12:32 pm #679chrisParticipantAlso the formatting of the invoice is off
Attachments:
October 21, 2019 at 2:59 pm #682chrisParticipantFinally tracked down so logs to show, is it because i have redirect to https enabled?:
[21-Oct-2019 14:10:11 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:10:11 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/default/style.css
[21-Oct-2019 14:10:11 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:10:11 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/logos/logo_cropped.png
[21-Oct-2019 14:15:55 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:15:55 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/default/style.css
[21-Oct-2019 14:15:55 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:15:55 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/logos/logo_cropped.png
[21-Oct-2019 14:19:13 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:19:13 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/default/style.css
[21-Oct-2019 14:19:13 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:19:13 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/logos/logo_cropped.png
[21-Oct-2019 14:20:29 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:20:29 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/default/style.css
[21-Oct-2019 14:20:30 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:20:30 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/logos/logo_cropped.png
[21-Oct-2019 14:26:16 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:26:16 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/default/style.css
[21-Oct-2019 14:26:16 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:26:16 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/logos/logo_cropped.png
[21-Oct-2019 14:30:17 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:30:17 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/default/style.css
[21-Oct-2019 14:30:17 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:30:17 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/logos/logo_cropped.png
[21-Oct-2019 14:51:12 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:51:12 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/default/style.css
[21-Oct-2019 14:51:12 America/Los_Angeles] Cannot connect to invoicing.revolutionaryit.co.uk:443 – (0) <br/>Missing SSL support?
[21-Oct-2019 14:51:12 America/Los_Angeles] FetcherUrl – Cannot open https://invoicing.revolutionaryit.co.uk/templates/invoices/logos/logo_cropped.pngOctober 21, 2019 at 3:24 pm #683chrisParticipantAlthough i have that set the same on the old server as well :/
October 21, 2019 at 3:29 pm #684chrisParticipantHave just run php -m | grep -i openssl on my VPS which returned “openssl” confirming that it is installed. Does fetcherUrl support SSL? Could do with any input as i’ve hit a wall with this now 🙁
October 22, 2019 at 7:45 am #695chrisParticipantCould do with changing the title now, I’m at a point now where i’m running PHP 7.2 with the latest master2 SI fearless and after cleaning up some database fields so it could upgrade i have a working install. Know though the logo still isnt showing but instead of the empty box previously mentioned i have the box with a red cross in the middle. Formatting of the invoice is fone just the logo is missing. I found a similar problem someone else had with nginx and they resolved it by usign a jpg instead of a png for the logo, tried that but did not solve the problem.
Again any advice would be greatly appreciated, felt like i couldn’t send out invoices with the logo missing and now haven’t been able to invoice any customers for a week 🙁
-
AuthorPosts
- You must be logged in to reply to this topic.
Recent Comments