Post by dzman7 » Mon Jan 19, 2015 9:41 am

When testing an order with paypal express checkout my order completes but gives me the following errors
(opencart 2.0.1.0)

Notice: Undefined index: recurring_id in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_name in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_frequency in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_cycle in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_duration in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_price in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_trial in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_trial_frequency in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_trial_cycle in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_trial_duration in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Notice: Undefined index: recurring_trial_price in /home5/anothey5/public_html/manmail/catalog/model/checkout/recurring.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /home5/anothey5/public_html/manmail/index.php:102) in /home5/anothey5/public_html/manmail/system/library/response.php on line 12

line 4 of recurring.php is

$this->db->query("INSERT INTO `" . DB_PREFIX . "order_recurring` SET `order_id` = '" . (int)$order_id . "', `date_added` = NOW(), `status` = 6, `product_id` = '" . (int)$item['product_id'] . "', `product_name` = '" . $this->db->escape($item['name']) . "', `product_quantity` = '" . $this->db->escape($item['quantity']) . "', `recurring_id` = '" . (int)$item['recurring_id'] . "', `recurring_name` = '" . $this->db->escape($item['recurring_name']) . "', `recurring_description` = '" . $this->db->escape($description) . "', `recurring_frequency` = '" . $this->db->escape($item['recurring_frequency']) . "', `recurring_cycle` = '" . (int)$item['recurring_cycle'] . "', `recurring_duration` = '" . (int)$item['recurring_duration'] . "', `recurring_price` = '" . (float)$item['recurring_price'] . "', `trial` = '" . (int)$item['recurring_trial'] . "', `trial_frequency` = '" . $this->db->escape($item['recurring_trial_frequency']) . "', `trial_cycle` = '" . (int)$item['recurring_trial_cycle'] . "', `trial_duration` = '" . (int)$item['recurring_trial_duration'] . "', `trial_price` = '" . (float)$item['recurring_trial_price'] . "', `reference` = ''");

and line 12 of response.php is

header('Location: ' . str_replace(array('&', "\n", "\r"), array('&', '', ''), $url), true, $status);

not sure how to fix this can anyone help?

Newbie

Posts

Joined
Tue Nov 18, 2014 2:01 am
Who is online

Users browsing this forum: No registered users and 17 guests