Post by RYoder97 » Fri Apr 23, 2021 1:00 pm

Recently I have noticed that whenever I try to install a new extension and refresh modifications, I get errors such as "Fatal error: Cannot redeclare Document::$image in /home/abcxyz/ocartdata/storage/modification/system/library/document.php on line 21"

I go to the file in question, and yes, entire lines of code are being duplicated, causing variables/functions to be re-declared. The document.php file is not the only file this happens to. It happens to multiple files under system, admin/controller, and other folders.

Example of document.php after refreshing modifications:

Code: Select all

class Document {

			private $image;
			private $url;
			private $type;
			private $price;
			

			private $image;
			private $url;
			private $type;
			private $price;
			
	private $title;
	private $description;
	private $keywords;
	private $links = array();
	private $styles = array();
	private $scripts = array();

			public function setImage($image) {
				$this->image = $image;
			}

			public function getImage() {
				return $this->image;
			}

			public function setUrl($url) {
				$this->url = $url;
			}

			public function getUrl() {
				return $this->url;
			}

			public function setType($type) {
				$this->type = $type;
			}

			public function getType() {
				return $this->type;
			}

			public function setPrice($price) {
				$this->price = $price;
			}

			public function getPrice() {
				return $this->price;
			}
			

			public function setImage($image) {
				$this->image = $image;
			}

			public function getImage() {
				return $this->image;
			}
What could potentially be causing this sort of issue to occur? This happens even when I refresh and I haven't even installed a new extension. The only solution I found is to delete the modification folder in my ocardata folder. That at least restores things back to working order. But because of this issue I cannot refresh modifications ever.

Has anyone seen this issue before? What could be the cause? Using OC v3.0.3.2.
Last edited by RYoder97 on Sat Apr 24, 2021 8:57 am, edited 1 time in total.

Newbie

Posts

Joined
Mon Aug 26, 2019 7:45 am

Post by JNeuhoff » Fri Apr 23, 2021 5:44 pm

You have faulty extensions installed, possibly multiple times. Look at your Extensions > Installer listing.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by RYoder97 » Sat Apr 24, 2021 8:56 am

JNeuhoff wrote:
Fri Apr 23, 2021 5:44 pm
You have faulty extensions installed, possibly multiple times. Look at your Extensions > Installer listing.
It was my Materialize theme. Thank you!

Newbie

Posts

Joined
Mon Aug 26, 2019 7:45 am
Who is online

Users browsing this forum: Shiftcom and 403 guests