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

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

Author Topic: Shell account Parse error:  (Read 5028 times)

0 Members and 1 Guest are viewing this topic.

Offline louhours

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Shell account Parse error:
« 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

Offline louhours

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Shell account Parse error:
« Reply #1 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  :(
« Last Edit: August 08, 2009, 10:33:24 pm by louhours »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Shell account Parse error:
« Reply #2 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)

BeBot Founder and Fixer Kingpin

Offline louhours

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Shell account Parse error:
« Reply #3 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

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Shell account Parse error:
« Reply #4 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
BeBot Founder and Fixer Kingpin

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


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


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

* Who's Online
  • Dot Guests: 293
  • 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