Kunstmaan / KunstmaanBundlesCMS

An advanced yet user-friendly content management system, based on the full stack Symfony framework combined with a whole host of community bundles. It provides a full featured, multi-language CMS system with an innovative page and form assembling process, versioning, workflow, translation and media managers and much more.
https://kunstmaancms.be
MIT License
402 stars 186 forks source link

500 Error when trying to add Redirects #112

Closed iknowfoobar closed 9 years ago

iknowfoobar commented 9 years ago

I get a server 500 error when trying to add redirects. This is a fresh install of KunstmaanBundlesCMS and I followed the install guide without problem.

I added a redirect directly to the database and I can edit that one without problem. This only occurs on trying to add new ones

Here is the stack trace: [1] Symfony\Component\Debug\Exception\ContextErrorException: Warning: Illegal offset type in isset or empty at n/a in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php line 185

at Symfony\Component\Debug\ErrorHandler->handleError('2', 'Illegal offset type in isset or empty', '/Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php', '185', array('className' => object(Request)))
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php line 185

at Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor(object(Request))
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php line 265

at Doctrine\ORM\EntityManager->getClassMetadata(object(Request))
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/vendor/kunstmaan/bundles-cms/src/Kunstmaan/AdminListBundle/Controller/AdminListController.php line 106

at Kunstmaan\AdminListBundle\Controller\AdminListController->doAddAction(object(RedirectAdminListConfigurator), object(Request))
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/vendor/kunstmaan/bundles-cms/src/Kunstmaan/RedirectBundle/Controller/RedirectAdminListController.php line 53

at Kunstmaan\RedirectBundle\Controller\RedirectAdminListController->addAction(object(Request))
    in  line 

at call_user_func_array(array(object(RedirectAdminListController), 'addAction'), array(object(Request)))
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/app/bootstrap.php.cache line 3020

at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/app/bootstrap.php.cache line 2982

at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/app/bootstrap.php.cache line 3131

at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/app/bootstrap.php.cache line 2376

at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
    in /Users/iknowfoobar/Sites/Kunstmaan/kunstmaan/web/app_dev.php line 28
iknowfoobar commented 9 years ago

I should add, this is on OS X 10.10.1 with PHP 5.4.34

iknowfoobar commented 9 years ago

This is fixed by #127 for me.