admin@simpleinvoices.group
Simple Invoices Knowledge Base
  • SimpleInvoices Group Forum
  • About
  • Requirements
  • Version Update Process
  • Installation
  • Invoice Types
  • Globalization Support
  • Common Problems
  • Foreign Keys
  • Invoice Templates & Styles
  • Database Updates
  • How To …
  • Add a 2nd Domain
  • Extensions
  • Invoice Prepopulation
  • Contributions
Select Page

PDF not displaying logo (just an empty square)

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, 6 months ago by chris.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 21, 2019 at 12:07 pm #677
    chris
    Participant

    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 = 1

    PHP.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 = 1

    I’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 #679
    chris
    Participant

    Also the formatting of the invoice is off

    Attachments:
    1. Untitled-3.png

    October 21, 2019 at 2:59 pm #682
    chris
    Participant

    Finally 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.png

    October 21, 2019 at 3:24 pm #683
    chris
    Participant

    Although i have that set the same on the old server as well :/

    October 21, 2019 at 3:29 pm #684
    chris
    Participant

    Have 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 #695
    chris
    Participant

    Could 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 🙁

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Recent Comments

    Archives

    Categories

    • No categories

    Meta

    • Register
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2018-2020 - Rowley's Fearless Tech-Comp Consulting