<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Ошибка при добавлении темы в форуме</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 14:44:51 -0000</pubDate>

		<item>
			<title>Виктор</title>
			<description><![CDATA[<p>Ошибка при добавлении темы в форуме,  получаю следующее:</p>

<pre class="brush:sql;gutter:false;toolbar:false;">
Warning
Fatal error.

2020-08-29 05:50

SQL error 22001: String data, right truncated: 1406 Data too long for column 'ft_preview' at row 1

#0  cot_diefatal(SQL error 22001: String data, right truncated: 1406 Data too long for column 'ft_preview' at row 1) called at [.../system/database.php:459]
#1  CotDB-&gt;insert(gbg_forum_topics, Array ([ft_title] =&gt; title,[ft_desc] =&gt;desc.,[ft_mode] =&gt; 0,[ft_preview] =&gt; 

1. правила тест


Данные правила действительны для всего форума, если иное не оговорено отдельно. Незнание этих и
,[ft_state] =&gt; 0,[ft_sticky] =&gt; 0,[ft_cat] =&gt; general,[ft_creationdate] =&gt; 1598680257,[ft_updated] =&gt; 1598680257,[ft_postcount] =&gt; 1,[ft_viewcount] =&gt; 0,[ft_firstposterid] =&gt; 1,[ft_firstpostername] =&gt; admin,[ft_lastposterid] =&gt; 1,[ft_lastpostername] =&gt; admin)) called at [.../modules/forums/inc/forums.newtopic.php:105]
#2  include(../modules/forums/inc/forums.newtopic.php) called at [/.../modules/forums/forums.php:35]
#3  require_once(.../modules/forums/forums.php) called at [.../index.php:176]</pre>

<p> </p>

<div class="group">
<p>Версия PHP: 7.3.16</p>
</div>

<p class="updated"><strong>Додано 12 хвилин потому:</strong></p>

<p>modules\forums\inc\forums.newtopic.php str 57:</p>

<p>$rtopic['ft_preview'] = cot_string_truncate($rmsg['fp_text'], 120);</p>

<p>ft_preview varchar(128) utf8_unicode_ci</p>

<p>выходит что функция cot_string_truncate дает строку больше 128? почему?</p>
<p class="updated"><strong>Додано 1 година потому:</strong></p><p><strong>upd: </strong>/ Конфигурация / Настройки сайта - Настройки парсера, возможно ошибка  возникла из за не включено с None на htm</p>
]]></description>
			<pubDate>Sat, 29 Aug 2020 06:20:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=9020&d=0#post45064]]></link>
		</item>
	</channel>
</rss>