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

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

Author Topic: php version supported?  (Read 2280 times)

0 Members and 1 Guest are viewing this topic.

Offline Gathor

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
php version supported?
« on: April 12, 2012, 04:06:47 pm »
It has been some times since I did run the bot, but did try it on my old "server" with php version 5.3.1. When I started it, I got the following error msg :

Quote
Fatal error: Class 'PBMessage' not found in  ......Sources\AocLogin\pb_pro
to_Endpoints.php on line


Did find some post on the forum that did indicate it could be a php version problem. So i upgraded to php 5.4, just to find that it don't work. One get the following error :

Quote
Notice: Undefined offset: 1 in D:\Apps\AoC\RRBot\Sources\Conf.php on line 47

Notice: Undefined property: Conf::$cf in D:\Apps\AoC\RRBot\Sources\Conf.php on line 70

Well I then installed php 5.3.8, just to see one get the same error as in 5.4  :(


So what php version are supported / needed for the BeBot to work ?
« Last Edit: April 12, 2012, 04:11:19 pm by Gathor »

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: php version supported?
« Reply #1 on: April 12, 2012, 08:54:41 pm »
Tried to reply on RR-forum, but the forum just gave me an error, so replying here instead.. (sorry, too lazy to translate).

Aldri vært borti den første feilen der.

Den andre feilen er fordi php.ini er satt opp til å logge NOTICE.
De fleste disabler dette på produksjon siden det blir litt vel mye spam.

Vet ikke hvilken Linux du kjører, men på debian/ubuntu, så er det denne filen:
Code: [Select]
vi /etc/php5/cli/php.ini

Min error_reporting variablel ser slik ut:
Code: [Select]
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE

Offline Gathor

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: php version supported?
« Reply #2 on: April 13, 2012, 01:43:40 am »
I have got it up and running on php 5.3.5, but gets alot of warnings and I don't like them. 

In the error-msg above for 5.4 I guess I did not get the error-msg. I did just take the first notice I did see. But see I get the same msg now when it's working.

I see on forums many just turn off warnings, but never used to have warnings so will see if they can be "removed" without to much code changes. (To me a warning is also an error.)


I run on the bugged  Linux version called "Windows"  :P

« Last Edit: April 13, 2012, 01:56:45 am by Gathor »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: php version supported?
« Reply #3 on: April 13, 2012, 07:42:19 pm »
The first error I have not seen before, so I would recommend trying to download the bot again.

As for PHP 5.4 it is not yet supported due to a few functions (including in third party libraries we use) use pass by reference which is no longer supported in PHP 5.4 and thus needs to be rewritten.

Also keep in mind that Notices are not warnings and can be very safely ignored and hidden.
BeBot Founder and Fixer Kingpin

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 746
  • 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