This Help forum is for issues relates to the latest release (1.7.10/11/12). For issues related to development versions please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: [SOLVED] PDF Reports give white screen.

PDF Reports give white screen. 2 months 2 weeks ago #1

  • Harrie24
  • Harrie24's Avatar
  • Offline
  • New
  • Posts: 15
All standard PDF reports give a white screen. HTML does work however.

The error is:

/home/deb9112/domains/harrievanhelvoort.nl/public_html/vendor/tecnickcom/tcpdf/tcpdf.php:17786 "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
#0 /vendor/composer/ClassLoader.php:444 ErrorException(""continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?")
#1 /vendor/composer/ClassLoader.php:444 include()
#2 /vendor/composer/ClassLoader.php:322 Composer\Autoload\includeFile('/home/deb9112/domains/harrieva…')
#3 unknown:unknown loadClass('TCPDF')
#4 /app/Report/ReportTcpdf.php:25 spl_autoload_call('TCPDF')
#5 /vendor/composer/ClassLoader.php:444 include('/home/deb9112/domains/harrieva…')
#6 /vendor/composer/ClassLoader.php:322 Composer\Autoload\includeFile('/home/deb9112/domains/harrieva…')
#7 unknown:unknown loadClass('Fisharebest\\Webtrees\\Report\\Re…')
#8 /app/Report/ReportPdf.php:66 spl_autoload_call('Fisharebest\\Webtrees\\Report\\Re…')
#9 /app/Report/ReportParserGenerate.php:332 setup()
#10 /app/Report/ReportParserGenerate.php:161 docStartHandler([array])
#11 unknown:unknown startElement([resource], 'Doc', [array])
#12 /app/Report/ReportParserBase.php:45 xml_parse([resource], '<?xml version="1.0" encoding="…', false)
#13 /app/Report/ReportParserGenerate.php:131 __construct('modules_v3/descendancy_report/…')
#14 /reportengine.php:282 __construct('modules_v3/descendancy_report/…', [ReportPdf], [array])
Webtrees 1.7.12
PHP 7.3.1
The administrator has disabled public write access.

PDF Reports give white screen. 2 months 2 weeks ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10909
Reports are based on the TCPDF library which was abandoned many years ago.

Basically, you upgraded to PHP 7.3, and the TCPDF library isn't compatible with PHP 7.3

There is very limited support for it, and updates come slowly...

Luckily, a patch for PHP 7.3 was released recently and I already added it to webtrees.

Just wait for the next release (1.7.13). I'll try to do at the weekend.

If you can't wait - it is just a one-line change. You can see it here:

github.com/tecnickcom/TCPDF/pull/91/files
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Last Edit: 2 months 2 weeks ago by fisharebest.
The administrator has disabled public write access.

PDF Reports give white screen. 2 months 2 weeks ago #3

  • Harrie24
  • Harrie24's Avatar
  • Offline
  • New
  • Posts: 15
Great! It works.
Thanks.
Webtrees 1.7.12
PHP 7.3.1
The administrator has disabled public write access.

[SOLVED] PDF Reports give white screen. 2 months 2 weeks ago #4

  • Harrie24
  • Harrie24's Avatar
  • Offline
  • New
  • Posts: 15
Problem solved.
Webtrees 1.7.12
PHP 7.3.1
The administrator has disabled public write access.
Powered by Kunena Forum