Post by grambas » Mon Dec 10, 2012 9:25 pm

Hello everyone,

im using webtopay for opencart-1.5.3.1-webtopay-1.6-2012-08-20 version
My Opencart version is 1.5.2.1

When cusomter paid the order im getting error:

<b>Fatal error</b>: Call to a member function isBlacklisted() on a non-object in <b>/home/yeylt/domains/yey.lt/public_html/vqmod/vqcache/vq2-catalog_model_checkout_order.php</b> on line <b>621</b><br />'


vqcache/vq2-catalog_model_checkout_order.php 605-622 lines:

Code: Select all

			// Blacklist
			$status = false;
			
			if ($order_info['customer_id']) {
				$this->load->model('account/customer');
				
				$results = $this->model_account_customer->getIps($order_info['customer_id']);
				
				foreach ($results as $result) {
					if ($this->model_account_customer->isBlacklisted($result['ip'])) {
						$status = true;
						
						break;
					}
				}
			} else {
				$status = $this->model_account_customer->isBlacklisted($order_info['ip']);
			}
Can i delete blacklist function? Where is the problem?

Newbie

Posts

Joined
Mon Jun 11, 2012 5:31 pm

Post by Atomdesign » Wed Dec 12, 2012 8:01 pm

I'm having a very similar error. Some payments get stuck on pending status although they have actually been paid. Some orders are going through as they should and end up in completed status.

While I'm using a different payment module (multisafepay) the error received is the same and points to the same line 621 in the vqmod cache file.

If anyone can help out here, I'd love to disable the blacklist feature if that would fix the issue but am hesitant to meddle around the code in this file as I might break things.

Newbie

Posts

Joined
Wed Dec 12, 2012 7:58 pm

Post by opencart-templates » Wed Jul 24, 2013 5:33 pm

One of my clients had the same issue, easily fixed by moving the

Code: Select all

$this->load->model('account/customer');
Above the if statement

Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce


User avatar
Active Member

Posts

Joined
Mon May 16, 2011 7:24 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 46 guests