Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PROBLEMS WITH PDF DATA SHEET MAKER


swisspad

Recommended Posts

Posted

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

Posted

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

Posted

Hi Angela,

 

Thank you for your reply. I already took a look at line 200.... It's an empty line....

 

Patrick

  • 4 weeks later...
Posted

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

Posted
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

Posted

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

Posted

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

Posted

I am using the latest release, can it have something to do with php or a missing module?

Posted

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

Posted

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

  • 2 weeks later...
Posted

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: :?:

Posted

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.

Posted

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

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...