This below is a quick workaround to solve some common problems related to the generation of PDF PhocaPDF starting in the articles in Joomla.
PhocaPDF is a free downloadable plugin that adds some handy features such as just the transformation of an article in Joomla PDF, and adding some customizations such as logo, header, footer, etc..
At some hosting may happen that instead of creating PDF kinds of errors such as:
- 504 Gateway Timeout
- 500 Internal Server Error
These errors are rarely reported in the log and are therefore difficult to detect and resolve.
From personal experience I have found that these errors occur because PhocaPDF proof of default libraries to use ImageMagick to convert and resize images. If these are not present then use the GD Libraries.
At the Hosting on which I have tested this issue the ImageMagick libraries, although properly installed and working, when asked by PhocaPDF sent in error script generating thousands of files in cache location:
administrator / components / com_phocapdf / assets / tcpdf / cache
thus causing the 'error 500 or 504.
To solve the problem just edit the file:
administrator / components / com_phocapdf / assets / tcpdf / tcpdf.php
at line 7603, change the entry:
extension_loaded ( 'imagick' ) ) { // ImageMagick if (extension_loaded ('imagick')) {/ / ImageMagick
with
! extension_loaded ( 'imagick' ) ) { // ImageMagick if (! extension_loaded ('imagick')) {/ / ImageMagick
In this way you will force the use of GD Libraries that will not give problems and PhocaPDF will convert correctly the article in PDF.
If you encounter problems or anomalies write!


![wordpress-logo [WP PLUGIN] Wp User Page, creare una staff page con WordPress](http://www.capn3m0.org/wp-content/uploads/2011/05/wordpress-logo-150x150.png)



December 27, 2011
0 Comments