Jump to content

After Update 1.6.0.11 no Invoices are generated


Recommended Posts

Hey Guys,
I had upgraded my prestashop to Version 1.6.0.11, as it seems everything is working fine, just the invoices are not generated. Everytime I try to see my PDF Invoice I get an blank page.

Firebug just give me this information:

 

"NetworkError: 500 Internal Server Error - http://www.fashionresidenz.de/adminlogin/index.php?controller=AdminPdf&token=131520a3a6cb81f0c4182b2b2d1a19d1&submitAction=generateInvoicePDF&id_order=154"

 

How can I fix that asap?

Regards,
Lucas

 

Link to comment
Share on other sites

  • 7 months later...

Hi Fashionresidenz,

I'm using PS 1.6.0.14 and I have same problem... please share your modified controller files.. that will really help for me..

 

Below the Error mesage:

 

Failed to load resource: the server responded with a status of 404 (Not Found)
https://www.freshwana.com/admin380jeoctb/index.php?controller=AdminPdf&toke…00353cb74c3703e8ad21e2eb967268&submitAction=generateInvoicePDF&id_order=18 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
 
Thanks!
Link to comment
Share on other sites

500 Error means fatal error, usually syntax or missing data error. We are unable to determine the reason without a detailed error description. Look at the server log, try to enable Debug mode in PrestaShop. Anything to see the root of this error.

Link to comment
Share on other sites

We're having problems with invoice generation as well. Header and footer are shown but there is no content. This problem only occurs on our production server, in development environment everything's fine.

 

I've set PS_MODE_DEV to true but no error is generated.

Link to comment
Share on other sites

Thanks for replying!

 

[Development]

 

PHP version: 5.6.12-1

Modules: bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib, Zend OPcache

 

[Production]

 

PHP version: 5.5.3-1ubuntu2.3

Modules: apc, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, json, libxml, mbstring, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib, Zend OPcache

 

Prestashop settings, files and data should be identical.

Edited by WhyEs (see edit history)
Link to comment
Share on other sites

I tried some more debugging and placed a copy of classes/pdf/HTMLTemplateInvoice.php in override/classes/pdf/. I removed the smarty->fetch() command for 'summary_tab' into 'something', just to test if the value is getting passed to invoice.tpl. I then deleted cache/class_index.php to refresh the modules and suddenly the template started working again. :huh:

 

Possible bug?

Edited by WhyEs (see edit history)
Link to comment
Share on other sites

  • 3 months later...

 

Warning: Division by zero in /home/goelectr/public_html/tools/tcpdf/tcpdf.php on line 22982

 

Warning: array_fill(): Number of elements must be positive in /home/goelectr/public_html/tools/tcpdf/tcpdf.php on line 22984

 

Warning: Invalid argument supplied for foreach() in /home/goelectr/public_html/tools/tcpdf/tcpdf.php on line 24393

 

Warning: Invalid argument supplied for foreach() in /home/goelectr/public_html/tools/tcpdf/tcpdf.php on line 24425

 

Warning: Invalid argument supplied for foreach() in /home/goelectr/public_html/tools/tcpdf/tcpdf.php on line 24393

 

Warning: Invalid argument supplied for foreach() in /home/goelectr/public_html/tools/tcpdf/tcpdf.php on line 24425

 

Warning: Cannot modify header information - headers already sent by (output started at /home/goelectr/public_html/tools/tcpdf/tcpdf.php:22982) in /home/goelectr/public_html/tools/tcpdf/tcpdf.php on line 8966

TCPDF ERROR: Some data has already been output to browser, can't send PDF file

 

 

These are the errors I recevied but when I select invoice-b2b then invoices are getting generated

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...