BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: fhey on December 26, 2008, 08:47:24 pm

Title: Login error
Post by: fhey on December 26, 2008, 08:47:24 pm
hi,

at Botlogin i get:

darkbot [SETTINGS]      [LOAD]  Loaded settings from database.
darkbot [ROSTER]        [UPDATE]        Starting roster update

Fatal error: Call to undefined function utf8_encode() in /bots/bebot/dark/Sources/Bot.php on line 735

Call Stack:
    0.0010     260400   1. {main}() /bots/bebot/dark/Main.php:0
   33.6778   18236256   2. Bot->cron() /bots/bebot/dark/Main.php:385
   33.7900   18310912   3. Bot->cronjob() /bots/bebot/dark/Sources/Bot.php:1604
   33.7900   18310912   4. Roster_Core->cron() /bots/bebot/dark/Sources/Bot.php:1572
   33.7900   18310912   5. Roster_Core->update_guild() /bots/bebot/dark/main/10_Roster.php:215
   33.7902   18310976   6. Bot->send_gc() /bots/bebot/dark/main/10_Roster.php:246

Dump $_SERVER
Dump $_GET
Dump $_POST
Dump $_COOKIE
Dump $_FILES
Dump $_ENV
Dump $_SESSION
Dump $_REQUEST



When I look in /bots/bebot/dark/Sources/Bot.php on line 735  there is this:
$msg = utf8_encode($msg);

Mysql DB is configured with UTF8 ...

greets
Fhey
Title: Re: Login error
Post by: fhey on December 26, 2008, 08:58:18 pm
ok,

I commented it out, get another UTF8 error in line 1490
--> commented it out
--> bot is online then.

Let's see if any chars in chat are missing :) ..

greets
fhey
Title: Re: Login error
Post by: Alreadythere on December 26, 2008, 11:04:19 pm
utf8_encode() should be part of the default config for PHP, looks like it got disabled on built (Info (http://de.php.net/manual/en/xml.installation.php)).
SimplePortal 2.3.7 © 2008-2024, SimplePortal