Error: Call to a member function getPath() on null: Материал не найден.