Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

PDF Invoice issue is back #689

Open
syntaxerror opened this issue Mar 24, 2017 · 7 comments
Open

PDF Invoice issue is back #689

syntaxerror opened this issue Mar 24, 2017 · 7 comments

Comments

@syntaxerror
Copy link
Contributor

syntaxerror commented Mar 24, 2017

This PDF Invoice issue is back, at least in 1.5.5+
Ref #581

This time it might be a different cause, not sure yet ... But the symptoms is identical:

If customer number is replaced with zero in db, PDF generation works.

Also the customer can generate the PDF from his/her account at any time. And when the customer is logged in, also admin can generate his/her PDF from admin - but else not.

Using route.php from 1.5.0 doesn't seem to help.
Disabling SEO doesn't seem to help.

@denisdulici
Copy link
Member

Just tried with Arastta 1.6-dev and if "Display Errors" is disabled it works fine for both sides, admin doesn't require customer to be logged in. Also, customers are not able to get the invoice content if admin has not generated the invoice. Yes, they get a file named as pdf but it's empty.

@denisdulici
Copy link
Member

Forgot to say, going to check why it fails with display errors enabled.

@denisdulici
Copy link
Member

Rune, what is your PHP version? It works fine for me on PHP 5.6 version.

@syntaxerror
Copy link
Contributor Author

Hi Denis, above you mentioned it would fail if "Display Errors" was enabled, has that changed?

Don't remember what the PHP version was in this old test of Breck Demers issue, but most likely PHP 7.0 or 5.6, as I haven't used anything else in tests the last year.

@kgvconsulting
Copy link

kgvconsulting commented Jul 16, 2018

**The following is not related to PDF issue #689

The reason for that is MAMP bug regarding FastCGI and Apache server timeout.**

Hi I have similar issue with generating an displaying PDF invoice from both Admin and Customer sides, after creating order, and invoice for customer, the same invoice cannot be displayed in PDF.

Arastta v1.6.2-Stable
PHP 7.0.12

Arastta error log report:

2018-07-16 17:31:59 - PHP Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; mPDF has a deprecated constructor in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/mpdf.php on line 89
2018-07-16 17:31:59 - PHP Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/classes/grad.php on line 3
2018-07-16 17:31:59 - PHP Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/classes/mpdfform.php on line 3
2018-07-16 17:31:59 - PHP Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/classes/cssmgr.php on line 3
2018-07-16 17:31:59 - PHP Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/classes/otl.php on line 12
2018-07-16 17:31:59 - PHP Notice: Undefined offset: 16 in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/mpdf.php on line 21162
2018-07-16 17:31:59 - PHP Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/mpdf.php on line 21193
2018-07-16 17:31:59 - PHP Unknown: Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/classes/ttfontsuni.php on line 51
screen shot 2018-07-16 at 1 31 51 pm
screen shot 2018-07-16 at 1 32 02 pm

@syntaxerror
Copy link
Contributor Author

syntaxerror commented Jul 16, 2018

Similar is not the same. Please don't cross-post to several places, especially not when you already has gotten a reply, and something to work on. That is just cluttering things up, and doesn't encourage anyone to help, it's only annoying.
https://arastta.org/forum/re-error-on-pdf-invoice-5#reply-3765

@kgvconsulting
Copy link

I install copy on life server and can confirm that the issue with the opening of pdf is local to MAMP. Presently the application on the life server is running on PHP 56 will run more testing and also will try php 70 later this week

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants