BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Plac3bo on January 06, 2006, 01:24:28 pm

Title: problems with bot after move from gentoo to fedora
Post by: Plac3bo on January 06, 2006, 01:24:28 pm
I had to move one of my bots from my gentoo machine to my fedora machine.
First off I got that phpaokex stuff error, that works now..
but now im getting this spammed in the bot console all the time

PHP Notice:  Undefined variable: gi in /home/bot/my/AOChat.php on line 435

Quote
    function lookup_group($g, $type=0)
    {
      if($type && ($gi = (strlen($g) === 5 && ord($g[0]) < 0x10)))
        return $g;
      if(!$gi)
        $g = strtolower($g);
      return empty($this->gid[$g]) ? false : $this->gid[$g];
    }

thats the gi ref I can find in aochat.php...

Title: Re: problems with bot after move from gentoo to fedora
Post by: Plac3bo on January 06, 2006, 01:27:16 pm
hmm.. also got alot of errors when someone joins..

Quote
[2006-01-06 12:21:48]   [BUDDY] [LOG]   Bevern logged [on]
PHP Notice:  Undefined index:  Bevern in /home/bot/mybot/modules/IRC.php on line 324
[2006-01-06 12:21:57]   [PGRP]  [JOIN]  Bevern joined privategroup.
PHP Notice:  Use of undefined constant nick - assumed 'nick' in /home/bot/mybot/modules/Notify.php on line 51
PHP Notice:  Use of undefined constant level - assumed 'level' in /home/bot/mybot/modules/Notify.php on line 51
PHP Notice:  Use of undefined constant at - assumed 'at' in /home/bot/mybot/modules/Notify.php on line 51
PHP Notice:  Use of undefined constant at_name - assumed 'at_name' in /home/bot/mybot/modules/Notify.php on line 51
PHP Notice:  Use of undefined constant profession - assumed 'profession' in /home/bot/mybot/modules/Notify.php on line 51
PHP Notice:  Use of undefined constant faction - assumed 'faction' in /home/bot/mybot/modules/Notify.php on line 51
PHP Notice:  Use of undefined constant rank - assumed 'rank' in /home/bot/mybot/modules/Notify.php on line 51
PHP Notice:  Use of undefined constant org - assumed 'org' in /home/bot/mybot/modules/Notify.php on line 51
[2006-01-06 12:21:58]   [PGRP]  [MSG]   [Chatlink] Chatlink: Bevern, a level 217 (AT 15 - Competent) Soldier, Clan, Veteran of Forsaken just joined Chatlink
PHP Notice:  Undefined variable: gi in /home/bot/mybot/AOChat.php on line 435
PHP Notice:  Undefined variable: name in /home/bot/mybot/Bot.php on line 408
PHP Notice:  Undefined variable: name in /home/bot/mybot/Bot.php on line 409

Title: Re: problems with bot after move from gentoo to fedora
Post by: Ainen on January 06, 2006, 04:27:26 pm
Those notices are probably from a different setting for warnings in your php.ini. Those are all unimportant warnings. If you look in your php.ini, you'll probably find a line
Code: [Select]
error_reporting  =  E_ALLChange this line to
Code: [Select]
error_reporting  =  E_ALL & ~E_NOTICE and those will go away.  ;)
SimplePortal 2.3.7 © 2008-2025, SimplePortal