Post by dutchdiver » Wed Nov 06, 2024 8:27 pm

Dear readers,

I'm having a little problem with opencart 3.0.4.0

If I use the delete button in modification log, I get the following error:


Warning: Undefined variable $handle in /home/xxxx/domains/xxxxx/storage/modification/admin/controller/marketplace/modification.php on line 670

When I go to the file I see the following:

Code: Select all

public function clearlog() {
		$this->load->language('marketplace/modification');
		
		$this->document->setTitle($this->language->get('heading_title'));

		$this->load->model('setting/modification');
		
	                                   	if ($this->validate()) {
      	fclose($handle);     -------------------------------------this is line 670         
			
					$handle = fopen(DIR_LOGS . 'ocmod_error.log', 'w+');
			$handle = fopen(DIR_LOGS . 'ocmod.log', 'w+');

			fclose($handle);

			$this->session->data['success'] = $this->language->get('text_success');

			$url = '';

			if (isset($this->request->get['sort'])) {
				$url .= '&sort=' . $this->request->get['sort'];
			}

			if (isset($this->request->get['order'])) {
				$url .= '&order=' . $this->request->get['order'];
			}

			if (isset($this->request->get['page'])) {
				$url .= '&page=' . $this->request->get['page'];
			}

			$this->response->redirect($this->url->link('marketplace/modification', 'user_token=' . $this->session->data['user_token'] . $url, true));
		}

		$this->getList();
	}

the storage directory is outside the web directory.

does anyone have an idea,

thanks in advance for your help.

Newbie

Posts

Joined
Tue May 20, 2014 9:41 pm

Post by by mona » Wed Nov 06, 2024 8:43 pm

Warning: Undefined variable $handle in /home/xxxx/domains/xxxxx/storage/modification/admin/controller/marketplace/modification.php on line 670

https://www.w3schools.com/php/php_variables.asp

Remove the modification and contact the developer

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by JNeuhoff » Wed Nov 06, 2024 10:55 pm

You shouldn't use a modification that modifies OpenCart's modification system.
For a quick solution, clear your modification folder via your cPanel's file manager or FTP, then remove the offending modification, and finally do a refresh of the remaining modifications.

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 paulfeakins » Thu Nov 07, 2024 12:07 am

dutchdiver wrote:
Wed Nov 06, 2024 8:27 pm
I'm having a little problem with opencart 3.0.4.0
And what extensions have you just installed before this?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 23 guests