BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: Gathor on April 12, 2012, 04:06:47 pm

Title: php version supported?
Post by: Gathor 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 ?
Title: Re: php version supported?
Post by: Kentarii 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
Title: Re: php version supported?
Post by: Gathor 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

Title: Re: php version supported?
Post by: Khalem 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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal