zikula-modules / DizkusModule

Official repository for Dizkus, a fully integrated forum solution for Zikula 1.4+
21 stars 7 forks source link

Instalation failed Root cannot be changed manually, change parent instead #233

Closed Kaik closed 10 years ago

Kaik commented 10 years ago

Hi I just tried to install dizkus on fresh zikula 14 install and this error showed up. No hook modules tables created without initial content.

Stack Trace

  1. in /home/kaiktest/public_html/zikula_dev_current/src/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Strategy/ORM/Nested.php at line 141  
  2.         $changeSet = $uow->getEntityChangeSet($node);
  3.         if (isset($config['root']) && isset($changeSet[$config['root']])) {
  4.             throw new \Gedmo\Exception\UnexpectedValueException("Root cannot be changed manually, change parent instead");
  5.         }
  6.         $oid = spl_object_hash($node);
  7. at Nested ->processScheduledUpdate (object(EntityManager), object(ForumEntity), object(ORM))  in /home/kaiktest/public_html/zikula_dev_current/src/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/TreeListener.php at line 120  
  8. at TreeListener ->onFlush (object(OnFlushEventArgs))  in /home/kaiktest/public_html/zikula_dev_current/src/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php at line 61  
  9. at ContainerAwareEventManager ->dispatchEvent ('onFlush', object(OnFlushEventArgs))  in /home/kaiktest/public_html/zikula_dev_current/src/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 3220  
  10. at UnitOfWork ->dispatchOnFlushEvent ()  in /home/kaiktest/public_html/zikula_dev_current/src/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 324  
  11. at UnitOfWork ->commit (null)  in /home/kaiktest/public_html/zikula_dev_current/src/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 389  
  12. at EntityManager ->flush ()  in /home/kaiktest/public_html/zikula_dev_current/src/modules/zikula-dizkus/Zikula/Module/DizkusModule/DizkusModuleInstaller.php at line 102  
  13. at DizkusModuleInstaller ->setUpExampleForums (object(ForumEntity))  in /home/kaiktest/public_html/zikula_dev_current/src/modules/zikula-dizkus/Zikula/Module/DizkusModule/DizkusModuleInstaller.php at line 73  
craigh commented 10 years ago

No hook modules tables created without initial content.

what does this mean? Is it related to the title "Root cannot be changed manually, change parent instead"

please confirm you have 5 tables beginning with hook_* in your DB

Kaik commented 10 years ago

Hook tables exist and are filled with data (No hook modules exist on installation Scribite BBCode etc...). Looks like it failed on creating initial forum data Foods etc.. and I guess it will be related to nested tree part.

There is no data in dizkus_* tables and failure begins with creating root entry. I have tried to add forum in administration but that failed because there was no root to chose in parent select.

I added root entry data manually into DB and then tried to add forum in administration and same error occurred as above.

craigh commented 10 years ago

[7/1/14, 3:59:43 PM] Christian: It's when creating a new root node somehow. https://github.com/Atlantic18/DoctrineExtensions/issues/1026 [7/1/14, 3:59:54 PM] Christian: This caused it: https://github.com/doctrine/doctrine2/commit/d473824279bfee19772bb1692d2a3453a2aff233#commitcomment-5792807 [7/1/14, 4:00:06 PM] Christian: And this might fix it again if I understand correctly: https://github.com/doctrine/doctrine2/pull/1074

cmfcmf commented 10 years ago

This is related to this change breaking BC being reported here and might be fixed by this PR.

Kaik commented 10 years ago

This is fixed after updating doctrine

craigh commented 10 years ago

:+1: