News:

Looking for documentation? Take a look on our wiki

Main Menu

Force creation of invoice = blank invoice PDF

Started by Fantastic4, June 25, 2014, 22:11:40 PM

Previous topic - Next topic

Fantastic4

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?

Fantastic4

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.

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Fantastic4

@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


Fantastic4

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.

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/