Internal Server Error

Argument 1 passed to Craft\BaseElementModel::isAncestorOf() must be an instance of Craft\BaseElementModel, null given