coolcsn / CsnCmsApplication

Zend Framework 2 complete Application, build using coolcsn modules
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

Error after installation #1

Open marhub opened 9 years ago

marhub commented 9 years ago

I have cloned source from github, and have error:

Fatal error: Zend\Mvc\Router\Exception\RuntimeException: Route with name "login" not found in /mnt/hgfs/servshare/projekty/csncms/vendor/zendframework/zendframework/library/Zend/View/Helper/Navigation/AbstractHelper.php on line 169

wingman007 commented 9 years ago

We will check the application again. This will be possible in 10 days from now.

bahman2216 commented 9 years ago

I just install in on my win 8 with xamp and get this error: Fatal error: Call to a member function getRole() on null in ... vendor\coolcsn\csn-authorization\src\CsnAuthorization\Module.php on line 49

wingman007 commented 9 years ago

Please, make sure you are not using the database as a source of ACL data.

mahivitsit commented 9 years ago

I'm getting these errors fatal error: Zend\Mvc\Router\Exception\RuntimeException: Route with name "login" not found in C:\xampp\htdocs\coolcms\vendor\zendframework\zendframework\library\Zend\View\Helper\Navigation\AbstractHelper.php on line 170 and

Notice: Undefined index: use_database_storage in C:\xampp\htdocs\coolcms\vendor\coolcsn\csn-authorization\config\module.config.php on line 34

UDH5 commented 9 years ago

I got into Zend Framework 2 three days ago by watching your Tutorial on YouTube "How to build a Zend Framework 2 web application in simple steps" - Following the steps I easily got a working Application, Thank You!

Later I saw, you sampled this steps to the github-project CsnCmsApplication. I tried to install this project too, but it failed with the early mentioned RuntimeException: "Route with name 'login' not found" and the Notice: "Undefined index: use_database_storage". The last one was easy to spot; in ./config/autoload/acl.global.php is no such key. I compared this file to ./vendor/coolcsn/csn-authorization/config/acl.global.php.dist where it still exists (as a leftover from the step-by-step-application, I guess). After adding "'use_database_storage' => false" the Notice disappeared - but the error "Route with name 'login' not found" still exists.

In ./config/autoload/navigation.global.php the route login is defined, but I think the problem is in ./vendor/coolcsn/csn-user/config/module.config.php; the routes of the csn-user extension are different - no "login" to find here. When you change the names in navigation.global.php to the names given in module.config.php the application seems to run - but by doing so, you mess up the intended functionality of cns-user completly - and even by replacing the dev-master cns-user by the standalone version 0.1.0 of the step-by-step-application you run into some more problems, because ./vendor/coolcsn/csn-user/src/CsnUser/Entity/User.php has changed and as a matter of fact, the database table user too.

Please check the code and you will find another leftover in ./config/autoload/csnuser.global.php. You are calling $user->getPasswordSalt() but .../Entity/User.php has no method getPasswordSalt any longer.

I hope I was able to hit the problem of the csn-user dev-master version; is the question/answer feature really necessary or mostly thought as a development task for your students?

eponcehenriquez commented 8 years ago

Estimated many greetings, I ask can help me take 3 days trying to fix the error delivered to test your project but I can not implement it, it gives the same error as previous comments.

Notice: Undefined index: use_database_storage in C:\wamp\www\Sistema\vendor\coolcsn\csn-authorization\config\module.config.php on line 34

Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in C:\wamp\www\Sistema\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php on line 2956

Sorry for my English

ghost commented 7 years ago

i can not login csnuser on wamp ? please help me

ziggybaba1 commented 6 years ago

Add this 'use_database_storage' => false, to autoload/acl.global.php after the acl array @mahivitsit