collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Fatal error  (Read 10261 times)

0 Members and 1 Guest are viewing this topic.

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Fatal error
« on: July 17, 2007, 08:56:02 am »
Decided to move my bot from my Windows Server to a new linux one I setup but I now get
Fatal error: Call to a member function create() on a non-object in /core/BotHelp.php on line 60.

This worked fine in Windows... any ideas?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Fatal error
« Reply #1 on: July 17, 2007, 10:07:13 am »
Looks like you aren't using the most current version. In line 60 the access control rights are set, I guess your bot hasn't loaded the access control module yet though.

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: Fatal error
« Reply #2 on: July 17, 2007, 11:19:51 am »
Using 3.5 so dunno.  I even grabbed the latest version of that module off of SVN and didn't make a difference.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Fatal error
« Reply #3 on: July 17, 2007, 11:32:18 am »
Check the load order of the core modules, the first 3 should be Security, Settings and AccessControl.

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: Fatal error
« Reply #4 on: July 17, 2007, 06:50:12 pm »
Well, looking at the order that it tried to load when it started it did Security, then Settings, then StringFilter, then I got the error so I assume it was doing BotHelp next but just hadn't displayed yet.

How can I change the order that they are loading?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Fatal error
« Reply #5 on: July 17, 2007, 07:24:29 pm »
It should work in 0.3.5, just checked.

But you can just grab the most current SVN version of Main.php, which is handling all the module loading.

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: Fatal error
« Reply #6 on: July 17, 2007, 07:40:15 pm »
Well, that did fix that issue but then I started getting erros in AOChat.php so grabbed latest of that from SVN.  Then it was errors in Bot.php so I grabbed that from SVN and now I get Fatal error: Call to a member function check() on a non-object in /bot/Sources/Bot.php on line 544

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Fatal error
« Reply #7 on: July 17, 2007, 07:43:31 pm »
lol, sounds like your version got some more errors - though the error you get in the current Bot.php is just the core/Notify module you are missing.

But if you are grabbing some SVN files you should go and grab at least all most current core files too, as a few things did change between the versions.

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: Fatal error
« Reply #8 on: July 17, 2007, 10:21:56 pm »
Ok, as an experiment I grabbed fresh copy of 3.5 and just gave it a blank db and everything so it is in essence a brand new bot.  It created the tables and everything fine but then crash's with Fatal error: Call to undefined function utf8_decode() in /bot/Sources/Bot.php on line 470

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Fatal error
« Reply #9 on: July 18, 2007, 12:01:28 pm »
Looks like your php version is missing the XML parser functions - they must have been disabled on compiling, as they should be activated on default.

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: Fatal error
« Reply #10 on: July 19, 2007, 01:24:19 am »
Already.... You ROCK.  Can't believe I missed that one   :P

Thanks for your help!

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: Fatal error
« Reply #11 on: July 19, 2007, 04:36:58 am »
Ok... well I thought I was done with it but I'm not getting the AOChat: not expecting authentication problem.

Thought AOKex no longer had to be manually configured?  Is that incorrect?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Fatal error
« Reply #12 on: July 19, 2007, 04:44:48 am »
well i just down load this bot .. upload to server or wateva
doing the setting in the conf folder and run it

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: Fatal error
« Reply #13 on: July 19, 2007, 04:50:37 am »
Did same thing... This is on the bot I just setup brand new with a blank db.  Trying to get it all ironed out before I move my normal bot over.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Fatal error
« Reply #14 on: July 19, 2007, 10:07:35 am »
AOKex is no longer part of bebot at all, so no need to config anything.

Besides entering the needed infos into the Bot.conf and MySQL.conf there should be no need for any configuration.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 511
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal