Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PDF Invoice


Goanna

Recommended Posts

I tried installing PDF Invoice today and I cannot get it to work. I tried on my test server (windows running apache) and on my live site (linux), and I get the same error message each time.

 

Fatal error: Call to a member function on a non-object in C:\WM\www\test_site\admin\invoice.php on line 306

 

Line 306 of the file reads;

 

	$pdf->Output();

 

I tried upgrading to the newest version of fpdf also, it did nothing, I still get the error.

 

Has anyone here used this mod and gotten it to work? I would really like to see what these invoices look like, so if anyone can help me out it would be great. Thanks!

Edited by Goanna
Link to comment
Share on other sites

I have the same problem. Can you send me a message in case you find a solution?

 

Thanks,

 

MarcO

 

I thought it might have been a problem with fopen, and maybe it was my local windows box which sometimes gives me trouble with that. But I uploaded the files to my live server which is a linux box, and I know fopen works fine there, abd I still get the same error messages.

 

Has anyone used this contrib successfully? If so, could you possibly link me to a sample PDF generated by it so I can see how they look?

 

Also, if anyone else had this problem and was able to fix it, please post here. Thanks!

Link to comment
Share on other sites

  • 2 weeks later...
I thought it might have been a problem with fopen, and maybe it was my local windows box which sometimes gives me trouble with that. But I uploaded the files to my live server which is a linux box, and I know fopen works fine there, abd I still get the same error messages.

 

Has anyone used this contrib successfully? If so, could you possibly link me to a sample PDF generated by it so I can see how they look?

 

Also, if anyone else had this problem and was able to fix it, please post here. Thanks!

 

 

Hi,

 

I used thePDF Invoice and it was fine. You will see I edited the invoice files to suit my needs but I just followed the instructions and it worked great first time. All I can say is make sure you have followed the instructions properly and put all the files in the right place. There are no files to edit so it couldnt be an easier contribution to install.

 

This is a screenshot of my invoice. I have left space at the top so this it prints correctly onto my letterhead paper. And I dont charge UK Vat soo dont need to put details of this ontoo my invoice.

 

invoice.JPG

 

I suggest you start again, read over the instructions well.

If you have any questions let me know.

 

Good Luck

Ross :-)

Link to comment
Share on other sites

Hi,

I used thePDF Invoice and it was fine.

 

Hi all,

my work on PDF Invoice was fully functional without errors, I've added some new fields (VAT number, telephone, e-mail, total weight, taxes and more) and all works fine.

It's possible to modify PDF orientation (portrait or landscape) and rebuild the page format.

 

Great contribution, for me

 

tested on:

1)local server => win XP

2)local server => mac osX 10.3

3)local server => linux (FC3)

 

all with apache 2 and php 4.3.9

 

.. maybe your apache/php versions are obsolete?

Edited by queengraph
Link to comment
Share on other sites

Hi all,

my work on PDF Invoice was fully functional without errors, I've added some new fields (VAT number, telephone, e-mail, total weight, taxes and more) and all works fine.

It's possible to modify PDF orientation (portrait or landscape) and rebuild the page format.

 

Great contribution, for me

 

tested on:

1)local server => win XP

2)local server => mac osX 10.3

3)local server => linux (FC3)

 

all with apache 2 and php 4.3.9

 

.. maybe your apache/php versions are obsolete?

 

Okay, I think I figured out what was causing the error message.

 

I installed PDF Invoice 1.3 and then tried using the :Improved" version of invoice.php 1.4.

 

I rolled that back to the invoice.php included with the contrib, and the error went away.

 

Adobe Acrobat opened up and I thought I was all set, however, now adobe gives me an error saying "This file is damaged and cannot be opened"

 

So, it seems as if I just traded in a PHP error for a PDF error, lol.

Link to comment
Share on other sites

  • 6 months later...

I have installed PDF Invoice on my linux machine. When I click on invoice it takes me to a blank page. I reinstalled still the same problem.

HELP

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...