Hallo,
Ik wil in Magento een factuur van de klant uitprinten, en via magento (dashboard) kan je heel gemakkelijk op "afdrukken" klikken.
Helaas schakelt magento dan door naar een blanco pagina en gebeurd er helemaal niks.
Nu heb ik al het een en ander gegoogled maar overal krijg ik dit: (Al geprobeerd maar levert niks op.)
http://www.3workswebdesign.nl/en/web-design-en/magento-error-when-you-want-to-print-an-invoice-with-magento/:
In other words, there is a problem with the generation of the invoice when you want to print it. The solution is quite simple. Open the FileParserDataSource.php file which can be found in lib/Zend/Pdf and search for:
Codeblok (voorbeeld.php):
1
2
3
abstract public function __construct();
en
abstract public function __destruct();
Remove these two functions or comment them out of the code by putting // in front of them. Subsequently it will look like this:
Codeblok (voorbeeld.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
// abstract public function __construct();
/**
* Object destructor. Closes the data source.
*
* May also perform cleanup tasks such as deleting temporary files.
*/
// abstract public function __destruct();
Nu hoop ik dat iemand anders mij wel kan vertellen hoe dit is op te lossen?
Gr.
Pim
Ik wil in Magento een factuur van de klant uitprinten, en via magento (dashboard) kan je heel gemakkelijk op "afdrukken" klikken.
Helaas schakelt magento dan door naar een blanco pagina en gebeurd er helemaal niks.
Nu heb ik al het een en ander gegoogled maar overal krijg ik dit: (Al geprobeerd maar levert niks op.)
http://www.3workswebdesign.nl/en/web-design-en/magento-error-when-you-want-to-print-an-invoice-with-magento/:
In other words, there is a problem with the generation of the invoice when you want to print it. The solution is quite simple. Open the FileParserDataSource.php file which can be found in lib/Zend/Pdf and search for:
Codeblok (voorbeeld.php):
1
2
3
abstract public function __construct();
en
abstract public function __destruct();
Remove these two functions or comment them out of the code by putting // in front of them. Subsequently it will look like this:
Codeblok (voorbeeld.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
// abstract public function __construct();
/**
* Object destructor. Closes the data source.
*
* May also perform cleanup tasks such as deleting temporary files.
*/
// abstract public function __destruct();
Nu hoop ik dat iemand anders mij wel kan vertellen hoe dit is op te lossen?
Gr.
Pim
