-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on first test blog... #11
Comments
Hi @kershnerd
You have to fix this first. After that your application is able to show catched exceptions. |
I fixed that view error... when I go to /blog/post/1 I get the following error: Notice: Undefined offset: 0 in /var/www/vendor/mamuz/mamuz-blog/src/MamuzBlog/Crypt/HashIdAdapter.php on line 19 I followed your directions by copying ... The only other thing I have done was changing the salt value a couple of times. Since then, I have restored back to the original. Using ZendDeveloperTools, I see that crypt is in the config array: Any ideas? And thank you so much for the time; I really appreciated it! |
Also, /blog gives me a 500 error. /blog/posts doesn't show me any blogs but I see a clickable tag link. When I click on that tag link, I get another 500 error. :( |
Sounds for me that any id to a specific blog entity cannot be read from route. Be sure your route config is working to get needed params.
What is the errormessage? |
BTW: i fixed the undefined offset error by checking on existing https://github.com/mamuz/MamuzBlog/releases/tag/1.4.1 |
When I do a var_dump on $encryptedId from the publishedPostAction (for this route: /blog/post/1), I get 1. Is that action expecting an already encrypted id? I am obviously passing along the actual ID of the blog post. When I go to /blog and get that 500 error, I am not sure what the error is. I am using all your default config files. I get to the publishedPostsAction and I have pasted a var_dump of $collection below. Something happens after the viewModelFactory()->createFor($collection); object(Doctrine\ORM\Tools\Pagination\Paginator)[341] |
You have to request with an encrypted id, something like Route
You should know what is going wrong here. Check your log files. When you have not a log file, then configure your error handling. After that i can support you. Maybe DB connection failed, i dunno. Check https://github.com/zendframework/ZendSkeletonApplication as an instance to configure a working and usable zf2 application. |
Getting closer... here is the error I get when I go to the /blog route: #0 /var/www/vendor/zendframework/zendframework/library/Zend/ServiceManager/AbstractPluginManager.php(103): Zend\ServiceManager\ServiceManager->get('markdown', true) |
hmm.. this is only the trace..but whats the error message? |
File: |
I got it. I released a new fixed version: 1.4.2 In new release it is working, so you have to update. Thanks a lot for reporting 👍 |
That did it! Thanks! Amazing... ! |
I have completed the installation and configuration of Doctrine 2 and created the sql schema and did the crypt step. When I go to my website/blog, I see the that it is routing correctly to an empty blog. Sweet!
I created a test blog entry, a test tag and added the ids of each to the junction table.
When I go to my domain/blog, I get the follow 2 errors (any idea what I might be doing wrong?):
! ) Warning: include(/var/www/module/Application/config/../view/error/about.phtml): failed to open stream: No such file or directory in /var/www/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php on line 506
Call Stack
Time Memory Function Location
1 0.0012 245872 {main}( ) .../index.php:0
2 1.0736 5925496 Zend\Mvc\Application->run( ) .../index.php:26
3 2.0828 10665616 Zend\Mvc\Application->completeRequest( ) .../Application.php:327
4 2.0828 10665696 Zend\EventManager\EventManager->trigger( ) .../Application.php:352
5 2.0828 10665832 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:207
6 2.0829 10667592 call_user_func:{/var/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468} ( ) .../EventManager.php:468
7 2.0829 10667936 Zend\Mvc\View\Http\DefaultRenderingStrategy->render( ) .../EventManager.php:468
8 3.2392 15727168 Zend\EventManager\EventManager->trigger( ) .../DefaultRenderingStrategy.php:113
9 3.2392 15727304 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:207
10 3.2392 15730528 call_user_func:{/var/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468} ( ) .../EventManager.php:468
11 3.2392 15730560 Zend\Mvc\View\Http\DefaultRenderingStrategy->render( ) .../EventManager.php:468
12 3.2392 15730560 Zend\View\View->render( ) .../DefaultRenderingStrategy.php:103
13 3.2395 15731488 Zend\View\View->renderChildren( ) .../View.php:198
14 3.2395 15732504 Zend\View\View->render( ) .../View.php:233
15 3.2396 15733432 Zend\View\Renderer\PhpRenderer->render( ) .../View.php:205
( ! ) Warning: include(): Failed opening '/var/www/module/Application/config/../view/error/about.phtml' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php on line 506
Call Stack
Time Memory Function Location
1 0.0012 245872 {main}( ) .../index.php:0
2 1.0736 5925496 Zend\Mvc\Application->run( ) .../index.php:26
3 2.0828 10665616 Zend\Mvc\Application->completeRequest( ) .../Application.php:327
4 2.0828 10665696 Zend\EventManager\EventManager->trigger( ) .../Application.php:352
5 2.0828 10665832 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:207
6 2.0829 10667592 call_user_func:{/var/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468} ( ) .../EventManager.php:468
7 2.0829 10667936 Zend\Mvc\View\Http\DefaultRenderingStrategy->render( ) .../EventManager.php:468
8 3.2392 15727168 Zend\EventManager\EventManager->trigger( ) .../DefaultRenderingStrategy.php:113
9 3.2392 15727304 Zend\EventManager\EventManager->triggerListeners( ) .../EventManager.php:207
10 3.2392 15730528 call_user_func:{/var/www/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:468} ( ) .../EventManager.php:468
11 3.2392 15730560 Zend\Mvc\View\Http\DefaultRenderingStrategy->render( ) .../EventManager.php:468
12 3.2392 15730560 Zend\View\View->render( ) .../DefaultRenderingStrategy.php:103
13 3.2395 15731488 Zend\View\View->renderChildren( ) .../View.php:198
14 3.2395 15732504 Zend\View\View->render( ) .../View.php:233
15 3.2396 15733432 Zend\View\Renderer\PhpRenderer->render( ) .../View.php:205
The text was updated successfully, but these errors were encountered: