Booya
collapse collapse

Menu

* User Info

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

* Search


* Board Stats

  • stats Total Members: 1067
  • stats Total Posts: 18279
  • stats Total Topics: 2483
  • stats Total Categories: 7
  • stats Total Boards: 31
  • stats Most Online: 323

Author Topic: CentOS issue  (Read 69758 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

Bot can't connect-fixed. Now disconnecting issues. by Cromite
[October 27, 2018, 01:13:21 pm]


[module] YouTube-Query by Membreno
[October 12, 2018, 03:12:35 pm]


NEED Help Bebot on Ubuntu 16 with PHP 7.2 by bitnykk
[June 08, 2018, 11:47:01 am]


New Central itemDB (!item[s|reg]) by Kakahu
[May 16, 2018, 09:22:47 pm]


Tradeskill's Recipes Module by bitnykk
[February 17, 2018, 01:49:04 pm]

* Who's Online

  • Dot Guests: 117
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Forum Staff

Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator