English Support Forum

icon
Avatar
karpas
Posts: 6
I have changed my image folder to another location, everything works fine but when I click the Print Button, is trying to find the images in the ME default location (com_misterestate/pictures) and the only think i see is:

TCPDF error: Missing or incorrect image file: XXXXX/components/com_misterestate/pictures/ea1260896506.jpg

Is there any quick solution for my problem?
17.12.2009 16:34
Avatar
admin
Moderator
Posts: 885
Hi,

open mytcpdf.php (located in /components/com_misterestate/includes/) and change line 9 from
iconCode:
define("K_PATH_IMAGES", JPATH_BASE.DS."components/com_misterestate/pictures/");

to
iconCode:
define("K_PATH_IMAGES", JPATH_BASE.DS.$params['picpath']);


best regards
18.12.2009 10:50
Avatar
karpas
Posts: 6
Thank you for your reply. 'picpath' directs to the root and not to my picture folder.
I have change it to my pic folder path manually:
iconCode:
define("K_PATH_IMAGES", JPATH_BASE.DS."images/properties/");

and it works!
18.12.2009 12:03
Avatar
admin
Moderator
Posts: 885
ok, this is a valid solution to.

best regards
23.12.2009 16:26
icon