Hello,
When trying to open the TCPDF component in backend, I get the following errors:
Warning: require_once(.../administrator/components/com_tcpdf/tcpdf_autoconfig.php): failed to open stream: No such file or directory in
.../administrator/components/com_tcpdf/tcpdf.php on line 111
Fatal error: require_once(): Failed opening required '.../administrator/components/com_tcpdf/tcpdf_autoconfig.php' (include_path='/...
.../plugins/system/shlib/shl_packages//ZendFramework-1.11.7-minimal/library:.:/opt/cpanel/ea-php73/root/usr/share/pear') in /...
.../administrator/components/com_tcpdf/tcpdf.php on line 111
It seems there are several files and one folder missing from the administrator/components/com_tcpdf folder.
Here's what's in the file /administrator/components/com_tcpdf/tcpdf.php beginning with line 111:
// TCPDF configuration
require_once(dirname(__FILE__).'/tcpdf_autoconfig.php');
// TCPDF static font methods and data
require_once(dirname(__FILE__).'/include/tcpdf_font_data.php');
// TCPDF static font methods and data
require_once(dirname(__FILE__).'/include/tcpdf_fonts.php');
// TCPDF static color methods and data
require_once(dirname(__FILE__).'/include/tcpdf_colors.php');
// TCPDF static image methods and data
require_once(dirname(__FILE__).'/include/tcpdf_images.php');
// TCPDF static methods and data
require_once(dirname(__FILE__).'/include/tcpdf_static.php');
The TCPDF "component" is non-functional. It has been so for at least 3 years, but the menu item there so that the Joomla updater will work when a new version is released.
VM's TCPDF files are to be found in /libraries/vendor/tecnickcom/tcpdf
I see there are two files tcpdf.php, with slightly different sizes (877,78 KB and 878,05 KB respectively).
Just for the sake of lack of errors and clarity, I think these could be replaced for the following, in the backend version (com_tcpdf_1.0.8.zip/tcpdf.php):
// TCPDF configuration
require_once(JPATH_ROOT.'/libraries/vendor/tecnickcom/tcpdf/tcpdf_autoconfig.php');
// TCPDF static font methods and data
require_once(JPATH_ROOT.'/libraries/vendor/tecnickcom/tcpdf/include/tcpdf_font_data.php');
// TCPDF static font methods and data
require_once(JPATH_ROOT.'/libraries/vendor/tecnickcom/tcpdf/include/tcpdf_fonts.php');
// TCPDF static color methods and data
require_once(JPATH_ROOT.'/libraries/vendor/tecnickcom/tcpdf/include/tcpdf_colors.php');
// TCPDF static image methods and data
require_once(JPATH_ROOT.'/libraries/vendor/tecnickcom/tcpdf/include/tcpdf_images.php');
// TCPDF static methods and data
require_once(JPATH_ROOT.'/libraries/vendor/tecnickcom/tcpdf/include/tcpdf_static.php');
echo '<h3>This component is meant to be so - some explanatory text<h3>';