Image not found - translation module problem?

age_Q - June 26, 2008 - 09:28
Project:Pdfview
Version:5.x-1.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

is someone using pdfview with the translation module enabled? I got this msg from pdfview:
TCPDF error: Missing or incorrect image file: de/files/imagecache/thumbnail/spieler/st.jpg

the file exists, so i think its because the "de/" isn't it?

hm or its because i use xampp over my local network?

greetz
age_Q

#1

pfournier - August 12, 2008 - 02:16

I just ran into the same problem.

In function _pdfview_rewrite_image_url() of pdfview.module, add the following code before the last line (return $path;):

if (module_exists('i18n')) {
// remove language from path
i18n_get_lang_prefix($path, TRUE);
}

 
 

Drupal is a registered trademark of Dries Buytaert.