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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

shifting SS from hosting server to another


Go to End
Reply


973 Views

Avatar
kasyap5

Community Member, 1 Post

26 February 2010 at 9:30pm

Hi,

I am trying to shift my SS website from one hosting server to another .. while doing this i am getting the following exception .. i have set the Director::set_environment_type("dev"); to dig the error ..

i have stuckup here for a long time :( .. help is needed asap .. thanks in advance ..

[Notice] Undefined index: MySQLDatabase
GET /

Line 157 in /usr/home/bonnybabeschildcare.com.au/www/sapphire/core/ClassInfo.php
Source

148 /**
149 * @todo Improve documentation
150 */
151 static function ancestry($class, $onlyWithTables = false) {
152 global $_ALL_CLASSES;
153
154 if(is_object($class)) $class = $class->class;
155 else if(!is_string($class)) user_error("Bad class value " . var_export($class, true) . " passed to ClassInfo::ancestry()", E_USER_WARNING);
156
157 $items = $_ALL_CLASSES['parents'][$class];
158 $items[$class] = $class;
159 if($onlyWithTables) foreach($items as $item) {
160 if(!DataObject::has_own_table($item)) unset($items[$item]);
161 }
162 return $items;
163 }

Trace

* ClassInfo::ancestry(MySQLDatabase)
Line 512 of Object.php
* Object->__construct()
Line 42 of MySQLDatabase.php
* MySQLDatabase->__construct(Array)
Line 79 of DB.php
* DB::connect(Array)
Line 112 of main.php