Post by micrdy » Fri Mar 27, 2015 4:08 pm

I got this error in my opencart shop right after uninstalling an extension. The complete shop does not work anymore. It has not my own template and all php functions do not work. This error shows up:

Code: Select all

Warning: fopen(/my_path/system/logs/): failed to open stream: Is a directory in /my_path/system/library/log.php on line 6
This is the Log class:

Code: Select all

class Log {
    private $handle;

    public function __construct($filename) {
        //this is line 6
        $this->handle = fopen(DIR_LOGS . $filename, 'a');
    }

    public function write($message) {
        fwrite($this->handle, date('Y-m-d G:i:s') . ' - ' . print_r($message, true) . "\n");
    }

    public function __destruct() {
        fclose($this->handle);
    }
}
Looks like the $filename var is empty. This also reflects the not working php i mentioned above. The logs directory is 755 and i tried it with 777.

And a second error shows at the bottom of my shop:

Code: Select all

Fatal error: Call to a member function get() on a non-object in /homepages/6/d421894284/htdocs/opencart/upload/index.php on line 104
Have anyone experienced this error in Opencart 2.0.1.1? Google says, that this must be a common error, but I can´t find a solution.

New member

Posts

Joined
Mon Mar 09, 2015 6:40 pm

Post by bloomper » Tue Jun 23, 2015 3:28 am

Hi!

I'm getting the same error. Were you able to solve this problem?

Cheers,
Anders

Newbie

Posts

Joined
Wed Apr 29, 2015 5:55 am

Post by fitnessfood » Tue Mar 06, 2018 11:00 pm

Having the same probs - whats the solution?

Newbie

Posts

Joined
Tue Mar 06, 2018 8:51 pm
Who is online

Users browsing this forum: No registered users and 16 guests