By mukul2k5 on
Hi all,
I want to implement the print module in Drupal 6. Module is installed correctly. I downloaded the tcpdf library and tried to implement it. I got this error
Fatal error: Call to a member function AliasNbPages() on a non-object in.
Can some one help me with this problem please. with dompdf it is working fine( but unable to print the images in pdf file.).
Thanks
Mukul
Edited by WorldFallz - moved to appropriate forum.
Comments
to add more on refreshing the
to add more
on refreshing the page drupal sets this error message
warning: Parameter 1 to theme_print_pdf_tcpdf_header() expected to be a reference, value given in C:\xampp\htdocs\drupal6\includes\theme.inc on line 617.
Same error
I am having the same issue. Using:
Drupal 6.15
Print 6.x-1.10
Any thoughts or resolution? What versions are other people using where this error isn't received? Thanks!
Jarod Smith
JarodMS
Same problem here. Error
Same problem here.
Error message is:
Fatal error: Call to a member function AliasNbPages() on a non-object in D:\xampp\htdocs\bliblat\sites\all\modules\print\print_pdf\print_pdf.pages.inc on line 247
Using newest Xampp with PHP 5.3.1 and read somewhere that using a php version < 5.3 should fix the problem (but I didn't test it).
Any ideas how to fix it?
Works now
I installed XAMPP 1.7.1 (uses PHP 5.2.9) and PDF's are working now!!!!
I had read several different posts related to Drupal issues with PHP 5.3+. Not sure what the issue is or where it can be tracked.
Thanks!
Jarod Smith
JarodMS
The only way I know is a
The only way I know is a hack. Copy/paste the contents of those functions (theme_print_pdf_tcpdf_header, theme_print_pdf_tcpdf_footer, etc) instead of calling them with the theme function (comment those lines out). It's a quick hack to get it working until a fix is provided.
Same problem here
Hi,
I'm using
- XAMPP for Windows 1.7.3
- Drupal 6.1.5
- PHP 5.3.1
- print-6.x-1.10
- tcpdf_4_8_039
Because of many (undocumented) changes in the php-code of my website i'd like to have another solution than downgrading from PHP5.3. This'll cause many new problems.
Does anyone have an idea, how I could bypass this?
Greetings
Bastom
PLEASE HEEEEELP!!!
Ubuntu server
PHP 5.3.2-1ubuntu4.2
Name: TCPDF
Version: 5.1.002
Fatal error: Call to a member function AliasNbPages() on a non-object in /home/.../sites/all/modules/print/print_pdf/print_pdf.pages.inc on line 247
PLEASE HEEEEELP!!!
Wamp users
For the ones who are using WAMP, downgrading to 5.2.9 did the job!!
Problems are problems
Hi,
as gwenbleyen told me, I now have downgrades XAMPP for Windows to Version 1.7.1.
Now I have php 5.2.9 and new problems:
Two alternative variants
1.
If I want tcpdf to give me a PDF-File of the book-type-contents of my site, tcpdf gives me an approx. 600KB PDF-File with header and footer - but no content.
2.
If I want tcpdf to give me a PDF-File of other book-type-content of my site, the page is loading for 60 seconds and then tells me this:
Fatal error: Maximum execution time of 60 seconds exceeded in: C:\xampp\htdocs\Drupal\includes\common.inc on line 613
Fatal error: Maximum execution time of 60 seconds exceeded in: C:\xampp\htdocs\Drupal\includes\session.inc on line 56
Fatal error: Maximum execution time of 60 seconds exceeded in: C:\xampp\htdocs\Drupal\includes\common.inc on line 14
Both variants appear as they like to - it's not reproducible.
Does anyone have a tip?
Greetings!
Bastom
Found a workaround but no PDF with pics possible
The problem was, that I wanted to insert the logo of my drupal-page.
Under /Drupal/admin/settings/%print%/common/ you have to deactivate the logo
%print% is the path to the print-module
Now I have the problem, that my page doesn't want to render pages to PDF where pictures are embedded.
The server is running @ 100% for 30 secs or so and an empty page is shown.
Does anyone have a solution for this?
Bastom