Hey, unfortunately does not work, even the settings are selected as Rune advises, the error is the same can't display the PDF invoice also gives server error 500

2018-07-16 18:02:39 - 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 18:02:39 - 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 18:02:39 - 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 18:02:39 - 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 18:02:39 - 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 18:02:40 - PHP Notice: Undefined offset: 16 in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/mpdf.php on line 21162
2018-07-16 18:02:40 - PHP Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/devCirrusserveCart/devWork/Arastta/system/mpdf/mpdf.php on line 21193
2018-07-16 18:02:40 - 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
In General
Monday, July 16 2018, 09:04 PM
Share this post:
Responses (16)
  • Accepted Answer

    Monday, July 16 2018, 09:14 PM - #Permalink
    This is a quite different error than the one you posted in, so i branched/split your posting into a new topic.

    This is related to your local MAMP setup, and isn't a Arastta bug I think. Maybe you simply try to run it on a unsupported PHP version (like 7.1+), but since you haven't added any system info we can only be guessing. Maybe better test it on a live hosting.

    Pay attention to https://arastta.org/docs/requirements

    And also https://arastta.org/docs/user-manual/tools/system-information
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:25 PM - #Permalink
    The Requirements are satisfied in full see attached
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:29 PM - #Permalink
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:29 PM - #Permalink
    If you actually take a look at your error message, read it and understand it, you will see that it probably isn't so.

    Downgrade to PHP 5.6 and test again. Still there is probably other issues with your local MAMP too.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:33 PM - #Permalink
    What is the PHP version on which Arastta is working? the requirements stated: PHP 5.3.10 or higher, obviously the higher have some limitations, so which version by your practical experience works?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:37 PM - #Permalink
    It's mostly written on/for PHP 5.x. 7.0 should mostly work, but not to well tested. 7.2 doesn't work. 7.1 maybe.

    Just test it on a live server running PHP 5.6 and/or 7.0 to ensure it's not just your local self hosted MAMP being the real problem.

    EDIT: Btw! If you have error logging and display of, from where did you get the notices? Also if you have added any extensions/modifications to the system, please tell.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:46 PM - #Permalink
    Here are the server settings
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:48 PM - #Permalink
    I get the errors from Tools >> Error Log

    Now the error is different because I downgrade the PHP to v 5.5.38, nevertheless the outcome is the same no pdf error 500
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:51 PM - #Permalink
    I tried with PHP v. 5.5.38; 5.6.30; 5.6.32, 7.0.12 the result is the same, tonight will try on one of our life servers, however Im very certain that MAMP does not make problem here regardless will update you tomorrow if life server produce different result

    Cheers
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:51 PM - #Permalink
    Well, there is nothing in the Arastta log you have provided that indicate any issues at the moment. It's just notices, and not errors. Nothing that should throw a error 500.

    You need to check your servers log to figure out why it's throwing out that error 500. Might t.ex be ModSecurity or any other crap, like a firewall/av.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 09:55 PM - #Permalink
    sure
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 10:01 PM - #Permalink
    this is the Apache error log:

    [Mon Jul 16 14:57:06 2018] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.0.12.fcgi" aborted: error parsing headers: duplicate header 'Content-Type', referer: http://host-2-arastta/devwork/arastta/index.php/account/order
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 10:19 PM - #Permalink
    Wonder why it's throwing that duplicate header ...

    Side note! mPDF is a third party system included in Arastta, and the included version is 6.0, while the latest available is 7.1.0: https://github.com/mpdf/mpdf/releases

    As you seems to be a developer, having resources available, you might consider providing an update PR for it at GitHub - supporting never PHP versions without notices and issues. ;)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 10:34 PM - #Permalink
    Just installed a fresh Arastta 1.6.2 test site on PHP 7.0.30, changed nothing, and added nothing.
    Here I tested checkout using the demo products and 'Cash On Delivery'.
    Also tested both a registered customer and a guest customer.
    Invoice generation and print worked on both, no error 500.

    Question: What is it on your order? Any special signs, "foreign" letters or anything special we should test with? Maybe a print of all the order data?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 16 2018, 10:40 PM - #Permalink
    Thank you for the feedback, I did dive deeper into MAMP Apache it turn out there is some MAMAP bug regarding FastCGI: comm with server on MAMP related to timeout, so certainly is not Arastta in this case, I will run test on life server and report back tomorrow as I mention before. Just to be sure, You tested once, I will tested second time if works it is for certain no Arastta issue.

    Thanks for all your efforts !
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 19 2018, 02:23 PM - #Permalink
    The reply is currently minimized Show
Your Reply