Страница 4 из 16

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 07 ноя 2012, 11:55
DeaDRoMeO
Лена писал(а):при нажатии на какую-нибудь тему вылазит ошибка " Parse error: syntax error, unexpected '}' /www/домен/cache/tpl_RedSilver_viewforum_body.html.php on line 137 "
Проверяйте правки шаблонов, особенно шаблона viewforum_body.html, где то запороли условия, где то не закрыто условие ))

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 07 ноя 2012, 12:29
Лена
Ну ребенка уложу на ночь спать и попробую все заново поставить :mi_ga_et: . А вот если я правлю свой стиль, мне prosilver точно не трогать? Или в нем тоже надо правки делать?

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 07 ноя 2012, 12:45
DeaDRoMeO
Правки делать надо в том стиле, который используете))

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 10 ноя 2012, 18:16
jasiuk
Поставил этот мод, хотя и не с первой попытки :co_ol:

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 12:17
DeaDRoMeO
Ну у народа он тяжело устанавливается, там много мест где надо быть очень внимательным при установке))

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 12:24
jasiuk
Я его устанавливал часов так 5, там точно надо быть очень внимательным, думал уже кидать когда не получилось, но потом собрался силами и сделал :ku_bok:
Картинки прилипил к левому краб, так вроде ровнее.
Сейчас буду думать как сделать в блоке последних сообщений на субсильвере.
Сделал правки в инклюдес, а вот в темплейте не осилил. Сергей, подскажи, пожалуйста как сделать.

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 12:41
DeaDRoMeO
Нужно скрестить с этим модом ???
Тута есть решение, оно рабочее))

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 12:51
jasiuk
Я уже скачал этот аддон, только не пойму какие правки надо сделать в recent_topics_body.html в субсильвере

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 13:56
DeaDRoMeO
Сложно обьяснить, вот код моего шаблона, поглядите как в нем прописано условие для аватар

Код: Выделить всё

