Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
i have installed the last dev version and get news warning errors :
Strict warning : Declaration of FPDF::_putstream() should be compatible with TCPDF::_putstream($s, $n = 0) in require_once() (line 17 in /srv/data/web/vhosts/www.domain.fr/htdocs/sites/all/modules/views_pdf/views_pdf_template.php).
Strict warning : Declaration of FPDF_TPL::SetFont() should be compatible with TCPDF::SetFont($family, $style = '', $size = NULL, $fontfile = '', $subset = 'default', $out = true) dans require_once() (line 27 in /srv/data/web/vhosts/www.domain.fr/htdocs/sites/all/libraries/fpdi/fpdi.php).
Strict warning : Declaration of PdfTemplate::addPage() should be compatible with TCPDF::AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false) in require_once() (line 24 in /srv/data/web/vhosts/www.domain.fr/htdocs/sites/all/modules/views_pdf/views_pdf_template.php).
Strict warning : Declaration of FPDF::_putstream() should be compatible with TCPDF::_putstream($s, $n = 0) in require_once() (line 17 in /srv/data/web/vhosts/www.domain.fr/htdocs/sites/all/modules/views_pdf/views_pdf_template.php).
Strict warning : Declaration of FPDF_TPL::SetFont() should be compatible with TCPDF::SetFont($family, $style = '', $size = NULL, $fontfile = '', $subset = 'default', $out = true) dans require_once() (line 27 in /srv/data/web/vhosts/www.domain.fr/htdocs/sites/all/libraries/fpdi/fpdi.php).
Strict warning : Declaration of PdfTemplate::addPage() should be compatible with TCPDF::AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false) in require_once() (line 24 in /srv/data/web/vhosts/www.domain.fr/htdocs/sites/all/modules/views_pdf/views_pdf_template.php).
Informations :
PHP 5.4.4
TCPDF 6.0.021
FPDI 1.4.4
FPDF_TPL 1.2.3
Thanks for your help.
Comments
Comment #1
candelas CreditAttribution: candelas commentedplease, read documentation
https://drupal.org/node/1086584
FPDI 1.4.4, TCPDF 6.0.020, FPDF_TPL 1.2.3
you have TCPDF 6.0.021
if you get the same warning, please, report here.
l asked killua99 in the chat and he told to me to leave this open for when TCPDF 6.0.021 is supported.
please, dont open a new issue for each problem that you have. try to find if an issue talks about it already to help developers to easy find thing to work.
and thanks very much for reporting :)
Comment #2
candelas CreditAttribution: candelas commentedwith TCPDF 6.0.020 they were solved
Comment #3
kumkum29 CreditAttribution: kumkum29 commentedHello,
I tested views pdf with tcpdf Version 6.0.020 and 6.0.021. I still get the same errors. :(
Tcpdf_tpl file is it the problem?
Thanks for your help.
Comment #4
donpwinston CreditAttribution: donpwinston commentedI got theses warning messages for the recommended version. This thing does not work.
Comment #5
candelas CreditAttribution: candelas commented@donpwinston and @kumkum29 first, what you get are warnings, not errors :)
second: have you look in the issue cue for this warnings one by one? if you find a solution, please post here the url.
third: since i dont get them, i cant not know why. so, if you simplify your view and go adding each attribute one at the time, you will localize when the warning comes and will help the problem to be solved or to find a trick to avoid it.
welcome to the team :)
Comment #6
killua99 CreditAttribution: killua99 commentedany update?
Comment #7
kumkum29 CreditAttribution: kumkum29 commentedHello Killua99,
Sorry,I'm on vacation for a few days. I havent been able to test your latest remarks. I do it as soon as possible.
Comment #7.0
kumkum29 CreditAttribution: kumkum29 commentedrev2
Comment #8
kumkum29 CreditAttribution: kumkum29 commentedHello,
after several weeks, i have tested views_pdf module in a new website.
But i get this 2 warnings in page pdf display:
I use php 5.4 on my server.
FPDI 1.4.4, TCPDF 6.0.020, FPDF_TPL 1.2.3
Thanks for your help.
Comment #9
killua99 CreditAttribution: killua99 commentedI thinking this is related directly to the library.
The line 17 of views_pdf_template.php is require_once views_pdf_get_library('fpdi') . '/fpdi2tcpdf_bridge.php';
We're calling the external library and the library start to call it self to other pieces. I cannot do nothing about that. The strict warning need to be solved from the library.
I'm working on the branch 2 that I'll remove the support for this library. Because they don't pay attention to this instead I'm gonna use a fork of the same library but with the good corrections.
The current stable branch v1 have any notices?
Comment #10
kumkum29 CreditAttribution: kumkum29 commentedHello killua99,
with the latest version (1.3) I have these 2 warnings. Other errors no longer exist.
Thanks.
Comment #11
killua99 CreditAttribution: killua99 commentedAwesome kumkum29, Let's hope in the new branch this kind error never appear again or not too much.
Like I said before this error are 100% related to the libraries.
Comment #12
killua99 CreditAttribution: killua99 commentedi'm gonna close this one. Because the libraries it self have warning and notice ... so I'll skip this kind of error for now.
I'm working on the next version which will use diff libraries.
Re open just is 10000% needed please. Thanks.
Comment #13
Dra-SiAn CreditAttribution: Dra-SiAn commentedI've got these warning messages for the latest version (7.x-1.5 - 2016-Feb-02) just after updating it. But it's working in spite of that.