0

Checkout page validation not working in magento2

As per the above link i am gettting the validations and when place order getting the following Fatal error with loading screen and order was not placing.

<b>Fatal error</b>:  Uncaught Error: Call to a member function appendChild() on null in /var/www/html/retailfly/vendor/pelago/emogrifier/src/Emogrifier.php:1419
6
  • can you post code for emogrifier
    – fmsthird
    Commented May 1, 2019 at 14:38
  • It is a core file and we not changed any core related. Commented May 2, 2019 at 4:44
  • I tried removing the validation for bank transfer but still the issues is there so i think Installing this Ibnab_Additional module for bank transfer payment method we are getting the issue for placing order. Commented May 2, 2019 at 5:43
  • yeah maybe remove that one first and check if error still exist otherwise it is the one causing the issue
    – fmsthird
    Commented May 2, 2019 at 5:57
  • Disabled module but still getting error with loading icon after placed order. And in console we are getting the following error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data[Learn More] error-processor.js:28:25 Commented May 2, 2019 at 8:51

2 Answers 2

1

This error is due to a syntax error in your email template. Please check the email template that you recently edited, and find for a Syntax error. Emogrifier already exists that is why it's also telling you the line number which is throwing this exception.

If you further extend your PHP error, in your web server logs, you will also see other errors such as CSS or etc.

Syntax Error: A syntax error is an error in the source code of a program. Since computer programs must follow strict syntax to compile correctly, any aspects of the code that do not conform to the syntax of the programming language will produce a syntax error.

0

please run the following command:

composer require pelago/emogrifier:2.0.0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.