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 Holder view shows directory contents?


Go to End


7 Posts   1862 Views

Avatar
mhdesign

Community Member, 216 Posts

28 July 2014 at 2:57pm

Need to add a Blog to site. I've done this once before without problems. I've downloaded master files for 'blog' and 'widgets' and placed in root directory. Done the dev/build and ?flush=all and I can see an item called 'Blog' in my navbar (no entry telling me module has been successfully installed however). When I click the 'Blog' link I see the parent directory and associated files therein.

I obviously missed something really basic but can't see it? What gives?

Avatar
Kirk

Community Member, 67 Posts

30 July 2014 at 2:20pm

Can you advise us on what version of SilverStripe you are using it would also help if you would be able to advise us on where you downloaded the blog module from (if you are not using composer) and what branch you are using.

For example a lot of people will download it from https://github.com/silverstripe/silverstripe-blog and will be using the master branch

It would be good to get the full URL from the blog link in Chrome you can right click on the link and select 'Copy Link Address' and FireFox you right click on it and select 'Copy Link Location'

Sounds quite a unusual issue wondering if it could be a permissions issue.

Avatar
mhdesign

Community Member, 216 Posts

30 July 2014 at 2:59pm

Edited: 30/07/2014 3:03pm

Hi Kirk, I'm using SS v 3.1.5 and I downloaded the Blog module master build direct from the silverstripe.org site (same as your link below).

Link from nav menu is:

http://localhost/silverstripe-v3.1.5/index.php/blog/

Mean anything to you?

I've checked permissions and opened it all up (CHMOD 777). Only other thing I've noticed is that the URL has a question mark after it [ http://localhost/silverstripe-v3.1.5/index.php/blog/? ]

I'm having one of those weeks with SS!! ; (

Avatar
mhdesign

Community Member, 216 Posts

11 August 2014 at 4:59pm

Edited: 11/08/2014 5:00pm

Nobody else can share their views on what might be happening to my blog install?

Just for the hell of it, I chucked 'Blog' and 'Widgets' directories in to the root directory of a default SS 3.1.5 install (because everything should work on the standard 'default' theme, right?). And guess what? It did the same thing!!

Is the Blog module compatible with SS 3 (silly question maybe but this has really got me wondering? Or do I need to do soem arcane command-line wizardry (don't really like command line!!)

Screen shots showing what happens attached...

Avatar
Kirk

Community Member, 67 Posts

11 August 2014 at 5:11pm

One thing I did notice from your previous reply was the URL it was using for blog has index.php in it

http://localhost/silverstripe-v3.1.5/index.php/blog/

It seems like the URL rewriting has not been setup as it would normally be just

http://localhost/silverstripe-v3.1.5/blog/

Avatar
mhdesign

Community Member, 216 Posts

11 August 2014 at 7:54pm

That's a very good point Kirk. Unfortunately I've had problems getting the rewrite rule to work in my development environment. It could be that that is the problem, as other than that, the install of the blog module went as I would have expected!

Avatar
mhdesign

Community Member, 216 Posts

5 September 2014 at 2:15pm

All sorted! I managed to get MAMP 3 running sucessfully without stuffing up my older SilverStripe installs. As I result I was able, after two years of trying, to get Mod_Rewrite running and now life is much easier all round. And yes, with Rewriet rules enabled the Blog module works! Huzzah!!