Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when redirected to checkout/done page after payment #421

Closed
Zmove opened this issue Jan 11, 2020 · 4 comments
Closed

Error when redirected to checkout/done page after payment #421

Zmove opened this issue Jan 11, 2020 · 4 comments

Comments

@Zmove
Copy link

Zmove commented Jan 11, 2020

Hello,

When I complete payment to the bank page and I'm redirected to the checkout done page, I get a fatal error :

Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getCurrent() on null in /vendor/twig/twig/src/Parser.php:332

Do you have an idea about what could be the cause of the error ?

Here is my complete function actually :

 public function complete(PaymentResult $result): PaymentResult
{
    //$data = Request::all();
    //return $result->success($data, 'Status : '.$data['STATUS']);
    return $result->success([], '');
}

Best regards,

Alex

@tobias-kuendig
Copy link
Member

I guess this is a duplicate of #258

Currently, October does not support calling a custom Twig function from inside the mail partials. This is what happens if you format a price using the | money filter, which calls Twig::parse under the hood.

This is an extremely time consuming and complicated problem to debug.

@Zmove
Copy link
Author

Zmove commented Jan 11, 2020

Seems to be the case cause if I disable email notification, it works. I close that issue in the benefits of #258 which is fare more complete.

@Zmove Zmove closed this as completed Jan 11, 2020
@zlobec
Copy link

zlobec commented Mar 8, 2020

@Zmove Which notification should be disabled?

@Zmove
Copy link
Author

Zmove commented Mar 12, 2020

I disabled them all. Waiting for an official solution

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

No branches or pull requests

3 participants