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.