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 Module - Can not add a blog post 500 Internal Server Error


Go to End


6 Posts   2266 Views

Avatar
Vix

Community Member, 60 Posts

8 June 2015 at 5:59pm

I have added the blog module, lumberjack, tagfield, widgets and comments on a 3.1.12 site, but when I go to save a new blog post I get a 500 internal server error. Is there something I am missing?

Avatar
Pyromanik

Community Member, 419 Posts

9 June 2015 at 9:02am

Edited: 09/06/2015 9:03am

The error.
If one doesn't display, check your logs.
If you don't have logs, put the site into dev mode.
If one still doesn't display, ensure display_errors is on in php ini.

Only if a dev/build and a ?flush don't fix it, of course.

Avatar
Vix

Community Member, 60 Posts

9 June 2015 at 1:18pm

Edited: 09/06/2015 1:19pm

So I have logged the errors to a text file and this is what I get:

[09-Jun-2015 11:14:39 Australia/Sydney] PHP Fatal error:  singleton() passed bad class_name: SS_Map::__set_state(array(
   'list' => 
  ManyManyList::__set_state(array(
     'joinTable' => 'BlogPost_Categories',
     'localKey' => 'BlogCategoryID',
     'foreignKey' => 'BlogPostID',
     'extraFields' => NULL,
     '_compositeExtraFields' => 
    array (
    ),
     'dataClass' => 'BlogCategory',
     'dataQuery' => 
    DataQuery::__set_state(array(
       'dataClass' => 'BlogCategory',
       'query' => 
      SQLQuery::__set_state(array(
         'select' => 
        array (
        ),
         'from' => 
        array (
          'BlogCategory' => '"BlogCategory"',
          'BlogPost_Categories' => 
          array (
            'type' => 'INNER',
            'table' => 'BlogPost_Categories',
            'filter' => 
            array (
              0 => '"BlogPost_Categories"."BlogCategoryID" = "BlogCategory"."ID"',
            ),
            'order' => 20,
          ),
        ),
         'where' => 
        array (
          0 => '"BlogPost_Categories"."Blo in /.../framework/core/Core.php on line 156

I'm assuming I am missing something, but just not sure what. Is there anything that needs to go in the config.yml file?

Avatar
Vix

Community Member, 60 Posts

9 June 2015 at 2:04pm

I have wound up removing all those modules and reinstalling and it is now all working.

Avatar
enayet

Community Member, 6 Posts

24 November 2015 at 6:26am

Edited: 24/11/2015 6:50am

I am having this same issue with default installation. V 3.2.1

Any idea?

Thanks.

Avatar
TGx`

Community Member, 10 Posts

27 June 2017 at 5:26pm

Thank you infomation.

โปรโมชั่น sbobet