Project

General

Profile

Actions

Bug #59349

closed

Update Reference Index failed by SQL errors (INSERT INTO sys_refindex )

Added by Johannes C. Laxander over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-06-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I'll update a website from 4.7.17 to 6.2.3. By updating the reference Index I get this errors:

76054 records from 57 tables were checked/updated.
Record backend_layout:1 had 1 added indexes and 0 deleted indexes
Record backend_layout:3 had 1 added indexes and 0 deleted indexes
Record tx_news_domain_model_media:1 had 1 added indexes and 0 deleted indexes ...
Record tx_news_domain_model_file:1 had 1 added indexes and 0 deleted indexes ...
Record tx_gridelements_backend_layout:1 had 1 added indexes and 0 deleted indexes ...

As a result of this I have set debugSQL to true and get these SQL errors:

INSERT INTO sys_refindex (tablename,recuid,field,flexpointer,softref_key,softref_id,sorting,deleted,workspace,ref_table,ref_uid,ref_string,hash) VALUES ('tx_news_domain_model_media','119','image','','','','0','0','0',NULL,NULL,'','238eecf9c5c65e14bb7bbbb39f1ba839')
debug_backtrace require(.2.3/typo3/sysext/lowlevel/dbint/index.php),.2.3/typo3/mod.php#45 // TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView->main#39 // TYPO3\CMS\Lowlevel\View\DatabaseIntegrityView->func_refindex#221 // TYPO3\CMS\Core\Database\ReferenceIndex->updateIndex#318 // TYPO3\CMS\Core\Database\ReferenceIndex->updateRefIndexTable#958 // TYPO3\CMS\Core\Database\DatabaseConnection->exec_INSERTquery#143 // TYPO3\CMS\Core\Database\DatabaseConnection->debug#215

OR

INSERT INTO sys_refindex (tablename,recuid,field,flexpointer,softref_key,softref_id,sorting,deleted,workspace,ref_table,ref_uid,ref_string,hash) VALUES ('tx_gridelements_backend_layout','15','icon','','','','0','0','0',NULL,NULL,'','903729ceee40d48661c4b5ce1f3e8e82')

These records are in affect to the 'image' or 'icon' field with 'group' configuration:

'image' => array(
    'exclude' => 0,
    'l10n_mode' => 'copy',
    'label' => $ll . 'tx_news_domain_model_media.media',
    'config' => array(
        'type' => 'group',
        'internal_type' => 'file',
        'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
        'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
        'uploadfolder' => 'uploads/tx_news',
        'show_thumbs' => 1,
        'size' => 1,
        'minitems' => 1,
        'maxitems' => 1,
    )
),

'icon' => array(
    'exclude' => 1,
    'label' =>
'LLL:EXT:gridelements/Resources/Private/Language/locallang_db.xml:tx_gridelements_backend_layout.icon',
    'config' => array(
        'type' => 'group',
        'internal_type' => 'file',
        'allowed' => 'jpg,gif,png',
        'uploadfolder' => 'uploads/tx_gridelements',
        'show_thumbs' => 1,
        'size' => 5,
        'minitems' => 0,
        'maxitems' => 2,
    )
),

Files

Dokument-0.pdf (83.3 KB) Dokument-0.pdf Update Reference Index - Vorgehensweise und Erkenntnisse Johannes C. Laxander, 2014-08-15 19:10
Dokument-1.pdf (83.5 KB) Dokument-1.pdf sys_refindex für ausgewählten Datensatz unter 4.7.19 vor Umstellung Johannes C. Laxander, 2014-08-15 19:10
Dokument-2.pdf (88.4 KB) Dokument-2.pdf sys_refindex für Tabelle 'tx_news_domain_model_file' vor Referenz Index Update unter 6.2.4 Johannes C. Laxander, 2014-08-15 19:10
Dokument-3.pdf (202 KB) Dokument-3.pdf Ergebnis Referenz Index CHECK unter TYPO3 6.2.4 Johannes C. Laxander, 2014-08-15 19:10
Dokument-4.pdf (286 KB) Dokument-4.pdf Referenz Index UPDATE - Alle SQL INSERT Error Johannes C. Laxander, 2014-08-15 19:10
Dokument-5.pdf (162 KB) Dokument-5.pdf Ergebnis Referenz Index CHECK vor Upgrade Wizard (Extra Test) Johannes C. Laxander, 2014-08-15 19:10
Dokument-6.pdf (61 KB) Dokument-6.pdf sys_refindex - Keine deleted records nach vor Check (Extra Test) Johannes C. Laxander, 2014-08-15 19:10
screenshot-01.pdf (44.5 KB) screenshot-01.pdf Upgrade Wizard - Migrate all file links of RTE enabled fields to FAL Johannes C. Laxander, 2014-08-16 17:45
screenshot-02.pdf (97.4 KB) screenshot-02.pdf Update failed Johannes C. Laxander, 2014-08-16 17:45
Update failed - Migrate all file links of RTE-enabled fields to FAL .txt (3.23 KB) Update failed - Migrate all file links of RTE-enabled fields to FAL .txt Johannes C. Laxander, 2014-08-16 17:47
screenshot-03.pdf (102 KB) screenshot-03.pdf DB Check: records with uids specified in error messages Johannes C. Laxander, 2014-08-17 13:29
DB-Check-uids-in-error messages.pdf (199 KB) DB-Check-uids-in-error messages.pdf Shows the bodytext field of the checked records Johannes C. Laxander, 2014-08-17 13:29

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #64253: Fix incorrect calculation of file references in workspacesClosed2015-01-13

Actions
Actions

Also available in: Atom PDF