Error using version .15

After the installation, we are getting the error below in our logs (constantly… the error logs are filling up).

_2018-06-14 07:00:33 WARN - Model failed to respond to details undefined method `details=’ for # detail _
Did you mean? details

As well, we are getting errors for some commands when they are used:

%% Sorry! The code lost its mind while executing a command. Not your fault.
Please send this error information to the admins and tell them what you were doing at the time:
Description: “onstage”
Error: “undefined method `has_key?’ for nil:NilClass”

It does this for +IC command and the look command, at the very least.

Huh. I’m not seeing either of those the test server or on BSGU, which are both running 0.15. We’ll have to debug a bit.

First try doing load all just to make sure all the game modules were loaded after the last upgrade.

If that doesn’t fix it, you could also try just shutting down and restarting the game.

If that still doesn’t work…

  • How often are the WARN messages appearing? Do they seem to be on a regular timer or are they appearing at random times?
  • Do you have any custom code changes? In particular, any custom database models that might have been trying to use the old include Describable module?
  • Did the update give you the files aresmush/plugins/describe/public/desc_char.rb and desc_room.rb? These are the files that define the ‘details’ field. There should be a line like this:
  class Character
     ...
     attribute :details, :type => DataType::Hash, :default => {}
  end
  • The error log file should have more information about the has_key? error, including the lines of code where it’s occurring. I’m guessing it’s related to the details problem though.

The “sorry” errors are appearing in-game every time the commands are used. It appears to be onstage and descs that are having issues (possibly more commands, don’t know).

I tried load all earlier, didn’t help. I also did an upgrade, load all, then migrate. Also didn’t work.

The shutdown/restart didn’t fix it either.

In addition, I got an error when starting the game back up in the command line:

_Build failed. _
Build Error (Babel) in ember-bootstrap/components/bs-form/element/checkbox.js
unexpected end of file
Stack and Trace Error Report: /tmp/error.dump.bcdfc84a0c1c79781b576abef20f4527.log

The WARN messages seem to be appearing every 15 or 30 minutes. I don’t have any custom code. The files are where you said they should be and have the details lines as described in your post.

I can’t see any information on the haskey errors in the log via the website.

We sorted it out on Goodstarbuck’s game, but breadcrumbs for anyone else having similar issues in the future:

There’s a bug in 0.15 that causes errors if you have an empty room description. That’ll be fixed in the next patch.

And also there’s some weirdness that can happen if you try to downgrade to an older version and then upgrade back. The database migration framework only handles going forward in versions, not backwards, so doing a downgrade requires some special manual code-fu.