Post by theflocha » Sat Jul 20, 2019 11:30 pm

Hi all, I'm not an IT expert and I really need help here... ???
.
My website link: http://theflocha.com
AND, I'm using opencart version 3.0.3.2.
I want to install ipay88 for my website payment method under the extension.
However, after I copy the folder to my server and install it to extensions -->payments.
It keeps showing this error:
Fatal error: Cannot declare class Config, because the name is already in use in /home/thefloch/public_html/system/library/config.php on line 13
.
I check the config.php, but I don’t feel any inappropriate.
.
<?php
/**
* @package OpenCart
* @author Daniel Kerr
* @copyright Copyright (c) 2005 - 2017, OpenCart, Ltd. (https://www.opencart.com/)
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.opencart.com
*/

/**
* Config class
*/
class Config {
private $data = array();

/**
*
*
* @param string $key
*
* @return mixed
*/
public function get($key) {
return (isset($this->data[$key]) ? $this->data[$key] : null);
}

/**
*
*
* @param string $key
* @param string $value
*/
public function set($key, $value) {
$this->data[$key] = $value;
}

/**
*
*
* @param string $key
*
* @return mixed
*/
public function has($key) {
return isset($this->data[$key]);
}

/**
*
*
* @param string $filename
*/
public function load($filename) {
$file = DIR_CONFIG . $filename . '.php';

if (file_exists($file)) {
$_ = array();

require($file);

$this->data = array_merge($this->data, $_);
} else {
trigger_error('Error: Could not load config ' . $filename . '!');
exit();
}
}
}
.
Can anyone kindly help me with this? Will very appreciate if anyone can help me in this matter ….

Newbie

Posts

Joined
Sun May 19, 2019 4:58 pm

Post by letxobnav » Sun Jul 21, 2019 1:50 pm

I guess that extension you try to install wants to create it's own config class, contact the developers for assistance.

ps. optimize your slideshow images, 1MB+ each is not good and certainly not if they come every second.

Crystal Light Centrum Taiwan
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by straightlight » Sun Jul 21, 2019 7:00 pm

Contact site support on the Marketplace page where you downloaded the extension. This will create a new incident request.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 11 guests