hab ein neues Problem

kaiwahn
tja verstehe wer mag ich bin am Ende, hatte gestern das Portal am laufen aber dafür das Forum nicht, ok hab alles gelöscht und neu aufgespielt jetzt funktioniert das Forum aber das Portal nicht habe alle Änderungen durchgeführt und wollte noch die acp/lib/class_variableimport.php die zweite variable ändern ist aber nicht mehr vorhanden und bekomme diese Fehlermeldung, bitte bitte helft mir

dank im voraus
kai


ProblembeschreibungZunge raus ortal lässt sich nicht installieren


Fehlermeldunggroßes Grinsen atabase error in WoltLab Burning Board (): Invalid SQL: INSERT INTO bb1_acpmenuitems (itemgroupid,languageitem,link,linkformat,condition,conditiontype,showorder
,acpmode) VALUES ('18', 'PORTALCONTENT_ADD', 'pcp_content.php?action=add', '', 'p_can_content_add', 'OR', '1', '2'),('18', 'PORTALCONTENT_EDIT', 'pcp_content.php?action=view', '', 'p_can_content_edit;p_can_content_edit2', 'OR', '2', '1'),('18', 'PORTALCONTENT_IMPORT_EXPORT', 'pcp_content.php?action=import_export', '%s', 'p_can_content_import_export', 'OR', '3', '1'),('19', 'PORTALLAYOUT_ADD', 'pcp_layout.php?action=add', '', 'p_can_layout_add', 'OR', '1', '2'),('19', 'PORTALLAYOUT_EDIT', 'pcp_layout.php?action=view', '%s', 'p_can_layout_edit', 'OR', '2', '1'),('20', 'PORTALMODULE_ADD', 'pcp_module.php?action=add', '', 'p_can_module_add', 'OR', '1', '2'),('20', 'PORTALMODULE_EDIT', 'pcp_module.php?action=view', '%s', 'p_can_module_edit', 'OR', '2', '1'),('21', 'PORTALNAVIGATION_ADD', 'pcp_navigation.php?action=add', '', 'p_can_navigation_add', 'OR', '1', '2'),('21', 'PORTALNAVIGATION_EDIT', 'pcp_navigation.php?action=view', '%s', 'p_can_navigation_edit', 'OR', '2', '1'),('22', 'PORTALNEWSCAT_ADD', 'pcp_newscat.php?action=add', '', 'p_can_newscat_add', 'OR', '1', '2'),('22', 'PORTALNEWSCAT_EDIT', 'pcp_newscat.php?action=view', '', 'p_can_newscat_edit', 'OR', '2', '2'),('23', 'PORTALTIP_ADD', 'pcp_tip.php?action=add', '', 'p_can_tip_add', 'OR', '1', '2'),('23', 'PORTALTIP_EDIT', 'pcp_tip.php?action=view', '%s', 'p_can_tip_edit', 'OR', '2', '1'),('24', 'PORTALANNOUNCE_ADD', 'pcp_announce.php?action=add', '', 'p_can_announce_add', 'OR', '1', '2'),('24', 'PORTALANNOUNCE_EDIT', 'pcp_announce.php?action=view', '%s', 'p_can_announce_edit', 'OR', '2', '1')
mysql error: 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 'condition,conditiontype,showorder,acpmode) VALUES ('18', 'PORTALCONTENT_ADD', 'p' at line 1
mysql error number: 1064



Link zum Forum oder Screenshot:


Was wurde zuletzt geändert oder eingebaut?
Agi
Mache Folgendes:

Datei Datei acp/lib/class_variableimport.php öffnen und nach Folgendem Suchen:

php:
1:
$db->query("INSERT INTO bb".$n."_acpmenuitemgroups (title,condition,conditiontype,showorder,acpmode) VALUES ('".addslashes($itemgroup['name'])."','".addslashes($itemgroup['condition'])."','".addslashes($itemgroup['conditiontype'])."','".$showorder."','".intval($itemgroup['acpmode'])."')");



Ersetze gegen:

php:
1:
$db->query("INSERT INTO bb".$n."_acpmenuitemgroups (title,`condition`,conditiontype,showorder,acpmode) VALUES ('".addslashes($itemgroup['name'])."','".addslashes($itemgroup['condition'])."','".addslashes($itemgroup['conditiontype'])."','".$showorder."','".intval($itemgroup['acpmode'])."')");



Suche weiter nach:

php:
1:
$db->unbuffered_query("INSERT INTO bb".$n."_acpmenuitems (itemgroupid,languageitem,link,linkformat,condition,conditiontype,showorder,acpmode) VALUES



Und ersetze gegen:

php:
1:
$db->unbuffered_query("INSERT INTO bb".$n."_acpmenuitems (itemgroupid, languageitem, link, linkformat, `condition`, conditiontype, showorder, acpmode) VALUES



Jetzt das Setup nochmals ausführen bzw. den Variablenimport, nun sollts diesen Fehler nicht mehr geben. Eventuell bestehende Datenbanktabellen, die durch das Setup schon angelegt wurden, vorher löschen, damits keine anderen Fehlermeldungen gibt, weil die schon existieren.
Luzifer69
Zitat:
Original von kaiwahn
habe alle Änderungen durchgeführt und wollte noch die acp/lib/class_variableimport.php die zweite variable ändern ist aber nicht mehr vorhanden und bekomme diese Fehlermeldung, bitte bitte helft mir


also wenn du den thread mit den fixes
ACP Menü fehlt nach Neuinstallation (WBB2.2.x), Problem bei Hack installation (WBB 2.2.x)
den ich dir im anderen post geschrieben habe
Database error in WoltLab Burning Board 2.1.6 und myWBB-Portal 4Portal
bevolgt hast muss der import funtionierenn
wenn wie du sagst die 2 variable die geändert werden soll nicht vorhanden ist
so sollteste mal die originale des downloads packetes nemen diese editieren und dann raufladen
und ps: weil ich das gerade bei nem anderen user hatte
das die hälfte der php codes fehlten
nicht dreamweaver nemen
kaiwahn
dank erstmal für eure tolle hilfe,
aber das problem war ganz ander zu suchen den in der datei fehlte ein eintrag nach dem x-ten mal aufspielen war diese datei denn endlich zu sehen und zu ersetzen nach dem ich dieses gemacht hatte ging alles reibungslos

dank nochmal war eine sehr gute unterstützung und die seite läuft

gruß
kai