Post by mahler85 » Sun Dec 18, 2016 2:42 pm

When submitting the payment, I get this error:
Notice: Undefined index: token in /home/my_site/public_html/catalog/controller/payment/epay.php on line 165Warning: Cannot modify header information - headers already sent by (output started at /home/my_site/public_html/index.php:102) in /home/my_site/public_html/system/library/response.php on line 12

The order and payment works fine, but it somehave fail to direct you to the confirmation page.

Line 165 in epay.php says:

Code: Select all

        if($md5 == 1) {
            $this->response->redirect($this->url->link('checkout/success', 'token=' . $this->session->data['token'], 'SSL'));
        } else {
            $this->response->redirect($this->url->link('checkout/epay', 'md5error=1', 'SSL')); 
I have try both with an MD5 key and without.

Line 12 in response.php says:

Code: Select all

public function redirect($url, $status = 302) {
        header('Location: ' . str_replace(array('&', "\n", "\r"), array('&', '', ''), $url), true, $status);
        exit(); 
Hope anyone can help. Thanks...
Last edited by Johnathan on Mon Dec 19, 2016 12:11 am, edited 1 time in total.
Reason: Added [code] tags for readability

Newbie

Posts

Joined
Thu Dec 15, 2016 4:16 am
Who is online

Users browsing this forum: No registered users and 3 guests