Fashionresidenz Posted February 7, 2015 Share Posted February 7, 2015 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 More sharing options...
NemoPS Posted February 7, 2015 Share Posted February 7, 2015 Blank Page: see my signature 1 Link to comment Share on other sites More sharing options...
helldog2004 Posted February 8, 2015 Share Posted February 8, 2015 Can you check if the "pdf" folder is still in the root of FTP? If so, can you check .htaccess and make sure it is only: <FilesMatch "\.tpl$"> Deny from all </FilesMatch> Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 What is the detailed error message after enabling debug mode? Link to comment Share on other sites More sharing options...
Fashionresidenz Posted February 9, 2015 Author Share Posted February 9, 2015 I don´t anymore what the correct error message was. But I replaced files which are shown in the debug mode. I changed Some controller files with older backed up files and everything is fine.Thank you for your help Link to comment Share on other sites More sharing options...
CoolDesigner Posted September 14, 2015 Share Posted September 14, 2015 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 More sharing options...
tuk66 Posted September 14, 2015 Share Posted September 14, 2015 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 More sharing options...
WhyEs Posted September 14, 2015 Share Posted September 14, 2015 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 More sharing options...
tuk66 Posted September 14, 2015 Share Posted September 14, 2015 What's different? PHP version, PHP extensions, settings, files, data? Link to comment Share on other sites More sharing options...
WhyEs Posted September 14, 2015 Share Posted September 14, 2015 (edited) 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 September 14, 2015 by WhyEs (see edit history) Link to comment Share on other sites More sharing options...
WhyEs Posted September 14, 2015 Share Posted September 14, 2015 Update: when I switch invoice model to 'invoice-b2b', invoices look like they should. Switch back to 'invoice' and there's no content. Link to comment Share on other sites More sharing options...
WhyEs Posted September 14, 2015 Share Posted September 14, 2015 Ok, I did some testing and it seems the {$some_tab} tags in the invoice templates aren't working. Any help would be appreciated while I keep digging! Link to comment Share on other sites More sharing options...
WhyEs Posted September 14, 2015 Share Posted September 14, 2015 (edited) 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. Possible bug? Edited September 14, 2015 by WhyEs (see edit history) Link to comment Share on other sites More sharing options...
lovemyseo Posted December 18, 2015 Share Posted December 18, 2015 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 More sharing options...
NemoPS Posted December 18, 2015 Share Posted December 18, 2015 Looks like it's having trouble with widths $table_min_column_width = ($table_columns_width / $dom[$key]['cols']);That's the first line it mentions. What if you try replacing the whole classes/pdf folder with a clean one? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now