Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Fri Mar 03, 2023 3:46 am Reply with quote

PHP 7.3 (currently in use but outdated) This is what I am using right now but if I change to php 8.2 I got these errors.

Deprecated: Creation of dynamic property sql_db::$db_version is deprecated in /www.bestbuildpc.org/db/mysqli.php on line 109

Code:
$this->db_version = $this->server_version;
//LINE 109

This is where is coming from.
Code:
      /**

      * Use this instead of $connect_error if you need to ensure
      * compatibility with PHP versions prior to 5.2.9 and 5.3.0.
      */
      if (mysqli_connect_error()) {
         $this->connectionError = ($this->display_errors) ? 'Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error() : true;
      } else {
         /**
         * Determine server version so we can determine compatability
         */
         $this->db_version = $this->server_version;
         if (version_compare($this->db_version, '40100', '>=')) {
            $this->dbVersionCompare = false;
            //$this->set_charset();
         } else {
            $this->dbVersionCompare = '<p>&nbsp;</p><p class="d1"><strong>We are sorry but the the MySQL version (' . $this->db_version . ') you are attempting to use is to old and is not supported by RavenNuke'
            . ' nor by MySQL.com any longer.</p>'
            . '<div class="c1">'
            . '<p class="d2">Please ask your host to upgrade or switch hosts</p></div>';
         }

         if (parent::select_db($this->dbname)) {
            /**
            * Test to see if database is populated
            */
            if ($this->sql_numrows($this->sql_query('SHOW TABLES LIKE "' . $this->prefix . '_config"'))) {
               $this->errorConfigTableMissing = false;
            } else {
               $this->errorConfigTableMissing = true;
            }
         } else {
            $this->dbError = true;
            $this->sql_close();
         }
      }
   }


Deprecated: Optional parameter $mode declared before required parameter $name is implicitly treated as a required parameter in /www.bestbuildpc.org/includes/nukeSEO/dh/dh.class.php on line 83

Code:
   function getHEAD($mode='META', $name) { //deprecated in php 8.2

      global $db, $prefix, $dhTitle, $dhDesc, $dhKeys, $seocatid, $seosubcatid, $sitename, $slogan;
      $this->setModuleName($name);
      $dhTitle = $dhDesc = $dhKeys = '';
      $contentTDK = $catTDK = array();
      $id = intval($this->getContentID());
      $catidfld = $this->cat_id;
      $seocatid = intval($this->getCatID());
      $subcatidfld = $this->subcat_id;
      $seosubcatid = intval($this->getSubCatID());
      if ($seocatid ==0 and $seosubcatid > 0 and $this->dh_bLinkCatSubcat) $seocatid = $this->getCatIDfromSubcat();
      $level = $this->getContentLevel();


If I clikc on the forum it is gone.

Fatal error: Uncaught Error: Call to undefined function each() in /www.bestbuildpc.org/modules/Forums/common.php:119 Stack trace: #0 /www.bestbuildpc.org//modules/Forums/index.php(3Cool: include_once() #1 /www.bestbuildpc.org/modules.php(87): include_once('...') #2 {main} thrown in /www.bestbuildpc.org/modules/Forums/common.php on line 119

The whole code is deprecated and needs an update.
Code:
//if( !@get_magic_quotes_gpc() ){

ini_set('magic_quotes_runtime', 0);{
   if( is_array($HTTP_GET_VARS) )
   {
      while( list($k, $v) = each($HTTP_GET_VARS) )
      {
         if( is_array($HTTP_GET_VARS[$k]) )
         {
            while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) )
            {
               $HTTP_GET_VARS[$k][$k2] = addslashes($v2);
            }
            @reset($HTTP_GET_VARS[$k]);
         }
         else
         {
            $HTTP_GET_VARS[$k] = addslashes($v);
         }
      }
      @reset($HTTP_GET_VARS);
   }

   if( is_array($HTTP_POST_VARS) )
   {
      while( list($k, $v) = each($HTTP_POST_VARS) )
      {
         if( is_array($HTTP_POST_VARS[$k]) )
         {
            while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) )
            {
               $HTTP_POST_VARS[$k][$k2] = addslashes($v2);
            }
            @reset($HTTP_POST_VARS[$k]);
         }
         else
         {
            $HTTP_POST_VARS[$k] = addslashes($v);
         }
      }
      @reset($HTTP_POST_VARS);
   }

   if( is_array($HTTP_COOKIE_VARS) )
   {
      while( list($k, $v) = each($HTTP_COOKIE_VARS) )
      {
         if( is_array($HTTP_COOKIE_VARS[$k]) )
         {
            while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) )
            {
               $HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
            }
            @reset($HTTP_COOKIE_VARS[$k]);
         }
         else
         {
            $HTTP_COOKIE_VARS[$k] = addslashes($v);
         }
      }
      @reset($HTTP_COOKIE_VARS);
   }
}
 
View user's profile Send private message
misterstereus
Regular
Regular



Joined: Aug 03, 2012
Posts: 56
Location: Rome Italy

PostPosted: Fri Mar 03, 2023 5:10 am Reply with quote

I start my PHP 8.2 version to fix it [ Only registered users can see links on this board! Get registered or login! ]

_________________
MisterStereus from Rome Italy!! 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©