20/03/2012 11:53am

PHP | Problem - silverstripe


Environment Builder

http://192.168.155.30/silver/

dev→ build
Building database hype-silver using MySQL 5.5.20-log

Creating database tables

TrackBackPing
PageComment
DisplayAnythingGalleryUsage
DisplayAnythingGallery
ImageGalleryAlbum
ImageGalleryItem
Poi
PoiCategory
MollomServer
Resource
SiteConfig
SiteTree
Email_BounceRecord
QueuedEmail
File
Group
LoginAttempt
Member
MemberPassword
Permission
PermissionRole
PermissionRoleCode
Widget
WidgetArea
SiteMedia

[Warning] implode(): Invalid arguments passed
GET /silver/dev/build?flush=all

Line 594 in /Volumes/raid_data/web/silver/sapphire/core/model/MySQLDatabase.php

Source

585 *
586 * @param array $values Contains a tokenised list of info about this data type
587 * @return string
588 */
589 public function enum($values){
590 //For reference, this is what typically gets passed to this function:
591 //$parts=Array('datatype'=>'enum', 'enums'=>$this->enum, 'character set'=>'utf8', 'collate'=> 'utf8_general_ci', 'default'=>$this->default);
592 //DB::requireField($this->tableName, $this->name, "enum('" . implode("','", $this->enum) . "') character set utf8 collate utf8_general_ci default '{$this->default}'");
593
594 return 'enum(\'' . implode('\',\'', $values['enums']) . '\') character set utf8 collate utf8_general_ci default \'' . $values['default'] . '\'';
595 }
596
597 /**
598 * Return a set type-formatted string
599 *
600 * @param array $values Contains a tokenised list of info about this data type
Trace

implode(',',)
Line 594 of MySQLDatabase.php
MySQLDatabase->enum(Array,1)
Line 429 of Database.php
SS_Database->requireField(SiteMedia,MediaType,Array)
Line 256 of DB.php
DB::requireField(SiteMedia,MediaType,Array)
Line 58 of Enum.php
Enum->requireField()
Line 320 of Database.php
SS_Database->requireTable(SiteMedia,Array,Array,1,Array,)
Line 246 of DB.php
DB::requireTable(SiteMedia,Array,Array,1,Array,)
Line 2983 of DataObject.php
DataObject->requireTable()
Line 213 of DatabaseAdmin.php
DatabaseAdmin->doBuild(,1)
Line 106 of DatabaseAdmin.php
DatabaseAdmin->build(SS_HTTPRequest)
Line 193 of Controller.php
Controller->handleAction(SS_HTTPRequest)
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 134 of DevelopmentAdmin.php
DevelopmentAdmin->build(SS_HTTPRequest)
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
Director::direct(/dev/build)
Line 127 of main.php


Post Comment