Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PDF Catalog v1.59


TCwho

Recommended Posts

I have installed 25 Feb 2005 - V1.59 Author: Cedric Taffein

 

I have also applied the fix posted here:

http://www.oscommerce.com/forums/index.php?sho...ndpost&p=567669

 

Also had to chmod the catalogues dir to 777 as 755 would cause timeouts...

 

---

 

Now when I try to create the catalog, I get the following error:

FPDF error: Unsupported image file type: jgp

File : /homepages/15/d113630270/htdocs/catalog/images/1626sm.jgp

 

But this is NOT true ?? I see the extension within my ftp program and I also check the backup copy I have locally and it is .jpg

 

I then tried changing the extension to .gif just to see what would happen and it still gave me the same error..

 

Then I just deleted the file to see what that would do, and I STILL got the same error even though the image had been deleted..

 

This is really strange. Does anyone know what is going on?

Link to comment
Share on other sites

I have installed  25 Feb 2005 - V1.59  Author: Cedric Taffein

 

I have also applied the fix posted here:

http://www.oscommerce.com/forums/index.php?sho...ndpost&p=567669

 

Also had to chmod the catalogues dir to 777 as 755 would cause timeouts...

 

---

 

Now when I try to create the catalog, I get the following error:

But this is NOT true ?? I see the extension within my ftp program and I also check the backup copy I have locally and it is .jpg

 

I then tried changing the extension to .gif just to see what would happen and it still gave me the same error..

 

Then I just deleted the file to see what that would do, and I STILL got the same error even though the image had been deleted..

 

This is really strange.  Does anyone know what is going on?

 

 

that one is strange, are you sure you do not have an image defined in your database with the extention jgp ? The pdf class gets the extention from the database, not your filesystem.

 

this is what the class does with the image types:

 

function Image($file,$x,$y,$w=0,$h=0,$type='',$link='')

{

//Put an image on the page

if(!isset($this->images[$file]))

{

//First use of image, get info

if($type=='')

{

$pos=strrpos($file,'.');

if(!$pos)

$this->Error('Image file has no extension and no type was specified: '.$file);

$type=substr($file,$pos+1);

}

$type=strtolower($type);

$mqr=get_magic_quotes_runtime();

set_magic_quotes_runtime(0);

if($type=='jpg' or $type=='jpeg')

$info=$this->_parsejpg($file);

elseif($type=='png')

$info=$this->_parsepng($file);

else

{

//Allow for additional formats

$mtd='_parse'.$type;

if(!method_exists($this,$mtd))

$this->Error('Unsupported image type: '.$type);

$info=$this->$mtd($file);

}

set_magic_quotes_runtime($mqr);

$info['i']=count($this->images)+1;

$this->images[$file]=$info;

}

Treasurer MFC

Link to comment
Share on other sites

!!! Amanda !!!

 

Thank you!

 

I did a quick search in the DB and found it .... that was really strange...

 

Well, that problem is solved, but I got another error...

 

Hopefully I can fix that one on my own....

 

If not, I guess I will be back later :lol:

Link to comment
Share on other sites

Got Stumped

 

 

Alright all the error messages are gone...

I go to create the pdf catalog and the process seems to finish (tested on IE and FF) ...

 

...seems to finish...page appears to refresh itself ...

 

and nothing else happens?

 

Im just left with a blank white page with the left column and top header that is normally in admin side...

 

I have the 'default pdf dir' to chmod 777

 

?

Link to comment
Share on other sites

Got Stumped

Alright all the error messages are gone...

I go to create the pdf catalog and the process seems to finish (tested on IE and FF) ...

 

...seems to finish...page appears to refresh itself ...

 

and nothing else happens?

 

Im just left with a blank white page with the left column and top header that is normally in admin side...

 

I have the 'default pdf dir' to chmod 777

 

?

 

black pages, the worst, could be anything from an ' too much or an } to few.

you need to look at your php error log to see if there is a message there.

Otherwise, put in statements like :

 

<?php

if (tep_get_ip_address() == 'your IP address') {

echo 'I am now at position x ';'

echo 'variable_x = ' . $variable_x . '<br>';

}

 

this prevents the message to be shown to anybody but you.

 

that way you can trace where things go wrong.

Treasurer MFC

Link to comment
Share on other sites

  • 5 months later...
  • 5 months later...

When I Will Make The PDF Catalog I get Tihs Error In Admin

Fatal error: Cannot access empty property in C:\Apache2\htdocs\Domain\Webshop15\admin\pdf_catalogue.php on line 621

 

Line 621 - $this->$parent_category_name='';

Line 622 - $this->ParentsName($current_category_level,$i,$categorieslevelsarray, $categoriesnamearray);

 

Someone Please Help ???

 

//TheExterminator

Link to comment
Share on other sites

  • 3 months later...

Amanda,

I understand that somewhere in my DB, I can find out about what image extensions are allowed. But what am I searching for and how do I fix it?

 

I have the following error after I click on my pdf.gif image:

FPDF error: Unsupported image file type: gif

 

someone please help. I followed the instructions to install pdf maker to the "tee." But it is not working. Also, I cannot get the text "Click on the Acrobat-Symbol to download this page as a PDF-Document." to show up beside my pdf.gif image. What is that about?

 

Someone please help ASAP. I have been working on this error for a week!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...