Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Newpoints/Shop Stock fehler
#1
Wenn ich eine Stock rate vom Shop Plugin angebe, z.b 1 und danach auf kaufen/buy klicke im Shop, kommt folgende Fehler meldung:

Zitat:MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1146 - Table 'pokemonr_de.mybb_newpoints_items' doesn't exist
Query:
UPDATE mybb_newpoints_items SET `stock`='0' WHERE iid='7'

Please contact the MyBB Group for support.

Aber wenn ich infinite angebe, kommt kein error.
Was ist der Fehler?
Danke schon im vorraus..
#2
Das Problem: Die Tabelle/das Feld existiert nicht.

Logge dich in PHPmyadmin ein und gehe auf SQLQuery. Gib dann diesen Command ein:
Code:
UPDATE mybb_newpoints_items SET `stock`='0' WHERE id='7'
#3
Wennn ich das mache erscheint dieser fehler:

Zitat:Fehler

SQL-Befehl:

UPDATE mybb_newpoints_items SET `stock` = '0' WHERE id = '7'

MySQL meldet: Dokumentation
#1146 - Table 'pokemonr_de.mybb_newpoints_items' doesn't exist
#4
Die Tabelle existiert nicht. Kannst du mir den Link zum Plugin geben?
#5
http://forums.mybb-plugins.com/Thread-Release-Shop-1-0
#6
Ok, führe folgende SQL Querys aus:
Code:
ALTER TABLE `".TABLE_PREFIX."users` ADD `newpoints_items` TEXT NOT NULL DEFAULT '';
Code:
CREATE TABLE `".TABLE_PREFIX."newpoints_shop_categories` (
      `cid` bigint(30) UNSIGNED NOT NULL auto_increment,
      `name` varchar(100) NOT NULL default '',
      `description` TEXT NOT NULL default '',
      `visible` smallint(1) NOT NULL default '1',
      `icon` varchar(300) NOT NULL default '',
      `usergroups` varchar(100) NOT NULL default '',
      `disporder` int(5) NOT NULL default '0',
      `items` int(10) NOT NULL default '0',
      `expanded` smallint(1) NOT NULL default '1',
      PRIMARY KEY  (`cid`)
        ) TYPE=MyISAM
Code:
CREATE TABLE `".TABLE_PREFIX."newpoints_shop_items` (
      `iid` bigint(30) UNSIGNED NOT NULL auto_increment,
      `name` varchar(100) NOT NULL default '',
      `description` TEXT NOT NULL default '',
      `price` DECIMAL(16,2) NOT NULL default '0',
      `icon` varchar(300) NOT NULL default '',
      `visible` smallint(1) NOT NULL default '1',
      `disporder` int(5) NOT NULL default '0',
      `infinite` smallint(1) NOT NULL default '0',
      `stock` int(10) NOT NULL default '0',
      `sendable` smallint(1) NOT NULL default '1',
      `sellable` smallint(1) NOT NULL default '1',
      `cid` int(10) NOT NULL default '0',
      PRIMARY KEY  (`iid`)
        ) TYPE=MyISAM
#7
beim ersten code, kommt direkt wieder ein fehler:

Zitat:SQL-Befehl:

ALTER TABLE `".TABLE_PREFIX."users` ADD `newpoints_items` TEXT NOT NULL DEFAULT ''

MySQL meldet: Dokumentation
#1103 - Incorrect table name '".TABLE_PREFIX."users'

...
#8
Kommen wir zu ersten Frage: Wie lautet der Präfix vom MyBB Forum? Normalerweise ist er mybb_, oder? Wenn er mybb_ ist, führe dies hier durch:
Code:
ALTER TABLE mybb_users ADD newpoints_items TEXT NOT NULL DEFAULT
#9
Öhm es tretet wieder ein Fehler auf ô.o

Zitat:Fehler

SQL-Befehl:

ALTER TABLE mybb_users ADD newpoints_items TEXT NOT NULL DEFAULT

MySQL meldet: Dokumentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Ich glaube so wird das nichts, geht es nicht irgendwie anders?
#10
Installier das Plugin mal bitte neu. Eigentlich müsste es funktionieren.