PDA

View Full Version : PDF Plugin Update not working



Hareesh Ghanta
August 20, 2013, 11:36 PM
Hi Team,
Today i updated the latest pdf plugin and it is not working .I am getting the following error.
TCPDF ERROR: [Image] Unable to get image: /var/chroot/home/content/94/11078494/html/home/content/94/11078494/html/getrent/files/08-2013/ad2534/large_13770289671429513149.JPG

Wei Hong
August 21, 2013, 01:04 AM
add changes here: plugins > PdfExport > PdfExport.inc.php > Line:56


$photo = $photos ? RL_FILES . $photos[0]['Photo'] : RL_PLUGINS . 'PdfExport/no-photo.jpg';

replace

$photo = $photos ? 'files/' . $photos[0]['Photo'] : 'plugins/PdfExport/no-photo.jpg';

Alex
August 21, 2013, 05:17 AM
Hi,

Yung
It certainly would have helped in this case, but it would be better if change like this:

From

$photo = $photos ? RL_FILES . $photos[0]['Photo'] : RL_PLUGINS . 'PdfExport/no-photo.jpg';

To

$photo = $photos ? RL_FILES_URL . $photos[0]['Photo'] : RL_PLUGINS_URL . 'PdfExport/no-photo.jpg';

Hareesh
On your website, this problem has been fixed.

For All
This problem occurs in all in different ways .. depends on server
Need to look at the situation:
RL_FILES or RL_FILES_URL
RL_PLUGINS or RL_PLUGINS_URL

Hareesh Ghanta
August 21, 2013, 11:13 AM
Thank you for your reply and fix.Its working

Alex
August 21, 2013, 11:17 AM
Hareesh,

You are welcome