Hi,

Sheetnode work partially, but I have a error about TCPDF :
Fatal error: Undefined class constant 'PDF_RENDERER_TCPDF' in /var/www/sites/all/modules/sheetnode/modules/sheetnode_phpexcel/sheetnode_phpexcel.module on line 267

In /admin/config/content/sheetnode/phpexcel, I have following informations :

PHPExcel path : sites/all/libraries/phpexcel
Display export links is checked.
TCPDF path : nothing.

When I try to add following path "sites/all/libraries/tcpdf", I have Undefined class constant 'PDF_RENDERER_TCPDF' in my apache logs (and a Drupal 7's blank page).

TCPDF is downloaded an unziped to sites/all/libraries/tcpdf (example : sites/all/libraries/tcpdf/tcpdf.php).

In /admin/reports/status I have following error : "TCPDF library : TCPDF is NOT found at ."

Comments

deanflory’s picture

I'm having the same WSOD error:

Fatal error: Undefined class constant 'PDF_RENDERER_TCPDF' in .../sites/all/modules/sheetnode/modules/sheetnode_phpexcel/sheetnode_phpexcel.module on line 269
PathInfo: admin/config/content/sheetnode/phpexcel is served by _sheetnode_phpexcel_settings (form definition), implemented by sheetnode_phpexcel in .../sites/all/modules/sheetnode/modules/sheetnode_phpexcel/sheetnode_phpexcel.module at line 236

I do have the Print module installed but I have it set to use the dompdf library and not the tcpdf library, so there should be no conflict even though the tcpdf library is in the libraries folder.

Prior to setting the correct directory path for the tcpdf library in the Sheetnode admin settings, I came across this new error in the Status Report page after a cron run:

TCPDF library TCPDF NOT found at [empty path].

deanflory’s picture

Upon returning to /admin/config/content/sheetnode/phpexcel after the WSOD error, the tcpdf path is now blank.

deanflory’s picture

Status: Active » Needs work

So, no response I guess after all this time? Setting to "needs work" to maybe garner some attention, otherwise it's useless to have that form field on the settings page and to state it's a "feature" if it doesn't work.

Fatal error: Undefined class constant 'PDF_RENDERER_TCPDF' in /home/account/public_html/drupal/sites/all/modules/sheetnode/modules/sheetnode_phpexcel/sheetnode_phpexcel.module on line 269

deanflory’s picture

FYI, one cannot even submit that PHPExcel form with or without a TCPDF library url, it always returns the White Screen Of Death, with the checkbox for exporting on or off.

grn’s picture

Hi.

This is fixed in the current dev version.

infojunkie’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Status: Needs work » Fixed

Thanks for the update.

deanflory’s picture

I'm still getting the error, even after updating.

grn’s picture

Please try to fill out the TCPDF path.

deanflory’s picture

I did before and received this error:

Fatal error: Undefined class constant 'PDF_RENDERER_TCPDF' in /.../sites/all/modules/sheetnode/modules/sheetnode_phpexcel/sheetnode_phpexcel.module on line 269

So, I performed the following:

  • updated the TCPDF library to version 6.0.018 (2013-05-19) (the latest as of 2013-05-20)
  • ran update.php
  • emptied my browser cache
  • flushed site cache twice
  • and ran cron

I again received the same error:

Fatal error: Undefined class constant 'PDF_RENDERER_TCPDF' in /.../sites/all/modules/sheetnode/modules/sheetnode_phpexcel/sheetnode_phpexcel.module on line 269.

Settings at /admin/config/content/sheetnode/phpexcel:

PHPExcel path:

sites/all/libraries/PHPExcel

[Y] Display export links

(checked)

TCPDF path

sites/all/libraries/tcpdf

Error Report

Status Report /admin/reports/status:

TCPDF library TCPDF NOT found at [empty path].

My only other option now is to try disabling, uninstalling and reinstalling the module if you're assuring me it's actually working properly and my issue is local and just something leftover or bad in my install.

infojunkie’s picture

What is the version of your PHPExcel library? Sheetnode expects version 1.7.7 or later.

deanflory’s picture

I tried disabling, uninstalling and reinstalling the module, still gave the same error and I wasn't able to then enter in PHPExcel path or tcpdf path without the error. I then deselected the export checkbox and was only then able to get the PHPExcel path to stay upon save without WSOD error. When I then attempted to check the export box and save again it would trigger the error again.

Thanks for the info infojunkie, just what I needed. I updated the PHPExcel and Zend libraries and that appears to have corrected the problem by allowing the submission to complete with all options filled-in. So, anyone else having this problem just update PHPExcel, Zend, and tcpdf and it will work (as stated on the project page).

The Zend Framework v1.12.3 (ZendFramework-1.12.3) worked. The Zend Framework v2.2.0 (ZendFramework-2.2.0) did NOT work throwing the error that the library could not be found. May want to change GData labels to "Zend GData/Zend Framework" or "Zend Framework (previously GData)".

Thanks for your time.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.