raffles Posted January 23, 2003 Share Posted January 23, 2003 Hi! I installed this contribution in a a developer system, when I tried to make a pdf catalog obtain this response Warning: getimagesize: Unable to open '..//nueva_lidertel/oscommerce/catalog/images/nokia3210-2.jpg' for reading. in c:inetpubwwwrootnueva_liderteloscommerceadminfpdf.php on line 1418FPDF error: Missing or incorrect image file: ..//nueva_lidertel/oscommerce/catalog/images/nokia3210-2.jpg Where is the place to config the path to the catalog images, I think that is bad configurated, but I don't know where is this in the code. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted February 3, 2003 Share Posted February 3, 2003 FPDF error: Missing or incorrect image file They are the correct .jpg also Thanks for any help Quote Link to comment Share on other sites More sharing options...
TeeJay Posted February 9, 2003 Share Posted February 9, 2003 The error I'm getting is: FPDF error: Unsupported image file type: //images/ All of the product images are in .jpg format ??? Not sure about the double / "//images/ Quote Sites at www.martial-art-shop.com www.combatgear.co.uk www.shop-for-gifts.co.uk www.cbl-drinks.co.uk www.ye-olde-ferrie-inne.co.uk www.martialartsnews.co.uk Link to comment Share on other sites More sharing options...
TeeJay Posted February 10, 2003 Share Posted February 10, 2003 Come on some one must have/be able to sort this out I really love this contrib and I've tried for countless hours trying to get it to work with images. I'm obviously not an experienced php wizard, but at least I try. Thanks in advance Quote Sites at www.martial-art-shop.com www.combatgear.co.uk www.shop-for-gifts.co.uk www.cbl-drinks.co.uk www.ye-olde-ferrie-inne.co.uk www.martialartsnews.co.uk Link to comment Share on other sites More sharing options...
Guest Posted February 13, 2003 Share Posted February 13, 2003 Teejay let me know if you find out something Mine worked fine until I added more to the cart now it has stopped working with unsupported images, all are jpeg. FPDF error: Unsupported image file type: /images/ don't know why Quote Link to comment Share on other sites More sharing options...
agtlewis Posted February 13, 2003 Share Posted February 13, 2003 The error I'm getting is:FPDF error: Unsupported image file type: //images/ All of the product images are in .jpg format ??? Not sure about the double / "//images/ I get this same error :( I hope someone can locate the cause. I have tried to no avail. I even e-mailed the author but he hasn't replied. Quote Link to comment Share on other sites More sharing options...
TeeJay Posted February 14, 2003 Share Posted February 14, 2003 I've not yet found a solution, though I did solve the path problem "//images" In the pdf_catalog script look for $imagepath= what follows this tells the script the path to your image (it is set to "../" . by default. look at the whole line and replace the "../" with the path to your root/images ie. /home/usr/public_html/catalog/images Even when the script is pointing to the correct location it still says that the image are of the incorrect format. I can only assume that there are different types of jpg and the script can see the difference ????? in the meanwhile I have had to swith the images off in the contirbutions config file. Quote Sites at www.martial-art-shop.com www.combatgear.co.uk www.shop-for-gifts.co.uk www.cbl-drinks.co.uk www.ye-olde-ferrie-inne.co.uk www.martialartsnews.co.uk Link to comment Share on other sites More sharing options...
agtlewis Posted February 14, 2003 Share Posted February 14, 2003 Yeah I thought it was a path problem at first too. This one has got me stumped. Quote Link to comment Share on other sites More sharing options...
Mark Evans Posted February 23, 2003 Share Posted February 23, 2003 Hi Guys I am just finishing updating the PDF Catalog to fix the problem with the images but to also make it more integrated with the admin tool so that you can decide what to include in the catalog without having to edit the config file each time. Also there were some duplicate functions in there which I have removed and it was not calculating the prices properly when you wanted to use anything other than your stores default currency. I should be able to upload a revised contrib in the next few days. Quote Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds) Link to comment Share on other sites More sharing options...
Guest Posted March 3, 2003 Share Posted March 3, 2003 same problems here - anyone have any ideas on a fix? thanks. Quote Link to comment Share on other sites More sharing options...
Clint Fern Posted May 1, 2003 Share Posted May 1, 2003 HI, I just installed this contribution today and have solved these problems for me. I did the following and the errors disappeared; 1 - Make directory catalog/catalogues chmod 777 2 - In admin/fpdf.php changed line 1023 from $f=fopen($file,'wb'); To $f=fopen($file,'w+'); 3 - In admin/pdfcatalogue.php changed following lines 151 From $destination ="../".DIR_WS_CATALOG."catalogues/"; To $destination = DIR_FS_CATALOG . 'catalogues/'; 617 From $imagepath="../".DIR_WS_CATALOG.DIR_WS_IMAGES.$print_catalog_array[$j]['image']; To $imagepath= DIR_FS_CATALOG . DIR_WS_IMAGES . $print_catalog_array[$j]['image']; 691 From $imagepath="../".DIR_WS_CATALOG.DIR_WS_IMAGES.$products_new_array[$nb]['image']; To $imagepath= DIR_FS_CATALOG . DIR_WS_IMAGES . $products_new_array[$nb]['image']; 732 From $pdf->Output("../".DIR_WS_CATALOG."catalogues/catalog_".$languages[$i]['id'].".pdf",false); To $pdf->Output( DIR_FS_CATALOG . 'catalogues/catalog_' . $languages[$i]['id'].".pdf",false); Hope this helps someone out - it's a nice contrib Cheers Clint :wink: Quote Link to comment Share on other sites More sharing options...
cruz Posted May 5, 2003 Share Posted May 5, 2003 I just got pdf_catalog working but it put it so many <BR> in the list of features making it take up two pages for one product. Anyway to adjust how many products are on one page? Also is there a way to have the store logo on each page? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.