Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    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: 1123

PostPosted: Mon Nov 15, 2021 4:36 am Reply with quote

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dhchronicle has a deprecated constructor in /www.bestbuildpc.org/includes/nukeSEO/dh/dhchronicle.php on line 11

Code:
Line 11: class dhchronicle extends dhclass {



Code:
<?php

/**
 * @package: Chronicle Module
 * @version: 1.0.1
 * @file: dhcronicle.php
 * @copyright: (c) 2012 by Ron Holzhey - neralex (soe.media)
 * @license: http://opensource.org/licenses/gpl-license.php GNU Public License
 */
 

class dhchronicle extends dhclass {
   
   function dhchronicle () {
      global $prefix;
      $this->content_id        = 'chrid';
      $this->content_table     = $prefix . '_chronicle,' . $prefix . '_modules';
      $this->contentTitleArray = array('year','name','custom_title');
      $this->contentDescArray  = array('shorttext','maintext');
      $this->contentKeysArray  = array('year','year2','name','shorttext','maintext');
      // If pending content is stored in the same table, inactive content, private content, etc.
      $this->activeWhere       = 'title=\'chronicle\'';
   }
   function getContentID() {
      global $chrid, $file;
      if(!isset($chrid)) {
         $chrid = 0;
      }
      return $chrid;
   }
   function setContentID() {
      global $chrid, $dhID;
      $chrid = $dhID;
   }
}


Everythings is gettting old with new php version.

Search for
Code:


function dhchronicle () {


replace with
Code:


function __construct() {


Error is gone!
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Mon Nov 15, 2021 7:45 am Reply with quote

Notice: This is an old and unsupported module since many years. This is also not a part of the core-files. (known issue since php7.0)

_________________
Github: RavenNuke 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    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 ©