WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
Wenn bei STRICT und INSERT INTO in der add_topic.php wirklich jedes Feld angegeben werden muss, dann sind die dort vorhandenen 8 Angaben genau 27 zu wenig
if (!$database->query($SQL)){ $admin->print_error($database->get_error());}
$SQL = "CREATE TABLE IF NOT EXISTS....
. '`groups_id` VARCHAR(255) NOT NULL DEFAULT \'\',' //new field . '`modified_by` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`authors` VARCHAR(255) NOT NULL DEFAULT \'\', . '`title` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`short_description` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`description` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`keywords` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`picture` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`is_master_for` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`see_also` VARCHAR(255) NOT NULL DEFAULT \'\','
<?php // nur bunt$Sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_'.$tablename.'` SET ' . '`section_id`= '.$section_id.' , ' . '`page_id`= '.$page_id.', ' . '`groups_id` = \'\', ' . '`active`= 1, ' . '`posted_first`= '.$t.', ' . '`posted_by`= '.$theuser.', ' . '`modified_by`= \'\', ' . '`authors`= '.$theuser.', ' . '`position`= '.$position.', ' . '`link` = \'\', ' . '`title` = \'\', ' . '`short_description`= \'\', ' . '`description`= \'\', ' . '`keywords`= \'\', ' . '`picture`= \'\', ' . '`is_master_for`= \'\', ' . '`content_short`= \'\', ' . '`content_long`= \'\', ' . '`content_extra`= \'\', ' . '`commenting`= '.$commenting.', ' . '`see_also`= \'\', ' . '`tagcloud`= \'\', ' . '`rating_base`= \'\', ' . '`txtr1`= \'\', ' . '`txtr2`= \'\', ' . '`txtr3`= \'\', ' . '`pnsa_cache` = \'\' ';// $database->query($Sql);if (!$database->query($Sql)){ $admin->print_error($database->get_error());}
save_item.php line 603 (Insert new row into database) are some values missing.
$database->query('INSERT INTO `'.TABLE_PREFIX.'mod_'.$mod_name.'_items` (`section_id`, `page_id`, `position`) VALUES ('.(int)$section_id.', '.(int)$page_id.', '.(int)$position.')');
// Insert new row into database $sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_'.$mod_name.'_items` SET ' . '`section_id` = '.(int)$section_id.', ' . '`page_id` = '.(int)$page_id.', ' . '`title` = \'\', ' . '`link` = \'\', ' . '`description` = \'\', ' . '`position` = '.(int)$position.', ' . '`scheduling` = \'\', ' . '`main_image` = \'\', ' . '`modified_when` = \''.time().'\', ' . '`modified_by` = '.(int)$admin->get_user_id().' '; // Check if there was a db error if (!$database->query($sql)){ $admin->print_error($database->get_error()); }
Wer sagt das? Der 138. Guru von hinten?
Topic hinzufügen gibt zwar grüne Bestätigung, aber von da aus geht es dann nicht weiter bzw man sieht nur noch das Backend Menü. Darunter ist alles weiß.
Wäre ganz gut, wenn Uwe auch mal drüberschaut.
Ist dein Strict Mode stricter als strict?