getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

class Email not found #47

Closed cord closed 7 years ago

cord commented 7 years ago

Hi guys,

after updating to the latest versions (core + plugins) grav stopped (local worked, but not on fortrabbit) with the error "class Email not found" in

/plugins/email/email.php

After re-adding the line

require_once __DIR__ . '/classes/email.php';

like it was in a previous version:

public function onPluginsInitialized()
    {
        require_once __DIR__ . '/classes/email.php';
        require_once __DIR__ . '/vendor/autoload.php';

        $this->email = new Email();

        if ($this->email->enabled()) {
            $this->grav['Email'] = $this->email;
        }
    }

the error was gone.

cord commented 7 years ago

fortrabbit support: their system is case sensitive, mac is not. So I guess somewhere is a case typo?

rhukster commented 7 years ago

what version where you on before and what are you on now? I know we had that issue about a year ago, but we fixed it.

cord commented 7 years ago

I updated from

v2.3.0 04/20/2016

rhukster commented 7 years ago

try removing user/plugins/emailfolder, and reinstalling email plugin via gpm.

cord commented 7 years ago

that did the trick!