Install errors

5 views
Skip to first unread message

Ryan

unread,
Sep 16, 2010, 3:14:24 AM9/16/10
to kusht
Hello!

I've recently tried installing this on my localhost and got these
errors:

C:\Users\Ryan\Desktop\mud\Kusht v0.07\server\trunk>c:\wamp\bin\php
\php5.3.0\php
-q run.php
PHP Warning: array_push() expects parameter 1 to be array, null given
in C:\Use
rs\Ryan\Desktop\mud\Kusht v0.07\server\trunk\Database
\dbHandler.class.inc on lin
e 124

Warning: array_push() expects parameter 1 to be array, null given in C:
\Users\Ry
an\Desktop\mud\Kusht v0.07\server\trunk\Database\dbHandler.class.inc
on line 124

---
Database LoadedPHP Fatal error: Call to undefined function
socket_create() in C
:\Users\Ryan\Desktop\mud\Kusht v0.07\server\trunk\Network
\BasicServer.class.inc
on line 82

Fatal error: Call to undefined function socket_create() in C:\Users
\Ryan\Desktop
\mud\Kusht v0.07\server\trunk\Network\BasicServer.class.inc on line 82

I'm running php5.3 so I'm confused as to why it wouldn't recognize
socket_connect()?

The other error is from the array_push() in this:
public static function loadExits_() {
$query = "SELECT id FROM exits";
$result = mysqli_query(dbHandler::$link,$query);

while ($row = mysqli_fetch_row($result)) {
$exit = dbHandler::loadExit_($row[0]);
$in_room = get_obj_by_field_value($exit->in_object_id,"id",World::
$room_list);
$exit->to_room = get_obj_by_field_value($exit-
>to_room_id,"id",World::$room_list);
array_push($in_room->exits,$exit);

Any idea what I've done wrong here?
Reply all
Reply to author
Forward
0 new messages