Quote:
Originally Posted by dan325ci
This file already had the live above as you mentioned.
I also did all the previous changes you mentioned but still getting this error:
and in the error logs the following:
Code:
[21-May-2017 03:09:31 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; info has a deprecated constructor in /home/username/public_html/forum/arcade.php on line 112
[21-May-2017 03:09:31 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Arcade has a deprecated constructor in /home/username/public_html/forum/arcade.php on line 341
[21-May-2017 03:09:31 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; FUNC has a deprecated constructor in /home/username/public_html/forum/arcade/functions/functions.php on line 3
[21-May-2017 03:09:31 UTC] PHP Warning: require(./arcade/functions/dbclass_mysqli.php): failed to open stream: No such file or directory in /home/username/public_html/forum/arcade.php on line 161
[21-May-2017 03:09:31 UTC] PHP Fatal error: require(): Failed opening required './arcade/functions/dbclass_mysqli.php' (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/username/public_html/forum/arcade.php on line 161
Any other advice?
|
To fix the deprecated constructor warnings, download the file "arcade.php" and locate the class constructor beginning on line 112 which reads:
PHP Code:
class info {
var $member = array();
var $input = array();
var $session_id = "";
var $base_url = "";
var $vars = "";
var $skin_id = "0";
var $skin_rid = "";
var $lang_id = "en";
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v1.3 Final";
var $lastclick = "";
var $location = "";
var $debug_html = "";
var $perm_id = "";
var $forum_read = array();
var $topic_cache = "";
var $session_type = "";
function info() {
global $sess, $std, $DB, $INFO, $vboptions, $vbulletin, $session;
$this->vars = &$INFO;
$this->vars['board_name'] = $vboptions['bbtitle'];
}
}
And change this to:
PHP Code:
class info {
var $member = array();
var $input = array();
var $session_id = "";
var $base_url = "";
var $vars = "";
var $skin_id = "0";
var $skin_rid = "";
var $lang_id = "en";
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v1.3 Final";
var $lastclick = "";
var $location = "";
var $debug_html = "";
var $perm_id = "";
var $forum_read = array();
var $topic_cache = "";
var $session_type = "";
public function __construct() {
global $sess, $std, $DB, $INFO, $vboptions, $vbulletin, $session;
$this->vars = &$INFO;
$this->vars['board_name'] = $vboptions['bbtitle'];
}
function info() {
self::__construct();
}
}
Then look for the class constructor around line 345 that reads:
Scroll down about 12 lines and find:
PHP Code:
function Arcade()
Change that to:
PHP Code:
public function __construct()
Then after that function, around line 505 insert:
PHP Code:
function Arcade()
{
self::__construct();
}
Save and upload that file to your server. Next, download and open the file "arcade/functions/functions.php and locate the constructor at line 3 and replace this code:
PHP Code:
class FUNC {
var $time_formats = array();
var $time_options = array();
var $offset = "";
var $offset_set = 0;
var $num_format = "";
var $allow_unicode = 1;
var $get_magic_quotes = 0;
function FUNC() {
global $INFO, $vboptions, $vbulletin;
$this->time_options = array( 'JOINED' => $INFO['clock_joined'],
'SHORT' => $INFO['clock_short'],
'LONG' => $INFO['clock_long']
);
$this->num_format = ($INFO['number_format'] == 'space') ? ' ' : $INFO['number_format'];
$this->get_magic_quotes = get_magic_quotes_gpc();
}
With this:
PHP Code:
class FUNC {
var $time_formats = array();
var $time_options = array();
var $offset = "";
var $offset_set = 0;
var $num_format = "";
var $allow_unicode = 1;
var $get_magic_quotes = 0;
public function __construct() {
global $INFO, $vboptions, $vbulletin;
$this->time_options = array( 'JOINED' => $INFO['clock_joined'],
'SHORT' => $INFO['clock_short'],
'LONG' => $INFO['clock_long']
);
$this->num_format = ($INFO['number_format'] == 'space') ? ' ' : $INFO['number_format'];
$this->get_magic_quotes = get_magic_quotes_gpc();
}
function FUNC() {
self::__construct();
}
Save the file and upload it to your server.