2011-12-02 34 views
0

我一直在使用Symfony2一段時間,並且最近添加了FOSUserBundle,SonataAdminBundle,然後是SonataPageBundle。Symfony2 SonataPageBundle - 可捕獲的致命錯誤 - 快照:: setPage()

一切工作正常,直到添加SonataPageBundle後,我試圖使用管理儀表板在快照部分單擊「添加新」。它給試圖加載頁面時出現以下錯誤:

Catchable Fatal Error: Argument 1 passed to Sonata\PageBundle\Model\Snapshot::setPage() must be an instance of Sonata\PageBundle\Model\PageInterface, null given, called in Symfony/vendor/bundles/Sonata/PageBundle/Controller/SnapshotAdminController.php on line 38 and defined in Symfony/vendor/bundles/Sonata/PageBundle/Model/Snapshot.php line 236 500 Internal Server Error - ErrorException

我知道有一個錯誤與SetPage()但這顯然已經固定,而我檢查對提交的代碼。除了添加管理員用戶和測試用戶之外,所有軟件包仍像安裝時一樣。

任何人都可以幫忙嗎?

在此先感謝

回答