2009-10-13, 07:22 AM
I'm using php 5.3 witch is probably the problem. however, more people seem to be using mybb forums with php 5.3.
i tried to install the 1.4.9 version directly (so no updates or anything). I went to http://community.mybboard.net/thread-521...#pid372017 and applied the fixes there. The installation went fine (I did get some warnings about not using local time or something similar, but i don't think that has anything to do with this problem). When I got to the forum (http://exyle.uni.cc:7070/forum/) everything seemed to work until i try to login. Then i got an error
Error Type: (8192)
Error Message: Function split() is deprecated
Location: File: inc/functions.php; Line: 1652
Code:
1649. }
1650.
1651. $load = @exec("uptime");
1652. $load = split("load averages?: ", $load);
1653. $serverload = explode(",", $load[1]);
1654. if(!is_array($serverload))
1655. {
Backtrace:
File Line Function
/inc/class_error.php 171 errorHandler->output_error
[PHP] errorHandler->error
/inc/functions.php 1652 split
/inc/functions.php 46 get_server_load
/index.php 338 output_page
I guess the 8192 means it is caused because I use php 5.3. Though i have no idea what part of the code should be changed. I don't feel like going trough all those files and see if i can fix it myself (witch i probably can't) and i don't see anything like '&new' that i can change.
i tried the "$load = @exec("uptime"); $load = split("load averages?: ", $load);" part in a separate php script. but it seems to work.
I know 1.4.9 is not fully compatible with php 5.3 but i hope someone who knows something about the code could give me a quick fix for this.
oh the error only occures when i have cookies set on my pc. if i remove the cookies, i get the guest page again without any errors. perhaps there is something worng with the way cookies are parsed. don't know just guessing.
if there is anything else you need to know just ask.
thanks in advance.
i tried to install the 1.4.9 version directly (so no updates or anything). I went to http://community.mybboard.net/thread-521...#pid372017 and applied the fixes there. The installation went fine (I did get some warnings about not using local time or something similar, but i don't think that has anything to do with this problem). When I got to the forum (http://exyle.uni.cc:7070/forum/) everything seemed to work until i try to login. Then i got an error
Error Type: (8192)
Error Message: Function split() is deprecated
Location: File: inc/functions.php; Line: 1652
Code:
1649. }
1650.
1651. $load = @exec("uptime");
1652. $load = split("load averages?: ", $load);
1653. $serverload = explode(",", $load[1]);
1654. if(!is_array($serverload))
1655. {
Backtrace:
File Line Function
/inc/class_error.php 171 errorHandler->output_error
[PHP] errorHandler->error
/inc/functions.php 1652 split
/inc/functions.php 46 get_server_load
/index.php 338 output_page
I guess the 8192 means it is caused because I use php 5.3. Though i have no idea what part of the code should be changed. I don't feel like going trough all those files and see if i can fix it myself (witch i probably can't) and i don't see anything like '&new' that i can change.
i tried the "$load = @exec("uptime"); $load = split("load averages?: ", $load);" part in a separate php script. but it seems to work.
I know 1.4.9 is not fully compatible with php 5.3 but i hope someone who knows something about the code could give me a quick fix for this.
oh the error only occures when i have cookies set on my pc. if i remove the cookies, i get the guest page again without any errors. perhaps there is something worng with the way cookies are parsed. don't know just guessing.
if there is anything else you need to know just ask.
thanks in advance.