-
Notifications
You must be signed in to change notification settings - Fork 15
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
Exception when running blog compile #4
Comments
👍 |
This is 7 months old. Doubt that it will ever be looked at :) I've started working on my own blog a while back. There seems to be no interest, bit it's pretty far along already. |
ok, i have the same problem and worse, the blogs files are not written into public/blog .... |
I have looked at it; I just haven't been able to reproduce it. :-/ |
Did you try with a fresh install ? |
i almost found the problem :) |
I'm able to reproduce the same issue.
c:\Program Files (x86)\Zend\ZendServer\data\apps\http__default__\0\SomeBlogProject\1.0.0>php public/index.php blog compile -a |
@jackdpeterson Did you try the changes @manuscle reported? It doesn't sound like it... |
@RWOverdijk I'm re-opening, as, at the minimum, there is a documentation issue that needs to be resolved. |
Fair enough :) |
@weierophinney is the 'entries_url_template', by_year_url_template, by_month_url_template and by_day_url_template are really used into your module? |
@weierophinney , @manuscle I've tried manuscle's updated readme example, as well as deleting the autoload configuration file and renaming the directory as well. Also re-attempted installing using composer method. No such luck. When I do a var_dump of the $e->getEvent() in Compiler\Listener\Archives->onCompileEnd() it's saying NULL instead of finding any posts. |
@jackdpeterson be carefull, the end of the sample example (the 'di' part ) is optional. |
My Solution! ^/ ...
return array( );
|
good :) |
I had the problem too and the solution was to change the author in the post entity, because it was not validated by the authorFilter. Also I've fork the project with a little update, which will throw an exception if the post is invalid and will show you where is the problem :) https://github.com/pavkatar/PhlyBlog/commits?author=pavkatar |
Can you submit that as a pull request, please?
|
$ php public/index.php blog compile -a The application has thrown an exception!Zend\View\Exception\RuntimeException Zend\View\View::render: no renderer selected!/home/vallabh/git/vrkansagara.in/vendor/zendframework/zend-view/src/View.php:178 #14 {main}Previous Exception(s): any one have any idea that what's wrong here. [Solutions 👍 ] |
having same issue. Catchable fatal error: Argument 1 passed to iterator_to_array() must implement interface Traversable, null given in C:\Users\foobar\Development\php\myZf2Test\vendor\phly\phly-blog\src\PhlyBlog\Compiler\Listener\Archives.php on line 28 also, running
but then, no directory written in public folder. |
Hey @istian can you look into the blog post file if there is any html entities have not closed properly than fix it first. |
Hi ! All commenters , After working so much long time on this library , I have figured out that how it's work. Please feel free to ask me direct regarding this library. |
I've added this module to
composer.json
and installed. Then, I createddata/posts
anddata/blog
. Both have writing and reading access forwww
. I've copied thesample-post.php
todata/posts
and then ranphp ./public/index.php blog compile
. The following was my output:rwoverdijk$ php ./public/index.php blog compile
Compiling and sorting entriesPHP Catchable fatal error: Argument 1 passed to iterator_to_array() must implement interface Traversable, null given in /Library/WebServer/Documents/packages/PhlyBlog/src/PhlyBlog/Compiler/Listener/Archives.php on line 28
PHP Stack trace:
PHP 1. {main}() /Library/WebServer/Documents/spxbeta.dev/public/index.php:0
PHP 2. Zend\Mvc\Application->run() /Library/WebServer/Documents/spxbeta.dev/public/index.php:12
PHP 3. Zend\EventManager\EventManager->trigger() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:297
PHP 4. Zend\EventManager\EventManager->triggerListeners() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:208
PHP 5. call_user_func() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
PHP 6. Zend\Mvc\DispatchListener->onDispatch() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
PHP 7. Zend\Mvc\Controller\AbstractController->dispatch() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php:113
PHP 8. Zend\EventManager\EventManager->trigger() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php:107
PHP 9. Zend\EventManager\EventManager->triggerListeners() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:208
PHP 10. call_user_func() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
PHP 11. Zend\Mvc\Controller\AbstractActionController->onDispatch() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
PHP 12. PhlyBlog\CompileController->compileAction() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php:88
PHP 13. PhlyBlog\Compiler->compile() /Library/WebServer/Documents/packages/PhlyBlog/src/PhlyBlog/CompileController.php:233
PHP 14. Zend\EventManager\EventManager->trigger() /Library/WebServer/Documents/packages/PhlyBlog/src/PhlyBlog/Compiler.php:85
PHP 15. Zend\EventManager\EventManager->triggerListeners() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:208
PHP 16. call_user_func() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
PHP 17. PhlyBlog\Compiler\Listener\Archives->onCompileEnd() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
Catchable fatal error: Argument 1 passed to iterator_to_array() must implement interface Traversable, null given in /Library/WebServer/Documents/packages/PhlyBlog/src/PhlyBlog/Compiler/Listener/Archives.php on line 28
Call Stack:
0.0002 226160 1. {main}() /Library/WebServer/Documents/spxbeta.dev/public/index.php:0
0.0351 3092120 2. Zend\Mvc\Application->run() /Library/WebServer/Documents/spxbeta.dev/public/index.php:12
0.0359 3118688 3. Zend\EventManager\EventManager->trigger() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:297
0.0359 3118688 4. Zend\EventManager\EventManager->triggerListeners() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:208
0.0360 3120448 5. call_user_func() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
0.0360 3120480 6. Zend\Mvc\DispatchListener->onDispatch() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
0.0445 4247760 7. Zend\Mvc\Controller\AbstractController->dispatch() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php:113
0.0445 4248480 8. Zend\EventManager\EventManager->trigger() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php:107
0.0445 4248480 9. Zend\EventManager\EventManager->triggerListeners() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:208
0.0490 4637040 10. call_user_func() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
0.0490 4637072 11. Zend\Mvc\Controller\AbstractActionController->onDispatch() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
0.0490 4637296 12. PhlyBlog\CompileController->compileAction() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php:88
0.0930 5529872 13. PhlyBlog\Compiler->compile() /Library/WebServer/Documents/packages/PhlyBlog/src/PhlyBlog/CompileController.php:233
0.0932 5540944 14. Zend\EventManager\EventManager->trigger() /Library/WebServer/Documents/packages/PhlyBlog/src/PhlyBlog/Compiler.php:85
0.0932 5541160 15. Zend\EventManager\EventManager->triggerListeners() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:208
0.0933 5543224 16. call_user_func() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
0.0933 5543256 17. PhlyBlog\Compiler\Listener\Archives->onCompileEnd() /Library/WebServer/Documents/spxbeta.dev/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:464
The text was updated successfully, but these errors were encountered: