全力追查此錯誤。在一段時間後,用戶將編輯的一個節點,有事給看起來像這樣的錯誤:Drupal 7的錯誤將導致PHP最大超時
PHP Fatal error: Maximum execution time of 30 seconds exceeded in somefilestructure/includes/database/mysql/query.inc on line 53, referer: https://abc123.com/node/25806/edit/?destination=admin/content%253Fpage%253D1
這是該行53碼塊:
// If we're selecting from a SelectQuery, finish building the query and
// pass it back, as any remaining options are irrelevant.
if (!empty($this->fromQuery)) {
$insert_fields_string = $insert_fields ? ' (' . implode(', ', $insert_fields) . ') ' : ' ';
return $comments . 'INSERT INTO {' . $this->table . '}' . $insert_fields_string . $this->fromQuery;
}
用戶只需有能力添加內容,上傳圖像文件和編輯當前內容等。沒有什麼瘋狂的。
我不希望我的最大超時,試圖解決此問題,我們需要找到/錯誤是怎麼造成的,解決它。
如果任何人有任何反饋的問題,請讓我知道。
謝謝!
你檢查過Drupal日誌和PHP錯誤日誌嗎?也許他們可以告訴你那裏發生了什麼事。 – MilanG