Post by supak111 » Fri May 17, 2019 11:05 am

Hey everyone, could someone help with this error I get TWICE every time I click the refresh modification button:

Code: Select all

PHP Notice:  Trying to get property 'textContent' of non-object in /system/modification/admin/controller/extension/modification.php on line 143
Here is what the line 142-155 says

Code: Select all

				// Log
				$log[] = 'MOD: ' . $dom->getElementsByTagName('name')->item(0)->textContent;

				$files = $dom->getElementsByTagName('modification')->item(0)->getElementsByTagName('file');

				foreach ($files as $file) {
					$operations = $file->getElementsByTagName('operation');

					$path = '';

					// Get the full path of the files that are going to be used for modification
					if (substr($file->getAttribute('path'), 0, 7) == 'catalog') {
						$path = DIR_CATALOG . str_replace('../', '', substr($file->getAttribute('path'), 8));
					}

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by straightlight » Sat May 18, 2019 12:02 am

Caused by an installed extension. Contact the extension developer to resolved this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by supak111 » Sat May 18, 2019 4:49 am

Hi thank you for your reply, how do I find out which extenuation is causing it? I have many. Nothing in the error is letting me know which extension it might be

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by supak111 » Sat May 18, 2019 5:01 am

Hey never mind, I ended up looking through the code of all of my enabled modifications and 2 of them had

Code: Select all

<id></id>

instead

Code: Select all

 <name></name>
easy enough fix 😊

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm
Who is online

Users browsing this forum: Google [Bot] and 45 guests