BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: louhours on August 08, 2009, 04:34:07 pm

Title: Shell account Parse error:
Post by: louhours on August 08, 2009, 04:34:07 pm
I've searched the forums and can't find any one else with this error I keep getting. It (0.6.3 patch verson) works on my own PC and I even tried the new 0.6.4 verson of the bot. however everything I've tried I still keep coming up with this error below

Code: [Select]
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/ambrosia/AOCBOT/Sources/Conf.php on line 41
I'd be very grateful if anyone is aware of what is causing this so I can resolve the issue.

Thanks in advance
Title: Re: Shell account Parse error:
Post by: louhours on August 08, 2009, 08:22:01 pm
Update :P

Well I looked at the part of the php file and took out

Code: [Select]
private $conf;
private $login;

As the error advises it's expecting a Function and not a string which next next part of the code is  :)

only problem now with it now, is that fails in another area of of the bot  :-\

Code: [Select]
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/ambrosia/AOCBOT2/Main.php on line 286
Line 286 contains this
Code: [Select]
$value = $bot -> core("ini") -> get($mod,"Core");
Lost at this point completely  :(
Title: Re: Shell account Parse error:
Post by: Khalem on August 09, 2009, 02:51:51 am
Looks like you might be running an unsupported version of PHP. Which version are you running? (php --version)

Title: Re: Shell account Parse error:
Post by: louhours on August 09, 2009, 11:44:21 am
Thank you for your reply Khalem..

I had already actioned this area after read simualr problems with someone else's bot were they had 2 versons of PHP on their computer. I'm guessing that the BOT doesn't run in it own enviroment thus uses the first PHP it is advised of when checking the OS enviroment.

I got the server company to change the main verson of PHP on the server to php v5.2.6. Tested it this morning after the change, and it works great. Now I just need them to poke a hole in the firewall so it can see out to the AOC server  ;D
Title: Re: Shell account Parse error:
Post by: Khalem on August 09, 2009, 04:39:59 pm
On Linux BeBot will use the system supplied php and enviroment unless you manually configure it otherwise.

Glad to hear you got it sorted
SimplePortal 2.3.7 © 2008-2024, SimplePortal