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

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

Author Topic: CentOS issue  (Read 82727 times)

0 Members and 1 Guest are viewing this topic.

Offline Krypto

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
CentOS issue
« on: April 05, 2015, 01:25:40 pm »
Hey guys

I moved to a new server running CentOS, trying to start BeBot I get this weird one:

PHP Notice:  Undefined offset: 1 in /home/****/bots/bebot/Sources/Conf.php on line 47
PHP Notice:  Undefined property: Conf::$cf in /home/****/bots/bebot/Sources/Conf.php on line 70
PHP Notice:  Undefined offset: 1 in /home/****/bots/bebot/StartBot.php on line 74
PHP Notice:  Undefined variable: pw in /home/****/bots/bebot/StartBot.php on line 100

Fatal error: Call-time pass-by-reference has been removed in /home/****/bots/bebot/Main.php on line 298
PHP Notice:  Undefined variable: pw in /home/****/bots/bebot/StartBot.php on line 100


I have seen some threads on similar problems, but not exactly like this. Any ideas?


Krypto

Offline Krypto

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: CentOS issue
« Reply #1 on: April 05, 2015, 06:33:27 pm »
After getting the updated release that works with PHP5.4 these errors are now gone, however like another community member has posted there is another issue:

Your bot configuration is outdated or corrupted.
Please check its contents against the template.PHP Notice:  Undefined variable: pw in /home/suncrusher/bots/bebot2/StartBot.php on line 94

Offline Bronepoesd

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: CentOS issue
« Reply #2 on: May 08, 2015, 09:52:00 pm »
When I'm trying to setup the bot receiving this...OS is debian7 64bit

Your bot configuration is outdated or corrupted. please check its contants against the template.PHP Notice: Undefined variable: pw in /home/Bots/Bot1/StartBot.php on line 94

and installation do not want to proceed...

Please could You help me to fix it

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: CentOS issue
« Reply #3 on: May 27, 2015, 03:18:53 pm »
This basically checks that your configuration file contains the line
$conf_version = 1;

Your configuration file is either missing entirely or missing parts it should contain. Refer to the template file.
This should probably be made a non fatal error or the error message revised to make it more clear.
BeBot Founder and Fixer Kingpin

Offline mcgunman

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
Re: CentOS issue
« Reply #4 on: March 11, 2016, 11:00:39 pm »
as this is the 1st topic I found about Call-time pass-by-reference has been removed and as I didn't find the "new" version I just fixed the code brute force:

find . -type f | xargs sed -i 's/&\$/\$/g'

removes the invalid &$ in all files found. That fix is required for all current php versions.

 

* Recent Posts
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 ]


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

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