Jump to:

1856 Posts in 1610 Topics by 562 members

Blog Module

SilverStripe Forums » Blog Module » Blog Holder view shows directory contents?

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 258 Views
  • arthurdent
    Avatar
    Community Member
    165 Posts

    Blog Holder view shows directory contents? Link to this post

    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?

  • Kirk
    Avatar
    Community Member
    42 Posts

    Re: Blog Holder view shows directory contents? Link to this post

    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.

  • arthurdent
    Avatar
    Community Member
    165 Posts

    Re: Blog Holder view shows directory contents? Link to this post

    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!! ; (

  • arthurdent
    Avatar
    Community Member
    165 Posts

    Re: Blog Holder view shows directory contents? Link to this post

    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...

  • Kirk
    Avatar
    Community Member
    42 Posts

    Re: Blog Holder view shows directory contents? Link to this post

    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/

  • arthurdent
    Avatar
    Community Member
    165 Posts

    Re: Blog Holder view shows directory contents? Link to this post

    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!

  • arthurdent
    Avatar
    Community Member
    165 Posts

    Re: Blog Holder view shows directory contents? Link to this post

    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!!

    258 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.