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.

Archive /

Our old forums are still available as a read-only archive.

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

Installing Blog ontop of Tutorial (Fatal error)


Go to End


17 Posts   35796 Views

Avatar
JonathanParker

Community Member, 37 Posts

7 March 2008 at 6:45am

Hi All, Before I begin (I'm new to SilverStripe). I have successfully followed the tutorials up installing the site search facility. All went well & I thought that I would follow the video describing how to install the Blog. I believed that I could just install it within the tutorial site that I had been working with all day; however, after unzipping the blog folder into the silverstripe folder {localhost/silverstripe/blog} I then attempted to rebuild / flush the db with http://localhost/silverstripe/db/build?flush=1 and got a Fatal error. I've tried searching the forums, but without success. The details of the fatal error are (sorry about all the output but it may be relevant):

FATAL ERROR: Bad class to singleton() - BlogEntry
At line 85 in C:\wamp\www\silverstripe\sapphire\core\Core.php

user_error(Bad class to singleton() - BlogEntry,256)
line 85 of Core.php

singleton(BlogEntry)
line 175 of DatabaseAdmin.php

DatabaseAdmin->doBuild()
line 90 of DatabaseAdmin.php

DatabaseAdmin->build(Array)
line 261 of Controller.php

Controller->run(Array)
line 104 of Director.php

Director::direct(/db/build)
line 158 of main.php
Context
Debug (Debug::showError() in line 180 of Debug.php)

* className =

BlogEntry

* _SINGLETONS =
o Member =
Database record: Member
+ ID :

0

o Newsletter =
Database record: Newsletter
+ ID :

0

o Newsletter_SentRecipient =
Database record: Newsletter_SentRecipient
+ ID :

0

o Newsletter_Recipient =
Database record: Newsletter_Recipient
+ ID :

0

o NewsletterType =
Database record: NewsletterType
+ ID :

0

o PageComment =
Database record: PageComment
+ ID :

0

o Email_BounceRecord =
Database record: Email_BounceRecord
+ ID :

0

o Email_BlackList =
Database record: Email_BlackList
+ ID :

0

o PageView =
Database record: PageView
+ ID :

0

o SiteTree =
Database record: SiteTree
+ ID :

0

o Translatable = Translatable::__set_state(array( 'translatableFields' => array ( 0 => NULL, 1 => true, 2 => NULL, 3 => NULL, 4 => NULL, 5 => NULL, 6 => NULL, 7 => NULL, 8 => NULL, ), 'original_values' => NULL, 'owner' => NULL, 'extension_instances' => array ( ), 'class' => 'Translatable', ))
o QueuedEmail =
Database record: QueuedEmail
+ ID :

0

o File =
Database record: File
+ ID :

0

o EditableCheckboxOption =
Database record: EditableCheckboxOption
+ ID :

0

o EditableDropdownOption =
Database record: EditableDropdownOption
+ ID :

0

o EditableFormField =
Database record: EditableFormField
+ ID :

0

o EditableRadioOption =
Database record: EditableRadioOption
+ ID :

0

o SubmittedForm =
Database record: SubmittedForm
+ ID :

0

o SubmittedFormField =
Database record: SubmittedFormField
+ ID :

0

o Group =
Database record: Group
+ ID :

0

o Member_UnsubscribeRecord =
Database record: Member_UnsubscribeRecord
+ ID :

0

o Permission =
Database record: Permission
+ ID :

0

o Widget =
Database record: Widget
+ ID :

0

o WidgetArea =
Database record: WidgetArea
+ ID :

0

o BrowserPollSubmission =
Database record: BrowserPollSubmission
+ ID :

0

o GhostPage =
Database record: GhostPage
+ ID :

0

o Page =
Database record: Page
+ ID :

0
This means nothing to me and would be greatfull of any help. I have read one post that suggests that duplicate db names could cause problems so I have renamed the date field in the News area to Art_Date but no difference.

Regards.

Jonathan.

Avatar
JonathanParker

Community Member, 37 Posts

7 March 2008 at 7:55am

I have just tried to install the blog module into an out of the box ss install {black candy theme} and received simillar of not the same fatal errors. I'm using version 2.2.2 if that helps. The errors are:
FATAL ERROR: Bad class to singleton() - BlogEntry
At line 85 in C:\wamp\www\ss02\sapphire\core\Core.php

user_error(Bad class to singleton() - BlogEntry,256)
line 85 of Core.php

singleton(BlogEntry)
line 175 of DatabaseAdmin.php

DatabaseAdmin->doBuild()
line 90 of DatabaseAdmin.php

DatabaseAdmin->build(Array)
line 261 of Controller.php

Controller->run(Array)
line 104 of Director.php

Director::direct(/db/build)
line 158 of main.php
Context

I have not added the rest of the debug output.

Regards.

Jonathan

Avatar
JonathanParker

Community Member, 37 Posts

7 March 2008 at 8:05am

Have just repeated the exersize with an out of the box 'blank' template; tried to install blog module with identicle results.

Now I'm puzzled! could it be a 2.2.2 problem?

Reagrds.

Jonathan

Avatar
saimo

Community Member, 67 Posts

7 March 2008 at 9:30am

Edited: 07/03/2008 9:33am

"could it be a 2.2.2 problem? "

Have you tried it with 2.2.1 or 2.2.0?
From what you have described, you seem to have done everything correctly.

EDIT: ss 2.2.2 insn't stable yet, is it? You should probably use the latest stable version when trying it out.

Avatar
JonathanParker

Community Member, 37 Posts

7 March 2008 at 9:55am

Have just tried it all with 2.2.1 and I get a lot of text during the install, but still no blog. Each time I delete the previous SS install dir and drop the db from MySql so everything is very clean. I'll try the previous release.

Regards.

Jonathan

Avatar
JonathanParker

Community Member, 37 Posts

9 March 2008 at 11:47am

Well my problem has been read 39 times as of me writing this and still no suggestions! Come on guys I'm really lost on this one, or is it I'm doing something really stupid? I've searched the forums and I can't see that anybody else has experienced this problem. If you live in the UK I'll even buy you a beer!

Any suggestion regardless of how wild really would be appreciated.

Regards.

Jonathan

Avatar
JonathanParker

Community Member, 37 Posts

9 March 2008 at 9:31pm

O.K. Can somebody confirm that the blog module works OK within SS 2.2.2 & or SS 2.2.1

Regards.

Jonathan

Avatar
Dennis

Community Member, 7 Posts

23 May 2008 at 9:00am

Edited: 23/05/2008 9:00am

I've been through a similar sequence of events that narrow down on installing the blog. I'm also new to Silverstripe and installing from scratch. When I move the blog directory into the base dir and run the db/build?flush=1 I get a large amt of displayed php code on the page before the 'usual' output.
I check the database and there are no new tables. No blog related pagetypes or menu items appear.

The cms continues to run, but sporatically does a similar php spew from time to time (trying to reference the blog module?). I'm running 2.2.1

I have also scoured the forum and created a post about it. At the time, it seemed to occur with any module install, but I've since installed several of the other modules on a new SS install.

Love to have a solution...

Go to Top