swisspad Posted May 17, 2003 Posted May 17, 2003 Hi there, I don't know what to do. Today, I installed PDF DATA SHEET MAKER V.1.1 to my shop at www.winediscount.ch. The PDF-Logo is behind every product (see for example at: http://www.winediscount.ch/catalog/product...products_id/365 But when I am clicking on that PDF-Logo, I get the following error: Warning: getimagesize() [function.getimagesize]: Read error! in /home/winedisc/public_html/catalog/pdf/pdf_datasheet_functions.php on line 200 FPDF error: Image file has no extension and no type was specified: images Has anyone an idea. Thank you all for your help. Greetings from Switzerland Patrick www.winediscount.ch
Orphon Posted May 17, 2003 Posted May 17, 2003 I can't help with the error... but the first place I look with an error like that is the file and line it is pointing too.... see if anything looks wrong which for you is.... /home/winedisc/public_html/catalog/pdf/pdf_datasheet_functions.php line 200 Angela
swisspad Posted May 18, 2003 Author Posted May 18, 2003 Hi Angela, Thank you for your reply. I already took a look at line 200.... It's an empty line.... Patrick
penge Posted June 13, 2003 Posted June 13, 2003 Have you solved your problem? I visited your site to try the pdf's and they work well. My problem happens when the pdf graphic is pressed: 1054 - Unknown column 'p.PDF_ALT_IMAGE' in 'field list' select p.products_id, pd.products_name, pd.products_description, p.PDF_ALT_IMAGE, p.products_model, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.products_status, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, s.expires_date, m.manufacturers_name from products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_description pd left join specials s on p.products_id = s.products_id where p.products_id = '13' and p.products_id = pd.products_id and pd.language_id = '1' [TEP STOP] I can find two instances of 'p.PDF_ALT_IMAGE' in 'pdf_datasheet_config.php' and tried tweaking the entries but it did not help. What or where should the 'p.PDF_ALT_IMAGE' be? Any ideas? Penge
alverman Posted June 14, 2003 Posted June 14, 2003 I can find two instances of 'p.PDF_ALT_IMAGE' in 'pdf_datasheet_config.php' and tried tweaking the entries but it did not help. What or where should the 'p.PDF_ALT_IMAGE' be?the ALTernate_image definition is supposed to allow the use of an image other than the standard small one (products_image) that appears in the products info page by default. It defines the name of the DB field containing the image path. define('PDF_ALT_IMAGE', 'products_image') will place the std small image in the PDF data-sheet (leave it this way if you want to show the default image) define('PDF_ALT_IMAGE', 'other_image') will place the image contained in the 'other_image' DB field that you have defined (just an example); for instance, you could be using contribs that allow the display of different images. Reasons for this: one can be that 'products_image' is a not supported .gif. (only .jpg and .png in PDF data-sheet), you find others.... :) HTH Ivan
penge Posted June 14, 2003 Posted June 14, 2003 Thanks for the info. It stopped that error message, but now I have: Fatal error: Call to undefined function: rotate() in /usr/local/home/httpd/vhtdocs/ambermoods/shop/pdf/pdf_datasheet_functions.php on line 77 //Text rotated around its origin 77 $this->Rotate($angle,$x,$y); $this->Text($x,$y,$txt); $this->Rotate(0); Just above line 77 is this: function RotatedText($x,$y,$txt,$angle) I commented out line 77 to 79 and the pdf loads (hooray) , but I'm sure it's not the answer? Penge
alverman Posted June 14, 2003 Posted June 14, 2003 I've just uploaded a complete package w/ the last version, including previous patches and fixes. Installing that you shouldn't see that error again (just replace the files). Ivan
penge Posted June 14, 2003 Posted June 14, 2003 I am using the latest release, can it have something to do with php or a missing module?
alverman Posted June 14, 2003 Posted June 14, 2003 I do not think so, function rotate() was defined in fpdf.php of data-sheet maker v.1.1 & it is called in pdf_datasheet_functions.php within function RotatedText() to rotate the watermark; the mod itself does not require any special module (like for instance GD library). Sorry I cannot be more helpful. Ivan
Daemonj Posted June 15, 2003 Posted June 15, 2003 Make sure that the pdf_functions.php file is where it should be. It sounds like the program is not able to locate it. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 25, 2003 Posted June 25, 2003 Hi, I got the same problem and error message after I installed the latest version: Warning: getimagesize: Read error! in /home/.../catalog/pdf/pdf_datasheet_functions.php on line 243 I thought it had something to do with the settings of the image size in admin (I have nothing in "Small Image Height") and tried again with something in this field, but the error remains the same. The image I want to display is JPG, but even if I set the define('SHOW_IMAGES',1); to define('SHOW_IMAGES',0); I get the same error message. Any idea? :idea: :?:
Guest Posted June 26, 2003 Posted June 26, 2003 Obviously I got the error message after I set define('SHOW_IMAGES',0); because it was loaded from cache. Now, the Acrobat reader is loaded (if used with Mozilla, with Opera I get nothing), but an empty page is dispayed, i.e. the header and the footer are there, but all information which should be retrieved from the database is not there. I assume, the script cannot get the content from the database, but why? Everything else in the store works ok. I left the link in the product_info.php intact and would very much appreciate somebody with better knowledge could have a look at it and give me a hint. Thanks in advance.
Guest Posted June 26, 2003 Posted June 26, 2003 Ooops, I forgot the URL: http://shop.laserpointer4u.de/catalog/ rgds
Guest Posted June 26, 2003 Posted June 26, 2003 Hi, I found out what the problem is: I have in admin 'Use Search-Engine Safe URLs' enabled and the script does not convert the URL back. If I disable the feature, the script works fine. So I guess I need to find out what to do. rgds Werner
Guest Posted June 26, 2003 Posted June 26, 2003 Ok, got it to work. Nice tool. One question remains: Is there a way to show inline images (Images embedded in the product description). Then it would be perfect. If somebody knows -> let me know. rgds
Recommended Posts
Archived
This topic is now archived and is closed to further replies.