Booya
collapse collapse

Menu

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Search


* Board Stats

  • stats Total Members: 1062
  • stats Total Posts: 18264
  • stats Total Topics: 2480
  • stats Total Categories: 7
  • stats Total Boards: 31
  • stats Most Online: 178

Author Topic: CentOS issue  (Read 65394 times)

0 Members and 1 Guest are viewing this topic.

Offline Krypto

  • BeBot Rookie
  • *
  • Posts: 5
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
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
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
    • 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
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

Some slight issues! by bitnykk
[October 04, 2017, 11:53:10 am]


Bot hosting (UtAvDrift Hosting) by Tessman
[August 24, 2017, 10:19:33 am]


CIDB by bitnykk
[July 21, 2017, 10:19:38 am]


Line 99 StartBot.php by Kepha
[October 17, 2016, 10:37:57 am]


New Central itemDB (!item[s|reg]) by aoc_botter
[September 17, 2016, 07:06:44 pm]

* Who's Online

  • Dot Guests: 27
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Forum Staff

Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator