NoMethodError (undefined method `valid_password?’ for #): Fatfreecrm

I got this error while setting up FatFreeCRM on heroku and got this error, when I tried testing sending password reminder email.

If testing the same using rails console, everything seems to be working fine.

heroku run rails console

me = User.first



me.vald_password? “valid_password”



It turns out to be a heroku specific issue, you need to set HEROKU to true

heroku config add HEROKU=true

and everything works like a charm

Hope, it helps someone.


SystemStackError (stack level too deep): FatfreeCRM

I was trying to setup Fat Free CRM on heroku. Upon pushing the code to heroku, I got this weird error in Heroku logs

2014-01-04T06:07:08.768464+00:00 app[web.1]: SystemStackError (stack level too deep):
2014-01-04T06:07:08.768464+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:409

The error is quiet confusing & doesn’t tell you the code file where it is coming from. Upon doing a search for the error also doesn’t point out any useful information.

It turns out that the cause is a missing step in the install process.

You need to run the setup & create admin account by giving this command

heroku run rake ffcrm:setup

and it fixes the issue.

Hope, it helps someone.