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

Error installing blog module on Mac OS X


Go to End


978 Views

Avatar
Bruce B

Community Member, 164 Posts

8 October 2008 at 11:29pm

I've installed the blog module on our live site:
http://nfaw.org

but there are a few problems. To sort these out I need to get the blog module working on my development site on my MacBook Pro. Unfortunately the db/build/?flush=1 command fails to run.

I've been running version 2.2.2 happily up to now using the standard Apache 2 install with PHP upgraded to 5.2.5 and the GD2 module installed. (and if that makes it sound as if I know what I'm doing, you've got it wrong.)

The error text follows. Can anyone suggest a fix, or at least identify what the source of the problem is?

thanks
bruce

FATAL ERROR: Bad class to singleton() - BlogEntry
At line 85 in /Users/macbookbruce/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 =
Member =
Database record: Member

ID :
0
Newsletter =
Database record: Newsletter

ID :
0
Newsletter_SentRecipient =
Database record: Newsletter_SentRecipient

ID :
0
Newsletter_Recipient =
Database record: Newsletter_Recipient

ID :
0
NewsletterType =
Database record: NewsletterType

ID :
0
PageComment =
Database record: PageComment

ID :
0
Email_BounceRecord =
Database record: Email_BounceRecord

ID :
0
Email_BlackList =
Database record: Email_BlackList

ID :
0
PageView =
Database record: PageView

ID :
0
SiteTree =
Database record: SiteTree

ID :
0
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', ))
QueuedEmail =
Database record: QueuedEmail

ID :
0
File =
Database record: File

ID :
0
EditableCheckboxOption =
Database record: EditableCheckboxOption

ID :
0
EditableDropdownOption =
Database record: EditableDropdownOption

ID :
0
EditableFormField =
Database record: EditableFormField

ID :
0
EditableRadioOption =
Database record: EditableRadioOption

ID :
0
SubmittedForm =
Database record: SubmittedForm

ID :
0
SubmittedFormField =
Database record: SubmittedFormField

ID :
0
Group =
Database record: Group

ID :
0
Member_UnsubscribeRecord =
Database record: Member_UnsubscribeRecord

ID :
0
Permission =
Database record: Permission

ID :
0
Widget =
Database record: Widget

ID :
0
WidgetArea =
Database record: WidgetArea

ID :
0
GhostPage =
Database record: GhostPage

ID :
0
Page =
Database record: Page

ID :
0