21
wcrwcr
Re: Soapbox:Fatal error: Using $this when not in object context in...
  • 2009/11/25 13:58

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


I don´t reinstall yet but, just in case here follows the sql of the last version.

If i´m not wrong the "PRIMARY, columnID" is present:

# phpMyAdmin SQL Dump
# version 2.5.3
# http://www.phpmyadmin.net
#
# Host: localhost
# Generation Time: Dec 12, 2003 at 06:03 AM
# Server version: 3.23.56
# PHP Version: 4.3.3

# Database : `xoops`


# --------------------------------------------------------

#
# Table structure for table `sbcolumns`
#

CREATE TABLE `sbcolumns` (
    `
columnIDtinyint(4NOT NULL auto_increment,
    `
authorint(8NOT NULL,
    `
namevarchar(255NOT NULL default '',
    `
descriptiontext NOT NULL,
    `
totalint(11NOT NULL default '0',
    `
weightint(11NOT NULL default '1',
    `
colimagevarchar(255NOT NULL default 'blank.png',
    `
createdint(11NOT NULL default '1033141070',
    
PRIMARY KEY  (`columnID`),
    
UNIQUE KEY columnID (`columnID`)
TYPE=MyISAM COMMENT='Soapbox by hsalazar and domifara';

#
# Dumping data for table `sbcolumns`
#

# --------------------------------------------------------

#
# Table structure for table `sbarticles`
#

CREATE TABLE `sbarticles` (
    `
articleIDint(8NOT NULL auto_increment,
    `
columnIDtinyint(4NOT NULL default '0',
    `
headlinevarchar(255NOT NULL default '0',
    `
leadtext NOT NULL,
    `
bodytexttext NOT NULL,
    `
teasertext NOT NULL,
    `
uidint(6) default '1',
    `
submitint(1NOT NULL default '0',
    `
datesubint(11NOT NULL default '1033141070',
    `
counterint(8unsigned NOT NULL default '0',
    `
weightint(11NOT NULL default '1',
    `
htmlint(11NOT NULL default '0',
    `
smileyint(11NOT NULL default '0',
    `
xcodesint(11NOT NULL default '0',
    `
breaksint(11NOT NULL default '1',
    `
blockint(11NOT NULL default '0',
    `
artimagevarchar(255NOT NULL default '',
    `
votesint(11NOT NULL default '0',
    `
ratingdouble(6,4NOT NULL default '0.0000',
    `
commentableint(11NOT NULL default '0',
    `
offlineint(11NOT NULL default '0',
    `
notifypubint(11NOT NULL default '0',
    
PRIMARY KEY  (`articleID`),
    
UNIQUE KEY articleID (`articleID`),
    
FULLTEXT KEY bodytext (`bodytext`)
TYPE=MyISAM COMMENT='Soapbox by hsalazar and domifara';

#
# Dumping data for table `sbarticles`
#

# --------------------------------------------------------

#
# Table structure for table `sbvotedata`
#

CREATE TABLE `sbvotedata` (
    `
ratingidint(11unsigned NOT NULL auto_increment,
    `
lidint(11unsigned NOT NULL default '0',
    `
ratinguserint(11NOT NULL default '0',
    `
ratingtinyint(3unsigned NOT NULL default '0',
    `
ratinghostnamevarchar(60NOT NULL default '',
    `
ratingtimestampint(10NOT NULL default '0',
    
PRIMARY KEY  (`ratingid`),
    
KEY ratinguser (`ratinguser`),
    
KEY ratinghostname (`ratinghostname`),
    
KEY lid (`lid`)
TYPE=MyISAM;

#
# Dumping data for table `sbvotedata`
#


22
ghia
Re: Soapbox:Fatal error: Using $this when not in object context in...
  • 2009/11/25 14:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It seems to be a bug. There is no point in specifying the same field twice as key. Remove
,
    
UNIQUE KEY columnID (`columnID`)
in the SQL file and the same goes for the next table.

Login

Who's Online

191 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits