Thread: Major Additions - ibProArcade - professional Arcade System
View Single Post
  #7375  
Old 06-05-2017, 12:22 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dan325ci View Post
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:

PHP Code:
class Arcade 
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01997 seconds
  • Memory Usage 1,866KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (8)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete