Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Blog page not adding


Go to End


1624 Views

Avatar
racht

Community Member, 3 Posts

12 September 2017 at 10:03am

Edited: 13/09/2017 10:50am

I am trying to add a blog to a SilverStripe site using the Blog Module.

The package seemed to install fine via

composer require silverstripe/blog
and dev/build returned no errors. The ‘Blog’ page type is also available from the ‘Add page’ menu.

After adding a ‘Blog’ page, the site doesn’t redirect to http://localhost:8888/example/admin/pages/edit/show and simply remains on the http://localhost:8888/example/admin/pages/add/ page.
From what I can tell, the only result from this action is an ‘ARCHIVED’ page being added to the sitetree.

Have ?flush=all etc as per other suggestions to no avail and other page types are still being added fine.

Does anyone have any idea what might be going on here?

Currently using:

    "silverstripe/cms": "3.6.1",
    "silverstripe/framework": "3.6.1",
    "phpunit/PHPUnit": "~3.7@stable"
    "silverstripe/blog": "2.4.6"

[Edit 13/09/2017]

While simply adding a 'Blog' page produces no observable errors, adding a generic 'Page' and changing the page type to 'Blog' produces the following error in the php_error.log:

PHP Warning:  require_once(/Applications/MAMP/htdocs/example/blog/_config.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/example/framework/core/manifest/ConfigManifest.php on line 141 

PHP Fatal error:  require_once(): Failed opening required '/Applications/MAMP/htdocs/example/blog/_config.php' (include_path='/Applications/MAMP/htdocs/example/vendor/phpunit/phpunit-mock-objects:/Applications/MAMP/htdocs/example/vendor/phpunit/php-token-stream:/Applications/MAMP/htdocs/example/vendor/phpunit/php-code-coverage:/Applications/MAMP/htdocs/example/vendor/phpunit/phpunit:/Applications/MAMP/htdocs/example/vendor/symfony/yaml:.:/Applications/MAMP/htdocs/example/framework:/Applications/MAMP/htdocs/example/framework/parsers:/Applications/MAMP/htdocs/example/framework/thirdparty:.:/Applications/MAMP/bin/php/php5.6.30/lib/php') in /Applications/MAMP/htdocs/example/framework/core/manifest/ConfigManifest.php on line 141