Jump to content

Ошибка установки IP.Content любой версии

Featured Replies

Posted
comment_53609

Решил установить себе ип.контент так вот, ставится он.. как будто бы обновляется с версии 1.0.0, хотя я его раньше не ставил. (Ставил Pages, портал).

Потом появляется странное окно настроек..

post-10390-0-20602500-1391177621_thumb.p

 

После него запускается обновление и.. ошибка бд. (при любых настройках)

mySQL query error: INSERT INTO ipb_ccs_page_templates (`template_name`,`template_desc`,`template_key`,`template_content`,`template_updated`,`template_position`,`template_category`,`template_database`) VALUES('Database Display','Generic template to view a record in a custom database','generic_database_view','{ccs special_tag="navigation"}n{parse js_module="rating"}n{parse template="include_lightbox" group="global" params=""} n{parse template="include_highlighter" group="global" params="1"}nnn<php>n    $data['record'] = IPSMember::buildDisplayData( $data['record'] );n</php>n<if test="$data['database']['database_rate']">n    <div class='right'>n        <if test="$this->memberData['member_id']">n            {$data['follow_data']}n        </if>n        <div class='rating ipsType_smaller ipsPad_top_half right clear'>n            <if test="$data['database']['_can_rate']">n                    <a href='#' id='article_rate_1' title='{$this->lang->words['top_js_1star']}'>n            </if>n            <if test="rate1:|:$data['record']['rating_real'] >= 1">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_2' title='{$this->lang->words['top_js_2star']}'>n            </if>n            <if test="rate2:|:$data['record']['rating_real'] >= 2">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_3' title='{$this->lang->words['top_js_3star']}'>n            </if>n            <if test="rate3:|:$data['record']['rating_real'] >= 3">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_4' title='{$this->lang->words['top_js_4star']}'>n            </if>n            <if test="rate4:|:$data['record']['rating_real'] >= 4">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_5' title='{$this->lang->words['top_js_5star']}'>n            </if>n            <if test="rate5:|:$data['record']['rating_real'] >= 5">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a>n                    <script type='text/javascript'>n                                    rating = new ipb.rating( 'article_rate_', { n                                                                            url: ipb.vars['base_url'] + 'app=ccs&module=ajax§ion=rate&id={$data['database']['database_id']}&record={$data['record']['primary_id_field']}&md5check=' + ipb.vars['secure_hash'],n                                                                            cur_rating: <if test="isset($data['record']['rating_real'])">{$data['record']['rating_real']}<else />0</if>,n                                                                            rated: null,n                                                                            allow_rate: <if test="$data['database']['_can_rate']">1<else />0</if>,n                                                                            show_rate_text: falsen                                                                      } );n                    </script>n            </if>n        </div>n    </div>n<else />n    <if test="$this->memberData['member_id']">n        {$data['follow_data']}n    </if>n</if>n{parse template="userSmallPhoto" group="global" params="array_merge( $data['record'], array( '_customClass' => 'ipsUserPhoto_medium' ) )"}n<div class='ipsBox_withphoto'>n    <h1 class='ipsType_pagetitle'>n    <if test="$data['record']['record_approved'] == 0">n        <span class='ipsBadge ipsBadge_orange'>{$this->lang->words['f_queued_badge']}</span>n    <else />n        <if test="$data['record']['record_approved'] == -1">n            <span class='ipsBadge ipsBadge_orange'>{$this->lang->words['f_deleted_badge']}</span>n        </if>n    </if>n    {$data['record'][$data['database']['database_field_title'] . '_value' ]}n    </h1>nn    <div class='desc lighter blend_links'>n        {$this->lang->words['submitted_record']} {parse template="userHoverCard" group="global" params="$data['record']"}, {parse date="$data['record']['record_saved']" format="SHORT"} | {$this->lang->words['last_updated_record']} {parse date="$data['record']['record_updated']" format="SHORT"}n    </div>n    <if test="hasTags:|:is_array($data['record']['tags'])">n        {$data['record']['tags']['formatted']['parsedWithoutComma']}n    </if>n</div>n<br />nn<div class="ipsBox">n    <div class="ipsBox_container ipsPad ipsType_textblock">n        {$data['record'][$data['database']['database_field_content'] . '_value' ]}n        {parse template="repButtons" group="global_other" params="$data['record'], array_merge( array( 'primaryId' => $data['record']['primary_id_field'], 'domLikeStripId' => 'like_post_' . $data['record']['primary_id_field'], 'domCountId' => 'rep_post_' . $data['record']['primary_id_field'], 'app' => 'ccs', 'type' => 'record_id_' . $data['database']['database_id'], 'likeFormatted' => $data['record']['like']['formatted'] ), $data['record'] )"}n        <br />n        n        <foreach loop="$data['fields'] as $field">n            <if test="$field['field_type'] == 'attachments'">n                <div id='attach_wrap' class='rounded clearfix'>n                    <h4>{$field['field_name']}</h4>n                    <br />n                    {$data['record']['field_' . $field['field_id'] . '_value']}n                    <br /><br />n                </div>n            </if>n        </foreach>n        n        <table class='ipb_table'>n            <if test="count($data['fields'])">n                <foreach loop="$data['fields'] as $field">n                    <if test="'field_'.$field['field_id'] != $data['database']['database_field_title'] and 'field_'.$field['field_id'] != $data['database']['database_field_content'] and $field['field_type'] != 'attachments'">n                        <tr>n                            <td style='width: 20%; font-weight: bold; text-align: right; vertical-align: top;'>{$field['field_name']}:</td>n                            <td>{$data['record']['field_' . $field['field_id'] . '_value']}</td>n                        </tr>n                    </if>n                </foreach>n            <else />n                <tr>n                    <td style='text-align: center;'><em>{$this->lang->words['record_not_found']}</em></td>n                </tr>n            </if>n        </table>n    </div>n</div>nn<div class='ipsPad'>n    <if test="$this->settings['sl_enable']">n        <div style='float: left'>n            {parse template="facebookLike" group="ccs_global" params="$data['record']['record_link']"}n            {IPSLib::shareLinks( $data['record'][ $data['database']['database_field_title'] . '_value' ], array( 'overrideApp' => 'ccs' ) )}n        </div>n    </if>n    <if test="$this->memberData['member_id']">n        <div style='float: right'>n            <ul class='post_controls'>n                <if test="$data['database']['_can_edit']">n                    <li><a href='{$data['record']['record_link']}do=edit' title='{$this->lang->words['edit_record_button']}' accesskey='s'>{$this->lang->words['edit_record_button']}</a></li>n                <else />n                    <li class='disabled'><span>{$this->lang->words['edit_record_button_no']}</span></li>n                </if>n                                n                <if test="$data['record']['record_locked'] AND $data['database']['moderate_unlock']">n                    <li><a href='{$data['record']['record_link']}do=unlock&secure_key={$this->member->form_hash}' title='{$this->lang->words['unlock_record']}' accesskey='l'>{$this->lang->words['unlock_record']}</a></li>n                <else />n                    <if test="!$data['record']['record_locked'] AND $data['database']['moderate_lock']">n                        <li><a href='{$data['record']['record_link']}do=lock&secure_key={$this->member->form_hash}' title='{$this->lang->words['lock_record']}' accesskey='l'>{$this->lang->words['lock_record']}</a></li>n                    </if>n                </if>n                n                <if test="$data['database']['moderate_pin']">n                    <if test="$data['record']['record_pinned']">n                        <li><a href='{$data['record']['record_link']}do=unpin&secure_key={$this->member->form_hash}' title='{$this->lang->words['unpin_record']}'>{$this->lang->words['unpin_record']}</a></li>n                    <else />n                        <li><a href='{$data['record']['record_link']}do=pin&secure_key={$this->member->form_hash}' title='{$this->lang->words['pin_record']}'>{$this->lang->words['pin_record']}</a></li>n                    </if>n                </if>n                n                <if test="$data['database']['moderate_approve']">n                    <if test="$data['record']['record_approved'] == 0">n                        <li><a href='{$data['record']['record_link']}do=approve&secure_key={$this->member->form_hash}' title='{$this->lang->words['approve_record']}'>{$this->lang->words['approve_record']}</a></li>n                    </if>n                </if>n                    n                <if test="$data['database']['moderate_delete']">n                    <li><a href='{$data['record']['record_link']}do=delete' title='{$this->lang->words['delete_record']}'>{$this->lang->words['delete_record']}</a></li>nn                    <if test="$data['record']['record_approved'] == 1">n                        <li><a href='{$data['record']['record_link']}do=unapprove&secure_key={$this->member->form_hash}' title='{$this->lang->words['unapprove_record']}'>{$this->lang->words['unapprove_record']}</a></li>n                    <else />n                        <if test="$data['record']['record_approved'] == -1">n                            <li><a href='{$data['record']['record_link']}do=approve&secure_key={$this->member->form_hash}' title='{$this->lang->words['unhide_record']}'>{$this->lang->words['unhide_record']}</a></li>n                        </if>n                    </if>n                </if>nn                <if test="$data['database']['moderate_restorer'] AND $data['database']['database_revisions']">n                    <li><a href='{$data['record']['record_link']}do=revisions' title='{$this->lang->words['record_revisions']}' class='right'>{$this->lang->words['record_revisions']}</a></li>n                </if>nn                <if test="$data['database']['_can_report']">n                    <li class='report'>n                        <a href='{parse url="app=core&module=reports&rcom=ccs&database={$data['database']['database_id']}&record={$data['record']['primary_id_field']}" base="public"}'>{$this->lang->words['report_record']}</a>n                    </li>n                </if>n            </ul>n        </div>n    </if>n</div>nn<br /><br />nn<if test="$data['database']['database_comments']">n<div id='commentsStart' class='ipsBox'>n    <div class='ipsBox_container ipsPad'>n        <h2 class='ipsType_subtitle'>{$data['comments']['count']} {$this->lang->words['comment_block']}</h2>n        <div class='comment_wrap'>n            {$data['comments']['html']}n        </div>n    </div>n</div>n<br />n</if>',1391177808,3,33,3)

SQL error: Duplicate entry 'generic_database_view' for key 'template_key'
SQL error code: 1062
Date: Friday 31st January 2014 02:16:48 PM


 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Date: Fri, 31 Jan 2014 14:16:48 +0000
 Error: 1062 - Duplicate entry 'generic_database_view' for key 'template_key'
 IP Address: 173.245.53.231 - /admin/upgrade/index.php?app=upgrade&s=c3d77ec5193bb3b651eca42d686ab7ca§ion=upgrade&do=appclass
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 mySQL query error: INSERT INTO ipb_ccs_page_templates (`template_name`,`template_desc`,`template_key`,`template_content`,`template_updated`,`template_position`,`template_category`,`template_database`) VALUES('Database Display','Generic template to view a record in a custom database','generic_database_view','{ccs special_tag="navigation"}n{parse js_module="rating"}n{parse template="include_lightbox" group="global" params=""} n{parse template="include_highlighter" group="global" params="1"}nnn<php>n    $data['record'] = IPSMember::buildDisplayData( $data['record'] );n</php>n<if test="$data['database']['database_rate']">n    <div class='right'>n        <if test="$this->memberData['member_id']">n            {$data['follow_data']}n        </if>n        <div class='rating ipsType_smaller ipsPad_top_half right clear'>n            <if test="$data['database']['_can_rate']">n                    <a href='#' id='article_rate_1' title='{$this->lang->words['top_js_1star']}'>n            </if>n            <if test="rate1:|:$data['record']['rating_real'] >= 1">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_2' title='{$this->lang->words['top_js_2star']}'>n            </if>n            <if test="rate2:|:$data['record']['rating_real'] >= 2">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_3' title='{$this->lang->words['top_js_3star']}'>n            </if>n            <if test="rate3:|:$data['record']['rating_real'] >= 3">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_4' title='{$this->lang->words['top_js_4star']}'>n            </if>n            <if test="rate4:|:$data['record']['rating_real'] >= 4">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a><a href='#' id='article_rate_5' title='{$this->lang->words['top_js_5star']}'>n            </if>n            <if test="rate5:|:$data['record']['rating_real'] >= 5">n                    {parse replacement="rate_on"}n            <else />n                    {parse replacement="rate_off"}n            </if>n            <if test="$data['database']['_can_rate']">n                    </a>n                    <script type='text/javascript'>n                                    rating = new ipb.rating( 'article_rate_', { n                                                                            url: ipb.vars['base_url'] + 'app=ccs&module=ajax§ion=rate&id={$data['database']['database_id']}&record={$data['record']['primary_id_field']}&md5check=' + ipb.vars['secure_hash'],n                                                                            cur_rating: <if test="isset($data['record']['rating_real'])">{$data['record']['rating_real']}<else />0</if>,n                                                                            rated: null,n                                                                            allow_rate: <if test="$data['database']['_can_rate']">1<else />0</if>,n                                                                            show_rate_text: falsen                                                                      } );n                    </script>n            </if>n        </div>n    </div>n<else />n    <if test="$this->memberData['member_id']">n        {$data['follow_data']}n    </if>n</if>n{parse template="userSmallPhoto" group="global" params="array_merge( $data['record'], array( '_customClass' => 'ipsUserPhoto_medium' ) )"}n<div class='ipsBox_withphoto'>n    <h1 class='ipsType_pagetitle'>n    <if test="$data['record']['record_approved'] == 0">n        <span class='ipsBadge ipsBadge_orange'>{$this->lang->words['f_queued_badge']}</span>n    <else />n        <if test="$data['record']['record_approved'] == -1">n            <span class='ipsBadge ipsBadge_orange'>{$this->lang->words['f_deleted_badge']}</span>n        </if>n    </if>n    {$data['record'][$data['database']['database_field_title'] . '_value' ]}n    </h1>nn    <div class='desc lighter blend_links'>n        {$this->lang->words['submitted_record']} {parse template="userHoverCard" group="global" params="$data['record']"}, {parse date="$data['record']['record_saved']" format="SHORT"} | {$this->lang->words['last_updated_record']} {parse date="$data['record']['record_updated']" format="SHORT"}n    </div>n    <if test="hasTags:|:is_array($data['record']['tags'])">n        {$data['record']['tags']['formatted']['parsedWithoutComma']}n    </if>n</div>n<br />nn<div class="ipsBox">n    <div class="ipsBox_container ipsPad ipsType_textblock">n        {$data['record'][$data['database']['database_field_content'] . '_value' ]}n        {parse template="repButtons" group="global_other" params="$data['record'], array_merge( array( 'primaryId' => $data['record']['primary_id_field'], 'domLikeStripId' => 'like_post_' . $data['record']['primary_id_field'], 'domCountId' => 'rep_post_' . $data['record']['primary_id_field'], 'app' => 'ccs', 'type' => 'record_id_' . $data['database']['database_id'], 'likeFormatted' => $data['record']['like']['formatted'] ), $data['record'] )"}n        <br />n        n        <foreach loop="$data['fields'] as $field">n            <if test="$field['field_type'] == 'attachments'">n                <div id='attach_wrap' class='rounded clearfix'>n                    <h4>{$field['field_name']}</h4>n                    <br />n                    {$data['record']['field_' . $field['field_id'] . '_value']}n                    <br /><br />n                </div>n            </if>n        </foreach>n        n        <table class='ipb_table'>n            <if test="count($data['fields'])">n                <foreach loop="$data['fields'] as $field">n                    <if test="'field_'.$field['field_id'] != $data['database']['database_field_title'] and 'field_'.$field['field_id'] != $data['database']['database_field_content'] and $field['field_type'] != 'attachments'">n                        <tr>n                            <td style='width: 20%; font-weight: bold; text-align: right; vertical-align: top;'>{$field['field_name']}:</td>n                            <td>{$data['record']['field_' . $field['field_id'] . '_value']}</td>n                        </tr>n                    </if>n                </foreach>n            <else />n                <tr>n                    <td style='text-align: center;'><em>{$this->lang->words['record_not_found']}</em></td>n                </tr>n            </if>n        </table>n    </div>n</div>nn<div class='ipsPad'>n    <if test="$this->settings['sl_enable']">n        <div style='float: left'>n            {parse template="facebookLike" group="ccs_global" params="$data['record']['record_link']"}n            {IPSLib::shareLinks( $data['record'][ $data['database']['database_field_title'] . '_value' ], array( 'overrideApp' => 'ccs' ) )}n        </div>n    </if>n    <if test="$this->memberData['member_id']">n        <div style='float: right'>n            <ul class='post_controls'>n                <if test="$data['database']['_can_edit']">n                    <li><a href='{$data['record']['record_link']}do=edit' title='{$this->lang->words['edit_record_button']}' accesskey='s'>{$this->lang->words['edit_record_button']}</a></li>n                <else />n                    <li class='disabled'><span>{$this->lang->words['edit_record_button_no']}</span></li>n                </if>n                                n                <if test="$data['record']['record_locked'] AND $data['database']['moderate_unlock']">n                    <li><a href='{$data['record']['record_link']}do=unlock&secure_key={$this->member->form_hash}' title='{$this->lang->words['unlock_record']}' accesskey='l'>{$this->lang->words['unlock_record']}</a></li>n                <else />n                    <if test="!$data['record']['record_locked'] AND $data['database']['moderate_lock']">n                        <li><a href='{$data['record']['record_link']}do=lock&secure_key={$this->member->form_hash}' title='{$this->lang->words['lock_record']}' accesskey='l'>{$this->lang->words['lock_record']}</a></li>n                    </if>n                </if>n                n                <if test="$data['database']['moderate_pin']">n                    <if test="$data['record']['record_pinned']">n                        <li><a href='{$data['record']['record_link']}do=unpin&secure_key={$this->member->form_hash}' title='{$this->lang->words['unpin_record']}'>{$this->lang->words['unpin_record']}</a></li>n                    <else />n                        <li><a href='{$data['record']['record_link']}do=pin&secure_key={$this->member->form_hash}' title='{$this->lang->words['pin_record']}'>{$this->lang->words['pin_record']}</a></li>n                    </if>n                </if>n                n                <if test="$data['database']['moderate_approve']">n                    <if test="$data['record']['record_approved'] == 0">n                        <li><a href='{$data['record']['record_link']}do=approve&secure_key={$this->member->form_hash}' title='{$this->lang->words['approve_record']}'>{$this->lang->words['approve_record']}</a></li>n                    </if>n                </if>n                    n                <if test="$data['database']['moderate_delete']">n                    <li><a href='{$data['record']['record_link']}do=delete' title='{$this->lang->words['delete_record']}'>{$this->lang->words['delete_record']}</a></li>nn                    <if test="$data['record']['record_approved'] == 1">n                        <li><a href='{$data['record']['record_link']}do=unapprove&secure_key={$this->member->form_hash}' title='{$this->lang->words['unapprove_record']}'>{$this->lang->words['unapprove_record']}</a></li>n                    <else />n                        <if test="$data['record']['record_approved'] == -1">n                            <li><a href='{$data['record']['record_link']}do=approve&secure_key={$this->member->form_hash}' title='{$this->lang->words['unhide_record']}'>{$this->lang->words['unhide_record']}</a></li>n                        </if>n                    </if>n                </if>nn                <if test="$data['database']['moderate_restorer'] AND $data['database']['database_revisions']">n                    <li><a href='{$data['record']['record_link']}do=revisions' title='{$this->lang->words['record_revisions']}' class='right'>{$this->lang->words['record_revisions']}</a></li>n                </if>nn                <if test="$data['database']['_can_report']">n                    <li class='report'>n                        <a href='{parse url="app=core&module=reports&rcom=ccs&database={$data['database']['database_id']}&record={$data['record']['primary_id_field']}" base="public"}'>{$this->lang->words['report_record']}</a>n                    </li>n                </if>n            </ul>n        </div>n    </if>n</div>nn<br /><br />nn<if test="$data['database']['database_comments']">n<div id='commentsStart' class='ipsBox'>n    <div class='ipsBox_container ipsPad'>n        <h2 class='ipsType_subtitle'>{$data['comments']['count']} {$this->lang->words['comment_block']}</h2>n        <div class='comment_wrap'>n            {$data['comments']['html']}n        </div>n    </div>n</div>n<br />n</if>',1391177808,3,33,3)
 .--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
 | File                                                                       | Function                                                                      | Line No.          |
 |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------|
 | admin/applications_addon/ips/ccs/setup/versions/upg_11000/version_upgrade.php| [db_main_mysql].insert                                                        | 94                |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
 | admin/applications_addon/ips/ccs/setup/versions/upg_11000/version_upgrade.php| [version_upgrade]._importDbStuff                                              | 44                |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
 | admin/setup/applications/upgrade/sections/upgrade.php                      | [version_upgrade].doExecute                                                   | 403               |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
 | admin/setup/applications/upgrade/sections/upgrade.php                      | [upgrade_upgrade].install_appclass                                            | 148               |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
 | admin/setup/sources/base/ipsController_setup.php                           | [upgrade_upgrade].doExecute                                                   | 258               |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'

Не могу понять, что за бред? Что мешает?
Мне очень нужен этот контент...

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.