EVE-SECURE / evedev-kb

Automatically exported from code.google.com/p/evedev-kb
0 stars 0 forks source link

r703 causes PHP deprecation errors #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While updating killboard, r703 caused PHP deprecation errors

Unknown error type: [16384] Directly including class.corp.php is 
deprecated. If you need a direct include, use class.corporation.php
Error on line 8 in file C:\wwwroot\eve-
usf\killboard\common\includes\class.corp.php
PHP 5.3.1 (WINNT), EDK 3.1 Beta (Tyrannis)
File: C:\wwwroot\eve-usf\killboard\common\includes\class.corp.php, line: 8, 
function: trigger_error
File: C:\wwwroot\eve-usf\killboard\common\includes\class.kill.php, line: 9, 
function: require_once
File: C:\wwwroot\eve-usf\killboard\common\includes\class.killlist.php, 
line: 8, function: require_once
File: C:\wwwroot\eve-usf\killboard\common\home.php, line: 9, function: 
require_once
File: C:\wwwroot\eve-usf\killboard\common\index.php, line: 303, function: 
include
File: C:\wwwroot\eve-usf\killboard\index.php, line: 25, function: include

Server Error Log:

[Sat May 29 21:35:38 2010] [error] [client 192.168.1.1] PHP :  Directly 
including class.corp.php is deprecated. If you need a direct include, use 
class.corporation.php in C:\\wwwroot\\eve-
usf\\killboard\\common\\includes\\class.corp.php on line 8, referer: 
http://eve-usf.com/killboard/?a=home

[Sat May 29 21:35:43 2010] [error] [client 216.129.119.14] PHP :  Directly 
including class.corp.php is deprecated. If you need a direct include, use 
class.corporation.php in C:\\wwwroot\\eve-
usf\\killboard\\common\\includes\\class.corp.php on line 8

i will be toning down the php error handler however, I don't think it is wise 
to use deprecated function calls moving forward. 

Original issue reported on code.google.com by zendo...@icqmail.com on 30 May 2010 at 1:44

GoogleCodeExporter commented 9 years ago
will roll back the server to r702 until issue is addressed 

Original comment by zendo...@icqmail.com on 30 May 2010 at 1:45

GoogleCodeExporter commented 9 years ago
Just for kicks I upgraded to r712. The server log errors went away however 
still 
getting errors on page. New errors are listed below:

Unknown error type: [8192] Function set_magic_quotes_runtime() is deprecated
Error on line 52 in file C:\wwwroot\eve-usf\killboard\common\index.php
PHP 5.3.1 (WINNT), EDK 3.1 Beta (Tyrannis)
File: C:\wwwroot\eve-usf\killboard\common\index.php, line: 52, function: 
set_magic_quotes_runtime
File: C:\wwwroot\eve-usf\killboard\index.php, line: 21, function: include

will be rolling back to r207 until this is addressed 

Thanks,
Zen

Original comment by zendo...@icqmail.com on 30 May 2010 at 1:54

GoogleCodeExporter commented 9 years ago
As a development version the error logging is set to display non-fatal errors 
that 
may need addressing. If you don't want to see these errors then you should 
change the 
error reporting level in the root index.php. A setting of E_ERROR will only 
show the 
worst errors.

set_error_handler(array('EDKError', 'handler'),E_ERROR

The deprecated class.corp.php file was deprecated by me deliberately to produce 
warnings like that on development versions. The board works fine either way, 
it's 
just a warning to devs to not use it in future.

Original comment by kovellia on 30 May 2010 at 2:05