VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Fantastic4 on June 25, 2014, 22:11:40 PM

Title: Force creation of invoice = blank invoice PDF
Post by: Fantastic4 on June 25, 2014, 22:11:40 PM
Hi there,
I found this problem in another Topic for an older VM version, but no solution that fixes my problem.

When I go to the Backend to orders and try to force the creation of Invoice or Delivery Note, i get always a blank page.

The Installation is:
Joomla 2.5.22
VM 2.6.6
PHP 5.3.28 and MySQL 5.5.38

I have also checked the safe path.

In the error logfile i found the following:

Wed Jun 25 21:35:59 2014] [error] [client 79.195.182.223] PHP Fatal error:  Class 'Permissions' not found in /var/customers/webs/kunde/website/administrator/components/com_virtuemart/helpers/vmtable.php on line 843, referer: https://www.DOMAIN.de/administrator/index.php?option=com_virtuemart&view=orders
[Wed Jun 25 21:35:59 2014] [error] [client 79.195.182.223] PHP Fatal error:  Access to undeclared static property: JLoader::$classes in /var/customers/webs/kunde/website/libraries/loader.php on line 195, referer: https://www.DOMAIN.de/administrator/index.php?option=com_virtuemart&view=orders

Does anybody have a solution or a good idea for my problem?
Title: Re: Force creation of invoice = blank invoice PDF
Post by: Fantastic4 on June 26, 2014, 12:18:24 PM
Hello,
I've been working on that problem since yesterday.
Here is what I've found:
The Shop is using Multivendors and my UserAccount has Superuser Access but is not a Vendor.

Creating the Invoice is working now, if I do the following changes in /administrator/components/com_virtuemart/helpers/vmtable.php :

Deactivate the check "if the User is admin or the mainvendor" by commenting out the complete block from line 833 to line 911.
Then it works.

I mean, this can be a quick fix but not a sustainable solution. So I would be glad about any help and replys.

Thank you.
Title: Re: Force creation of invoice = blank invoice PDF
Post by: Milbo on June 27, 2014, 01:45:04 AM
this is not a fix, it is just breaking your shop.

go to vm tools, go to the second tab, set the storeowner per Id.
Title: Re: Force creation of invoice = blank invoice PDF
Post by: Fantastic4 on July 02, 2014, 12:24:12 PM
@Milbo: Thank you!

I've done as described but still have the same problem. Getting blank page when trying to force Invoice.

What else I can do?

Michael
Title: Re: Force creation of invoice = blank invoice PDF
Post by: bornakke on July 03, 2014, 22:29:37 PM
Same problem here.
Title: Re: Force creation of invoice = blank invoice PDF
Post by: Fantastic4 on July 04, 2014, 09:47:01 AM
due to lack of support i set multivendor status to off. Now it works.

But that is no solution if i would need the multivendor status for the shop.

So I'm still waiting and hoping for an idea that helps.
Title: Re: Force creation of invoice = blank invoice PDF
Post by: Milbo on July 10, 2014, 19:29:49 PM
Our store runs in multivendor mode http://extensions.virtuemart.net/ PDF works. I just fixed the error for a customer (by the way, you get support if you are a customer). It seems you have a wrong tcpdf version installed. Please delete your tpdf library folder and replace it with the one delivered with vm2.6.6.