Jump to content

Paypal TCPDF ERROR


kamikaze_squad

Recommended Posts

Witam.

Kolejny problem z modułem Paypal. Wszystko jest dobrze do momentu gdy klient przechodzi do strony paypal. Na ich stronie są wszystkie dane do zapłaty itd. Klient się loguje wciska przycisk zapłać i w tym momencie wyskakuje error.

TCPDF ERROR: [image] Unable to get image: http://img/logo.jpg

Pieniądze dochodzą na moje konto ale klient o tym nie wie.

Jak może być przyczyna ? Presta 1.5.6.1.

Edited by kamikaze_squad (see edit history)
Link to comment
Share on other sites

Wiec jest wersja mniej i bardziej poprawna, mniej poprawna to taka:

 

w pliku classes\pdf\HTMLTemplate.php

 

$path_logo = $_SERVER['SERVER_NAME'].$path_logo;

 

zamień na:

 

$path_logo = 'http://twojsklep/img/nazwaloga.jpg';

 

Niestety taka wersja nie zadziała poprawnie na multistore czy podczas zmiany logo, do tego potrzeba troszkę więcej i gdybyś był zainteresowany opcją nr 2 to zapraszam na PW.

 

 

 

@Storecominity You had to change in file classes\pdf\HTMLTemplate.php this line $path_logo = $_SERVER['SERVER_NAME'].$path_logo; to $path_logo = http://yourshopdomain/img/yourlogofile.jpg';

Edited by endriu107 (see edit history)
Link to comment
Share on other sites

sorry friend , in my case the problem is when paypal returns the answer appears error: TCPDF ERROR: [ Image ] Unable to get image: /img/tmp/product_mini_1959_7508.jpg
Enter FTP the file is in the specified rute.
I believe that to be a problem with the cache , as new products do not have that problem .
thanks for your reply

Link to comment
Share on other sites

Dzięki za podpowiedź.

Niestety w moim pliku nie ma takiej linijki. Jedynie co przypomina ten kod to coś takiego

 

$shop_name = Configuration::get('PS_SHOP_NAME', null, null, (int)$this->order->id_shop);
        $path_logo = $this->getLogo();

        $width = 0;
        $height = 0;
        if (!empty($path_logo))
            list($width, $height) = getimagesize($path_logo);

        $this->smarty->assign(array(
            'logo_path' => $path_logo,

            'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
            'title' => $this->title,
            'date' => $this->date,
            'shop_name' => $shop_name,
            'width_logo' => $width,
            'height_logo' => $height

 

 

Nie działam na multistore więc może się uda ?

Edited by kamikaze_squad (see edit history)
Link to comment
Share on other sites

the pdf invoices in back office are generated without problem but from the customer PDF shows the same mistake the modules paypal ( 2 versions used for testing )

TCPDF ERROR: [ Image ] Unable to get image: / img / tmp / imagnename.jpg

The debug console shows no error.

Thanks for your time.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...