Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Deploying to heroku, login plugin failed to load

Started by Muut Archive 10 years ago · 5 replies · 535 views
10 years ago

Hi,
Trying to deploy to heroku, and following the steps given in the hosting documentation. The files are pushed up, but the admin page displays an error dump because the login plugin failed to load. More specifically, this section of user/plugins/login/login.php is invoked:

PHP
    // Autoload classes
    $autoload = __DIR__ . '/vendor/autoload.php';
    if (!is_file($autoload)) {
        throw new \Exception('Login Plugin failed to load. Composer dependencies not met.');
    }

The vendor/autoload.php does appear to be there. Certainly it is locally.

Any ideas? Thanks in advance.

10 years ago

Your .gitignore is excluding the Login plugin's vendor folder, so it's not uploaded to Heroku

10 years ago

I had the same error because I specified vendor in .gitignore, when really I meant /vendor. The first means "ignore all folders named 'vendor'", whilst the second means "ignore the folder named 'vendor' at the root of the project".

10 years ago

Should probably be in the .gitignore file shipped with Grav

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1352 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4064 9 years ago
Archive · by Muut Archive, 9 years ago
1 2949 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago