Post by Todd Young » Sat Oct 17, 2015 1:14 am

When enabling OpenBayPro and the eBay extension, you might get a total site crash with the following error:

Fatal error: Call to undefined method Loader::library() in /xyz/system/library/openbay/ebay.php on line 146

There is a problem with the logging class which I haven't tracked down yet, but if you want your site back quickly just open the file system/library/openbay/ebay.php and comment out line 27, which will simply turn off the call to the logging for this extension:

Code: Select all

if ($this->logging == 1) {
	//$this->setLogger();
}
Last edited by Todd Young on Sat Oct 17, 2015 2:08 am, edited 1 time in total.

Newbie

Posts

Joined
Wed Feb 20, 2013 12:55 pm

Post by andyd92 » Sun Dec 27, 2015 3:49 pm

I just had the same issue and your solution worked. Did you manage to find a permanent fix?

Surprising Openbay is broken in 2.1.0.1 especially as they have released several updates. Actually, I'm not surprised at all, wouldn't be the first time Welford Media release broken software...

New member

Posts

Joined
Tue Dec 11, 2012 1:50 am

Post by pm-netti » Mon Dec 28, 2015 9:36 pm

andyd92 wrote:I just had the same issue and your solution worked. Did you manage to find a permanent fix?

Surprising Openbay is broken in 2.1.0.1 especially as they have released several updates. Actually, I'm not surprised at all, wouldn't be the first time Welford Media release broken software...
https://github.com/opencart/opencart/bl ... loader.php

This method can add to file engine/loader.php

Code: Select all

	public function library($route) {
		// Sanitize the call
		$route = str_replace('../', '', (string)$route);
			
		$file = DIR_SYSTEM . 'library/' . $route . '.php';
		$class = str_replace('/', '\\', $route);
		if (is_file($file)) {
			include_once($file);
			$this->registry->set(basename($route), new $class($this->registry));
		} else {
			trigger_error('Error: Could not load library ' . $route . '!');
			exit();
		}
	}

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland
Who is online

Users browsing this forum: No registered users and 15 guests