<table class="tablebg" width="100%" cellspacing="0">
		<tr>
			
				<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>

			<th>&nbsp;{L_REPLIES}&nbsp;</th>
			<th>&nbsp;{L_VIEWS}&nbsp;</th>
			<th >&nbsp;{L_LAST_POST}&nbsp;</th>
		</tr>

		<!-- BEGIN recent_topics -->
			<tr>
				<!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->
				
				<td class="row7">
					<!-- IF recent_topics.S_UNREAD_TOPIC --><a href="{recent_topics.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
					{recent_topics.ATTACH_ICON_IMG} <!-- IF recent_topics.S_HAS_POLL or recent_topics.S_TOPIC_MOVED --><b>{recent_topics.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {recent_topics.FIRST_POST_TIME}" href="{recent_topics.U_VIEW_TOPIC}" class="topictitle">{recent_topics.TOPIC_TITLE}</a>  <!-- IF recent_topics.SEO_DESC_TOPIC --><br/><i><strong>{recent_topics.SEO_DESC_TOPIC}</strong></i><!-- ENDIF -->
					<!-- IF recent_topics.S_TOPIC_UNAPPROVED or recent_topics.S_POSTS_UNAPPROVED -->
						<a href="{recent_topics.U_MCP_QUEUE}">{recent_topics.UNAPPROVED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF recent_topics.S_TOPIC_REPORTED -->
						<a href="{recent_topics.U_MCP_REPORT}">{recent_topics.REPORTED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF recent_topics.PAGINATION -->
						<br/>
						<div class="pagination">
			
			
				<a class=" genmed" href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &nbsp;&nbsp;&nbsp;<span>{recent_topics.PAGINATION}</span>
			
		</div>
					<!-- ENDIF -->
					<p class="gensmall">{L_POST_BY_AUTHOR} {recent_topics.TOPIC_AUTHOR_FULL}
					
					<!-- IF recent_topics.U_VIEW_FORUM and recent_topics.FORUM_NAME -->
						&raquo;{L_IN} <!-- BEGIN parent_forums --><a href="{recent_topics.parent_forums.U_VIEW_FORUM}" style="font-weight: bold;">{recent_topics.parent_forums.FORUM_NAME}</a> &raquo; <!-- END parent_forums --><a href="{recent_topics.U_VIEW_FORUM}" style="font-weight: bold;">{recent_topics.FORUM_NAME}</a>
					<!-- ENDIF -->
					</p>
				</td>
				<td class="row7" width="50" align="center"><p class="topicdetails">{recent_topics.REPLIES}</p></td>
				<td class="row7" width="50" align="center"><p class="topicdetails">{recent_topics.VIEWS}</p></td>
			
				<td class="row7" width="140" align="center">
				<table width="100%">
				<tr>
				<!-- IF recent_topics.LAST_POST_AUTHOR_AVATAR --><td class="row7" width="{recent_topics.AVATAR_WIDTH}">{recent_topics.LAST_POST_AUTHOR_AVATAR}</td><!-- ENDIF -->
								<td>
					<p class="topicdetails" style="white-space: nowrap;">{recent_topics.LAST_POST_TIME}</p>
					<p class="topicdetails">{recent_topics.LAST_POST_AUTHOR_FULL}
						<a href="{recent_topics.U_LAST_POST}">{LAST_POST_IMG}</a>
					</p>
					</td>
					</tr>
					</table>
				</td>
			</tr>

		<!-- BEGINELSE -->

			<tr>
				<!-- IF S_TOPIC_ICONS -->
					<td class="row7" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ELSE -->
					<td class="row7" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ENDIF -->
			</tr>
		<!-- END recent_topics -->
		</table>
Само условие показа аватар

Код: Выделить всё

<!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 14:20
jasiuk
ничего не получается, вот мой код, куда надо вставить код? Спасибо за терпение!

Код: Выделить всё

<!-- $Id: recent_topics_body.html 68 2008-01-06 01:03:56Z nickvergessen $ -->
<div id="pagecontent">
	<!-- IF PAGINATION -->
		<table width="100%" cellspacing="1">
		<tr>
			<td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
			<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
		</tr>
		</table>
	<!-- ENDIF -->
	<table class="tablebg" width="100%" cellspacing="1">
		<tr class="nav">
			<td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->6<!-- ELSE -->5<!-- ENDIF -->" valign="middle" align="center">{L_RECENT_TOPICS}</td>
		</tr>
		<tr>
			<!-- IF S_TOPIC_ICONS -->
				<th colspan="3">&nbsp;{L_TOPICS}&nbsp;</th>
			<!-- ELSE -->
				<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>
			<!-- ENDIF -->
			<th>&nbsp;{L_REPLIES}&nbsp;</th>
			<th>&nbsp;{L_VIEWS}&nbsp;</th>
			<th>&nbsp;{L_LAST_POST}&nbsp;</th>
		</tr>
		<!-- BEGIN recenttopicrow -->

			<!-- IF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
				<tr>
					<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
				</tr>
			<!-- ELSEIF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 0 -->
				<tr>
					<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
				</tr>
			<!-- ENDIF -->

			<tr>
				<td class="row1" width="25" align="center">{recenttopicrow.TOPIC_FOLDER_IMG}</td>
				<!-- IF S_TOPIC_ICONS -->
					<td class="row1" width="25" align="center"><!-- IF recenttopicrow.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{recenttopicrow.TOPIC_ICON_IMG}" width="{recenttopicrow.TOPIC_ICON_IMG_WIDTH}" height="{recenttopicrow.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>
				<!-- ENDIF -->
				<td class="row1">
					<!-- IF recenttopicrow.S_UNREAD_TOPIC --><a href="{recenttopicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
					{recenttopicrow.ATTACH_ICON_IMG} <!-- IF recenttopicrow.S_HAS_POLL or recenttopicrow.S_TOPIC_MOVED --><b>{recenttopicrow.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {recenttopicrow.FIRST_POST_TIME}" href="{recenttopicrow.U_VIEW_TOPIC}" class="topictitle">{recenttopicrow.TOPIC_TITLE}</a>
					<!-- IF recenttopicrow.S_TOPIC_UNAPPROVED or recenttopicrow.S_POSTS_UNAPPROVED -->
						<a href="{recenttopicrow.U_MCP_QUEUE}">{recenttopicrow.UNAPPROVED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF recenttopicrow.S_TOPIC_REPORTED -->
						<a href="{recenttopicrow.U_MCP_REPORT}">{REPORTED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF recenttopicrow.PAGINATION -->
						<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {recenttopicrow.PAGINATION} ] </p>
					<!-- ENDIF -->
					<p class="gensmall">{L_POST_BY_AUTHOR} {recenttopicrow.LAST_POST_AUTHOR_FULL}
					{L_POSTED_ON_DATE} {recenttopicrow.LAST_POST_TIME}
					<!-- IF recenttopicrow.U_VIEW_FORUM and recenttopicrow.FORUM_NAME -->
						{L_IN} <a href="{recenttopicrow.U_VIEW_FORUM}" style="font-weight: bold;">{recenttopicrow.FORUM_NAME}</a>
					<!-- ENDIF -->
					</p>
				</td>
				<td class="row1" width="50" align="center"><p class="topicdetails">{recenttopicrow.REPLIES}</p></td>
				<td class="row2" width="50" align="center"><p class="topicdetails">{recenttopicrow.VIEWS}</p></td>
				<td class="row1" width="140" align="center">
					<p class="topicdetails" style="white-space: nowrap;">{recenttopicrow.LAST_POST_TIME}</p>
					<p class="topicdetails">{recenttopicrow.LAST_POST_AUTHOR_FULL}
						<a href="{recenttopicrow.U_LAST_POST}">{LAST_POST_IMG}</a>
					</p>
				</td>
			</tr>

		<!-- BEGINELSE -->

			<tr>
				<!-- IF S_TOPIC_ICONS -->
					<td class="row1" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ELSE -->
					<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ENDIF -->
			</tr>
		<!-- END recenttopicrow -->
		</table>
</div>
<br clear="all" />

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 14:31
Prowhman
Беда. При попытке создания новой категории, или нового форума выдаёт:
Общая ошибка
SQL ERROR [ mysqli ]

Field 'forum_last_poster_avatar' doesn't have a default value [1364]

SQL

INSERT INTO phpbb_forums (parent_id, forum_type, forum_status, forum_parents, forum_name, forum_link, forum_desc, forum_desc_uid, forum_desc_options, forum_desc_bitfield, forum_seo_key, forum_seo_desc, forum_seo_bottom, forum_rules, forum_rules_uid, forum_rules_options, forum_rules_bitfield, forum_rules_link, forum_image, forum_style, display_subforum_list, forum_subforumslist_type, display_on_index, forum_topics_per_page, forum_recent_topics, enable_indexing, enable_icons, enable_prune, prune_days, prune_viewed, prune_freq, forum_pertopic, forum_perpost, forum_peredit, forum_costs, default_display, forum_options, forum_flags, left_id, right_id) VALUES (1, 1, 0, '', 'Basa', '', '', '', 7, '', '', '', '', '', '', 7, '', '', '', 0, 1, 0, 0, 0, 1, 1, 0, 0, 7, 7, 1, 0, 0, 0, 0, 1, 0, 48, '26', 27)

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()

FILE: [ROOT]/includes/acp/acp_forums.php
LINE: 1063
CALL: dbal_mysqli->sql_query()

FILE: [ROOT]/includes/acp/acp_forums.php
LINE: 201
CALL: acp_forums->update_forum_data()

FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: acp_forums->main()

FILE: [ROOT]/adm/index.php
LINE: 74
CALL: p_master->load_active()

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 14:36
Prowhman
После деинсталяции мода заработало

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 14:40
DeaDRoMeO
jasiuk, может так

Код: Выделить всё

<!-- $Id: recent_topics_body.html 68 2008-01-06 01:03:56Z nickvergessen $ -->
<div id="pagecontent">
   <!-- IF PAGINATION -->
      <table width="100%" cellspacing="1">
      <tr>
         <td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
         <td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
      </tr>
      </table>
   <!-- ENDIF -->
   <table class="tablebg" width="100%" cellspacing="1">
      <tr class="nav">
         <td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->6<!-- ELSE -->5<!-- ENDIF -->" valign="middle" align="center">{L_RECENT_TOPICS}</td>
      </tr>
      <tr>
         <!-- IF S_TOPIC_ICONS -->
            <th colspan="4">&nbsp;{L_TOPICS}&nbsp;</th>
         <!-- ELSE -->
            <th colspan="3">&nbsp;{L_TOPICS}&nbsp;</th>
         <!-- ENDIF -->
         <th>&nbsp;{L_REPLIES}&nbsp;</th>
         <th>&nbsp;{L_VIEWS}&nbsp;</th>
         <th>&nbsp;{L_LAST_POST}&nbsp;</th>
      </tr>
      <!-- BEGIN recenttopicrow -->

         <!-- IF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
            <tr>
               <td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->8<!-- ELSE -->7<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
            </tr>
         <!-- ELSEIF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 0 -->
            <tr>
               <td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->8<!-- ELSE -->7<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
            </tr>
         <!-- ENDIF -->

         <tr>
		 <!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->
            <td class="row1" width="25" align="center">{recenttopicrow.TOPIC_FOLDER_IMG}</td>
            <!-- IF S_TOPIC_ICONS -->
               <td class="row1" width="25" align="center"><!-- IF recenttopicrow.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{recenttopicrow.TOPIC_ICON_IMG}" width="{recenttopicrow.TOPIC_ICON_IMG_WIDTH}" height="{recenttopicrow.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>
            <!-- ENDIF -->
            <td class="row1">
               <!-- IF recenttopicrow.S_UNREAD_TOPIC --><a href="{recenttopicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
               {recenttopicrow.ATTACH_ICON_IMG} <!-- IF recenttopicrow.S_HAS_POLL or recenttopicrow.S_TOPIC_MOVED --><b>{recenttopicrow.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {recenttopicrow.FIRST_POST_TIME}" href="{recenttopicrow.U_VIEW_TOPIC}" class="topictitle">{recenttopicrow.TOPIC_TITLE}</a>
               <!-- IF recenttopicrow.S_TOPIC_UNAPPROVED or recenttopicrow.S_POSTS_UNAPPROVED -->
                  <a href="{recenttopicrow.U_MCP_QUEUE}">{recenttopicrow.UNAPPROVED_IMG}</a>&nbsp;
               <!-- ENDIF -->
               <!-- IF recenttopicrow.S_TOPIC_REPORTED -->
                  <a href="{recenttopicrow.U_MCP_REPORT}">{REPORTED_IMG}</a>&nbsp;
               <!-- ENDIF -->
               <!-- IF recenttopicrow.PAGINATION -->
                  <p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {recenttopicrow.PAGINATION} ] </p>
               <!-- ENDIF -->
               <p class="gensmall">{L_POST_BY_AUTHOR} {recenttopicrow.LAST_POST_AUTHOR_FULL}
               {L_POSTED_ON_DATE} {recenttopicrow.LAST_POST_TIME}
               <!-- IF recenttopicrow.U_VIEW_FORUM and recenttopicrow.FORUM_NAME -->
                  {L_IN} <a href="{recenttopicrow.U_VIEW_FORUM}" style="font-weight: bold;">{recenttopicrow.FORUM_NAME}</a>
               <!-- ENDIF -->
               </p>
            </td>
            <td class="row1" width="50" align="center"><p class="topicdetails">{recenttopicrow.REPLIES}</p></td>
            <td class="row2" width="50" align="center"><p class="topicdetails">{recenttopicrow.VIEWS}</p></td>
            <td class="row1" width="140" align="center">
               <p class="topicdetails" style="white-space: nowrap;">{recenttopicrow.LAST_POST_TIME}</p>
               <p class="topicdetails">{recenttopicrow.LAST_POST_AUTHOR_FULL}
                  <a href="{recenttopicrow.U_LAST_POST}">{LAST_POST_IMG}</a>
               </p>
            </td>
         </tr>

      <!-- BEGINELSE -->

         <tr>
            <!-- IF S_TOPIC_ICONS -->
               <td class="row1" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
            <!-- ELSE -->
               <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
            <!-- ENDIF -->
         </tr>
      <!-- END recenttopicrow -->
      </table>
</div>
<br clear="all" />
Prowhman, указанное поле не имеет значения по умолчанию, скрипты-инсталляторы после установки запускали ???

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 14:44
Prowhman
Запускал и мод прекрасно работал, только категории не создавались

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 14:46
DeaDRoMeO
А 2 скрипта запускали ?? Сейчас все нормально ? Мод работает ?

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 14:54
Prowhman
Я запустил скрипт, чтобы деинсталировать модуль и всё заработало. Сейчас опять запустил два установочных скрипты - db_130_update и db_update - модуль установился, но категории снова не создаются о_О

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 16:20
jasiuk
Безымянный.jpg
Сергей, ыот что получилось после изменения файла

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 16:58
DeaDRoMeO
Тогда откатите правки и найдите

Код: Выделить всё

<td class="row1" width="25" align="center">{recenttopicrow.TOPIC_FOLDER_IMG}</td>
Заменить на

Код: Выделить всё

<!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->
Prowhman, значит деинсталируйте опять, раз таким образом у вас работает

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 17:03
Prowhman
Тогда модуль не будет работать) Значит, надо деинсталировать, добавить все нужные разделы и потом опять установить и не париться)

Avatar of poster on Index and Viewforum phpbb3

Добавлено: 11 ноя 2012, 17:11
DeaDRoMeO
Странно вообщем то, с БД работать умеете ?? Может вручную задать значение по умолчанию для этого поля ??