denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
Denise ([staff profile] denise) wrote in [site community profile] dw_dev_training2013-07-09 07:08 pm
Entry tags:

babydev bait!

[staff profile] mark just filed two bugs that have to do with fixing warnings and errors in the logs. Two of 'em are probably a bit more involved, but bug 5181: Calling "prop" on undefined value is a very good starter bug!



* You'll need to find where the error's coming from. Fortunately, it's right there in the message: "Can't call method "prop" on an undefined value at /home/dw/current/htdocs/tools/endpoints/ctxpopup.bml line 48". So, you're looking at line 48 of the file $LJHOME/htdocs/tools/endpoints/ctxpopup.bml.

* ... but, since ctxpopup.bml is a BML file, it only counts lines from the beginning of the <?_code BML block. So you really want line 62.

* "Can't call method foo on an undefined value" errors almost always mean that you're missing an "if defined" somewhere.

As always, holler if you need more guidance!