I had a very positive experience installing the Forum module yesterday. I cannot say the same about the blog module.
I think I must be missing something. Can someone please help?
Whats working:
Blog Module has installed and
I can:
- create new blog entries via the CMS
- navigate to the blog and see a list of blog entries via http://www.mydomain.com/blog/
- navigate to view the entire blog post
- Un-publish the blog post
- browse entries by dates
- browse entries by single Tags (i.e Tag 1)
I cannot
- add a new blog entry via http://www.mydomain.com/blog/post
- edit and existing blog entry via http://www.mydomain.com/blog/post/341/
- browse entries by tags that contain spaces (i.e 'Word 1 Word 2) - http://www.mydomain.com/blog/tag/word1+word2 (Results on 404 ERROR)
For adding and editing a blog entry both actions successfully load my page template (i.e menu and footer etc) but no content is loaded. There are no errors reported in my log or shown when I enable them via the global config.
I have undertaken several levels of debugging (I am not a PHP programmer) using URL Variable Tools (http://doc.silverstripe.org/framework/en/reference/urlvariabletools)
Debug URL: http://www.mydomain.com/blog/post/341/?isDev=1&debug=1&debug_request=1
Result.....
Debug (line 139 of ModelAsController.php): Using record #339 of type BlogHolder with link /blog/
Debug (line 119 of RequestHandler.php): Testing 'widget/$ID/$Action' with 'post/341' on BlogHolder_Controller
Debug (line 119 of RequestHandler.php): Testing 'widget/$ID/$Action' with 'post/341' on BlogHolder_Controller
Debug (line 119 of RequestHandler.php): Testing 'widget/$ID/$Action' with 'post/341' on BlogHolder_Controller
Debug (line 119 of RequestHandler.php): Testing 'widget/$ID/$Action' with 'post/341' on BlogHolder_Controller
Debug (line 119 of RequestHandler.php): Testing '$Action//$ID/$OtherID' with 'post/341' on BlogHolder_Controller
Debug (line 128 of RequestHandler.php): Rule '$Action//$ID/$OtherID' matched to action 'handleAction' on BlogHolder_Controller. Latest request params: array (
'Action' => 'post',
'ID' => '341',
'OtherID' => NULL,
)
Debug (line 167 of SSViewer.php): Selecting templates from the following list: Page
Debug (line 181 of SSViewer.php): Found template 'Page' from main theme 'calm': array (
'main' => 'C:\\My site directory/themes/my template/templates/Page.ss',
)
Debug (line 202 of SSViewer.php): Final template selections made: array (
'main' => 'C:\\My site directory/themes/my template/templates/Page.ss',
)
It doesn't seem to match the Id?
Here's some background on my setup and the actions I have taken to date:
Silverstripe Version: 2.4.5
Hosted on IIS 7
Blog Module Version: 0.5 (This was not available on http://www.silverstripe.org/blog-module/ so I downloaded the 0.5 branch (https://github.com/silverstripe/silverstripe-blog/tree/0.5) - I have also tried 0.4 and encountered the same problem
The blog module has been installed in the directory called 'Blog' but I have also tried it using the 'silverstripe-silverstripe-blog-90a0e80'
I have looked at a number of posts in this forum and looked at the solutions, but most of these are a few years old and all of the code changes seem to be reflected in 0.5 branch
Here are a few of the posts I have looked at:
http://www.silverstripe.org/archive/show/1613
http://www.silverstripe.org/blog-module-forum/show/17515
http://www.silverstripe.org/blog-module-forum/show/13366
http://www.silverstripe.org/archive/show/2064
http://www.silverstripe.org/blog-module-forum/show/18889
http://www.silverstripe.org/archive/show/3493
http://www.silverstripe.org/archive/show/4277