I'm stuck with an error that is apparently caused by TCPDF not being included by Composer mechanism.
Here's the situation:
Fatal error: Class 'FPDF' not found in /var/www/r0byn/web/vendor/setasign/fpdi/fpdi_bridge.php on line 24
Line 24:
if (!class_exists('TCPDF', false)) {
(I could workaround by changing the second parameter to: true. But everytime the class is updated by composer one would have to remember to do this workaround. Not good.)
composer.json:
{
"name": "i510c/tools510",
"type": "project",
"description": "",
"license": "MIT",
"require-dev": {
"php": ">=5.5.0",
"phpmailer/phpmailer": "~5.2",
"gregwar/captcha": "~1.0.12",
"phpunit/phpunit": "~4.5",
"stefangabos/zebra_form": "2.9.8",
"tecnickcom/tcpdf": "6.2.12",
"setasign/fpdi": "1.6.1",
"facebook/php-sdk-v4": "~5.0"
},
"autoload": {
"psr-4": { "": ["application/core/",
"application/model/",
"application/core/DAO/",
"application/core/Plugin/",
"application/core/Traits/",
"application/core/Exceptions"] }
}
}
The autoload_classmap.php which is generated by composer contains TCPDF entries. All files of the TCPDF class exist where they should exist.
I have no clue why the TCPDF class is not being detected by class_exists(). Any idea?