|
|
OK, danke für die Antword. Das Update lief soweit ohne Probleme, außer wenn ich in der Linkliste einen neuen Link erstellen will, bekomme ich folgende Fehlermeldung.
Critical error! Stopping script-execution... MySQL-Query failed: 1048: Feld 'category' darf nicht NULL sein MySQL-Query: INSERT INTO bs_links SET `link_url` = 'http://www.test.de', `category` = NULL, `link_desc` = 'Testlink', `link_desc_posted` = 'Testlink', `link_date` = 1289933471, `user_id` = '1', `active` = 1 Call-trace:
* /fws/db/mysql/connection.php in line 192 [ Method: FWS_DB_MySQL_Connection::execute() ] 0187 FWS_Helper::def_error('notempty','table',$table); 0188 if(!is_array($values) || count($values) == 0) 0189 FWS_Helper::def_error('array>0','values',$values); 0190 0191 $sql = $this->_build_statement('INSERT INTO '.$table.' SET ',$values); 0192 $this->execute($sql); 0193 return $this->get_inserted_id(); 0194 } 0195 0196 /** 0197 * @see db/FWS_DB_Connection::insert_bulk() 0198 * * /src/dao/links.php in line 220 [ Method: FWS_DB_MySQL_Connection::insert() ] 0215 */ 0216 public function create($fields) 0217 { 0218 $db = FWS_Props::get()->db(); 0219 0220 return $db->insert(BS_TB_LINKS,$fields); 0221 } 0222 0223 /** 0224 * Sets wether the links with given ids are active or not 0225 * 0226 * @param array $ids the link-ids * /front/module/linklist/action_addlink.php in line 79 [ Method: BS_DAO_Links::create() ] 0074 'link_desc_posted' => $post_text, 0075 'link_date' => $time, 0076 'user_id' => $user->get_user_id(), 0077 'active' => $active 0078 ); 0079 BS_DAO::get_links()->create($fields); 0080 0081 // make the ip-entry, if necessary 0082 $ips->add_entry('linkadd'); 0083 0084 // write PM's to the admins if enabled 0085 if($cfg['get_email_new_link'] == 1 && $active == 0) * /fws/action/performer.php in line 265 [ Method: BS_Front_Action_linklist_addlink::perform_action() ] 0260 $this->_listener->before_action_performed($id,$c); 0261 0262 if(isset($this->_add_params[$id])) 0263 $message = call_user_func_array(array($c,'perform_action'),$this->_add_params[$id]); 0264 else 0265 $message = $c->perform_action(); 0266 0267 if($this->_listener !== null) 0268 $this->_listener->after_action_performed($id,$c,$message); 0269 0270 // has an error occurred? 0271 if($message) * /fws/action/performer.php in line 228 [ Method: FWS_Action_Performer::perform_action_by_id() ] 0223 { 0224 $id = $this->get_action_id(); 0225 if($id === null) 0226 return 0; 0227 0228 return $this->perform_action_by_id($id); 0229 } 0230 0231 /** 0232 * Performs the action with given id, if available 0233 * 0234 * @param mixed $id the action-id * /fws/document/renderer/html/default.php in line 297 [ Method: FWS_Action_Performer::perform_action() ] 0292 * Performs the necessary action 0293 * You will find the result in get_action_result() 0294 */ 0295 public final function perform_action() 0296 { 0297 $this->_action_result = $this->_action_perf->perform_action(); 0298 } 0299 0300 /** 0301 * @return int the result of the action in this run. This is: 0302 * <pre> 0303 * -1 = error * /front/src/renderer/html.php in line 314 [ Method: FWS_Document_Renderer_HTML_Default::perform_action() ] 0309 $a = new $classname($id); 0310 $this->_action_perf->add_action($a); 0311 } 0312 0313 // perform actions 0314 $this->perform_action(); 0315 0316 0317 // prepare header-templates 0318 $locale = FWS_Props::get()->locale(); 0319 $tpl = FWS_Props::get()->tpl(); 0320 $cfg = FWS_Props::get()->cfg(); * /fws/document/renderer/html/default.php in line 363 [ Method: BS_Front_Renderer_HTML::header() ] 0358 { 0359 $this->before_start(); 0360 0361 // header 0362 if($this->_show_header) 0363 $this->header(); 0364 0365 // content 0366 if($this->_show_content) 0367 { 0368 ob_start(); 0369 $this->content(); * /fws/document.php in line 446 [ Method: FWS_Document_Renderer_HTML_Default::render() ] 0441 0442 if($this->_renderer === null) 0443 FWS_Helper::error('Please specify the renderer that should be used!'); 0444 0445 // render the document 0446 $res = $this->_renderer->render($this); 0447 0448 // send header and return result 0449 $this->_send_header(); 0450 $this->finish(); 0451 0452 // use gzip, if required * /index.php in line 73 [ Method: FWS_Document::render() ] 0068 include_once(BS_PATH.'src/init.php'); 0069 0070 // show the page 0071 $doc = new BS_Front_Document(); 0072 FWS_Props::get()->set_doc($doc); 0073 echo $doc->render(); 0074 ?>
Show BBCode for the error-message (to post somewhere)
Dieser Beitrag wurde insgesamt 2 mal editiert. Das letzte mal 16.11.2010, 20:17 von windows-club.
|
|