Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Can you send me your logo? What is the url of it?

    Thread Starter monomark

    (@monomark)

    I’ve tried several logos, not only mine, also the example you included in the plugin (my-company-logo-blue.png).
    Thanks!

    Plugin Author Bas Elbers

    (@baaaaas)

    Please add $mpdf->showImageErrors = true; to bewpi-document.php file in function called generate and enable WP-DEBUG. Please tell me the errors you get.

    Wich version of php are you using?

    Plugin Author Bas Elbers

    (@baaaaas)

    Did you debug some already?

    Thread Starter monomark

    (@monomark)

    I’ve added the line in the file and changed debug mode to true, nothing happened. Not sure what “generate”-function is (I’m far from being an expert, sorry).

    Plugin Author Bas Elbers

    (@baaaaas)

    It’s been a while now. Did it work out for you?

    Hello,

    I have a similar error. It outputs into the document this, instead of the logo.
    Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in
    /srv/www/vhosts/tenone.ch/httpdocs/wp-content/plugins/woocommerce-pdf-invoices/functions.php
    on line 13

    I use a .png, how can it be solved? should I use .jpg, instead?

    Best,
    Attila

    Plugin Author Bas Elbers

    (@baaaaas)

    You will need to ask you hosting company to enable allow_url_fopen. If this is not possible, please change the code so it will use the url without the base_64 conversion. Therefore change the function in file abstract-bewpi-invoice.php on line 316 to:

    public function get_company_logo_html() {
                if ( ! empty( $this->template_options['bewpi_company_logo'] ) ) :
                    $image_url = $this->template_options['bewpi_company_logo'];
    
    	            if( ini_get('allow_url_fopen') ) {
    		            $image_url = image_to_base64( $image_url );
    	            }
    
                    echo '<img class="company-logo" src="' . $image_url . '"/>';
                else :
                    echo '<h1 class="company-logo">' . $this->template_options['bewpi_company_name'] . '</h1>';
                endif;
            }

    Hi Bas,
    I have enabled in php.ini the allow_url_fopen.

    Thank you very much ??

    Plugin Author Bas Elbers

    (@baaaaas)

    You can also try to disable the allow_url_fopen, because the new update checks if it’s enabled.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Logo does not show’ is closed to new replies.