
---
resolved. Woops, nevermind. I confused my own edits with the mod.
Is search supported also ?Imladris wrote:PhpBB3 KB Mod 1.0.2 has been released
Version 1.0.2 of the mod has been released, and is available for download here.
Code: Select all
$data['edit_type'] = check_edit_type($data, $edit_data, $update_message);
Code: Select all
$data['edit_type'] = ($this->mode == 'edit') ? check_edit_type($data, $edit_data, $update_message) : array();
Yes you can search the kb.urednik wrote:Is search supported also ?Imladris wrote:PhpBB3 KB Mod 1.0.2 has been released
Version 1.0.2 of the mod has been released, and is available for download here.
I replace it, but i have errors:Imladris wrote:IMPORTANT PLEASE READ
If you downloaded the files before this post there is a bug in it, causing a PHP notice to appear when posting a new article. To fix it do the following:
Open: includes/kb.php
Find:Replace with:Code: Select all
$data['edit_type'] = check_edit_type($data, $edit_data, $update_message);
Code: Select all
$data['edit_type'] = ($this->mode == 'edit') ? check_edit_type($data, $edit_data, $update_message) : array();
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/kb.php on line 2016: Undefined variable: data
[phpBB Debug] PHP Notice: in file /includes/functions_kb.php on line 621: Undefined variable: old_data
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /home/..../forum/includes/functions.php:3510) in /home/...../forum/includes/functions.php on line 4455
Warning: Cannot modify header information - headers already sent by (output started at /home/....../forum/includes/functions.php:3510) in /home/....../forum/includes/functions.php on line 4457
Warning: Cannot modify header information - headers already sent by (output started at /home/...../forum/includes/functions.php:3510) in /home/......./forum/includes/functions.php on line 4458
Warning: Cannot modify header information - headers already sent by (output started at /home/....../forum/includes/functions.php:3510) in /home/......./forum/includes/functions.php on line 4459
Code: Select all
// application/xhtml+xml not used because of IE
4455 header('Content-type: text/html; charset=UTF-8');
4457 header('Cache-Control: private, no-cache="set-cookie"');
4458 header('Expires: 0');
4459 header('Pragma: no-cache');
But not with the some search engine as for searching forum.Imladris wrote:Yes you can search the kb.urednik wrote:Is search supported also ?Imladris wrote:PhpBB3 KB Mod 1.0.2 has been released
Version 1.0.2 of the mod has been released, and is available for download here.
Code: Select all
SQL ERROR [ mysqli ]
Out of range value adjusted for column 'article_votes' at row 1 [1264]
SQL
UPDATE phpbb_articles SET article_votes = article_votes - 1 WHERE article_id = 4
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()
FILE: includes/kb.php
LINE: 3138
CALL: dbal_mysqli->sql_query()
FILE: includes/kb.php
LINE: 115
CALL: knowledge_base->article_rate()
FILE: kb.php
LINE: 80
CALL: knowledge_base->knowledge_base()
That button shouldn't show unless you have rated the article... so either the button is showing wrongly, or your db didn't update the article_votes count when you rated... did you get any errors while rating? Or is it an old rating you are trying to remove? (Rated before update)irakly wrote:When i clicked on "Remove rating" i got error"
Code: Select all
SQL ERROR [ mysqli ] Out of range value adjusted for column 'article_votes' at row 1 [1264] SQL UPDATE phpbb_articles SET article_votes = article_votes - 1 WHERE article_id = 4 BACKTRACE FILE: includes/db/mysqli.php LINE: 163 CALL: dbal->sql_error() FILE: includes/kb.php LINE: 3138 CALL: dbal_mysqli->sql_query() FILE: includes/kb.php LINE: 115 CALL: knowledge_base->article_rate() FILE: kb.php LINE: 80 CALL: knowledge_base->knowledge_base()
Code: Select all
if($tags != $data['article_old_tags'] || $tags != '')
Code: Select all
if($tags != $article_data['article_old_tags'] || $tags != '')
Code: Select all
'request_id' => (int) $article_data['request_id'],
Code: Select all
'edit_data' => $edit_data,
Code: Select all
if($mode == 'edit' && $data['article_status'] == STATUS_APPROVED && $old_data['article_status'] == STATUS_APPROVED && $data['cat_id'] != $old_data['cat_id'])
Code: Select all
if($mode == 'edit' && $data['article_status'] == STATUS_APPROVED && $data['edit_data']['article_status'] == STATUS_APPROVED && $data['cat_id'] != $data['edit_data']['cat_id'])