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: IRC problems with PHP 5.1.4 and others  (Read 2988 times)

0 Members and 1 Guest are viewing this topic.

Offline Foxy

  • BeBot User
  • **
  • Posts: 37
  • Karma: +0/-0
IRC problems with PHP 5.1.4 and others
« on: April 12, 2006, 08:45:03 am »
Code: [Select]
cant seem to get irc module to work.

keep getting
[cpde]
PHP Warning:  array_key_exists(): The second argument should be either an array or an object in <bot home dir>/IRC/SmartIRC.php on line 1948

then bot never joins..

Im running windows xp
Bot works fine on other modules now..

Ive tried ver 2.3 andd 3.2 both bring up error.

any ideas how to fix?

would be great to be able to monitor and chat too guild via irc when at work.
Irc server using is Quakenet.. only due to runs on port 8080 which is not blocked on network.

Offline Foxy

  • BeBot User
  • **
  • Posts: 37
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #1 on: April 26, 2006, 02:55:45 pm »
bump any ideas?

Offline Nesi

  • BeBot User
  • **
  • Posts: 55
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #2 on: May 16, 2006, 09:43:08 am »
Still need help on this?

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #3 on: May 27, 2006, 07:41:36 am »
I could use help on that.  My error is very similar.  I'm pretty sure I'm just missing a setting somewhere but not sure.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: IRC problems with PHP 5.1.4 and others
« Reply #4 on: June 03, 2006, 04:15:14 am »
Sorry for the long delay on this issue.

It would appear that Net_SmartIRC is not fully php 5.0/5.1 compactible and this is whats causing the problems.
I'll be looking more into this shortly.
BeBot Founder and Fixer Kingpin

Offline Barvaz

  • BeBot Rookie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #5 on: June 03, 2006, 05:40:55 am »
Hey.. been talking with khalem today and he said to post on forums  ;)
(slept well i hope? ;P )

OK, when i use SmartIRC 0.5.5 i get this:
Code: [Select]
Warning: array_key_exists(): The second argument should be either an array or an object in C:\tombz\IRC\SmartIRC.php on line 1942that happens when the bot tries to enter a channel, it connects to the server (irc.funcom.com) but gives this error while it try to enter Channel.

when i use SmartIRC 1.0.0 the bot works fine until it connects to the server and then the bot don't listen to any command/chat in GC and do relay ONLY IRC=>GC (GC can see what ppl write in IRC but ppl in IRC cant see what you write in GC..)
IRC commands works aswell while GC commands don't.


that is all i think.
if you need any more info please tell me.

EDIT:
thought it might had to do something with aochat.php so downloaded the newest one from auno (http://auno.org/dev/aochat/AOChat.php)

didnt help
« Last Edit: June 03, 2006, 01:12:10 pm by Barvaz »

Offline Nesi

  • BeBot User
  • **
  • Posts: 55
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #6 on: June 03, 2006, 10:39:27 pm »
To make the net version of smartirc.php 1.xxx from the net work with the bot on php5 a few things has to be changed. The problem is that smartirc depends on a while loop to check the the socket for new data, this needs to be changed into an if statement so the bot does go into an endless loop.

edit: does NOT go into an endless loop :)

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #7 on: June 03, 2006, 11:40:03 pm »
I rolled back to 4.4.2 and still have same issue though

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: IRC problems with PHP 5.1.4 and others
« Reply #8 on: June 05, 2006, 08:08:32 am »
SmartIRC 1.0.0 will not work without modifications.

I have just committed a fixed version in SVN for both the 0.3 and 0.2 branch, so the fixes will be availible in the next release for the respective branches.

In the meantime you can grab the changed files from:
http://svn.shadow-realm.org/index.py/BeBot/branches/0.2/IRC/SmartIRC.php?revision=124
http://svn.shadow-realm.org/index.py/BeBot/branches/0.2/IRC/irccommands.php?revision=124
http://svn.shadow-realm.org/index.py/BeBot/branches/0.2/IRC/messagehandler.php?revision=124
BeBot Founder and Fixer Kingpin

Offline Barvaz

  • BeBot Rookie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #9 on: June 08, 2006, 03:39:12 am »
great job khalem :) works really great :D

uploaded it, hope it stays available http://rotter.name/madric/guide1/44877f8178ba0086.zip

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: IRC problems with PHP 5.1.4 and others
« Reply #10 on: June 26, 2006, 01:23:24 am »
Hi,

FC IRC server appears to be down - however, the bot will not startup at all now due to it not being able to connect to the IRC server.

Fixed by disabling the IRC module manually for the time being (renamed .php file).

Is there a way IRC module can skip if it cannot connect to the server?

Cheers,

-jj-

 

* 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: 784
  • 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