Project

General

Profile

uninitialized constant Faker base

Added by Konstantin Nikonov over 8 years ago

I am tryin to install redmine intouch plugin. But when i am tryin to make migration with

rake redmine:plugins:migrate

I am getting error from other plugin previously installed and seemed to work fine

rake aborted! NameError: uninitialized constant Faker::Base /var/www/scb_user/data/www/redmine.smartcallback.ru/plugins/redmine_git_hosting/lib/core_ext/faker/git.rb:2:in <module:Faker>'
/var/www/scb_user/data/www/redmine.smartcallback.ru/plugins/redmine_git_hosting/lib/core_ext/faker/git.rb:1:in' /var/www/scb_user/data/www/redmine.smartcallback.ru/plugins/redmine_git_hosting/lib/redmine_git_hosting.rb:90:in block in <top (required)>'
/var/www/scb_user/data/www/redmine.smartcallback.ru/config/environment.rb:14:in' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace)

The contents of faker/git.rb seems legit

module Faker

class Git < Base

flexible :git

Ty in advance.


Replies (1)

RE: uninitialized constant Faker base - Added by Martin Denizet (redmine.org team member) over 8 years ago

Hello,

I suggest you check you have the latest compatible version using the official repo of the plugin: https://github.com/jbox-web/redmine_git_hosting
Then make sure you ran correctly:

bundle install --without development test
bundle exec rake redmine:plugins:migrate RAILS_ENV=production NAME=redmine_git_hosting

If you still cannot get it to work, I suggest you create an issue on the Github of the plugin author: https://github.com/jbox-web/redmine_git_hosting/issues/new

Cheers,

    (1-1/1)