Column count doesn't match value count at row 1

  • tfab
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
11 Anni 10 Mesi fa #842 da tfab
Hello,

try to migrate the properties from joomla 1.5.26 to joomla 2.5.4. I get this error:

"Column count doesn't match value count at row 1"

There is a new field "required" in the 2.0 version. How can i do the trick?

Greets
Thorsten

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
11 Anni 10 Mesi fa - 11 Anni 10 Mesi fa #843 da andrea_4g
The most reliable procedure is this one:
solidsystem.it/how-to-and-tutorials/149-...es-to-joomla-17.html

Alternately you could add the missing rows manually with a SQL statement; it depends by the CP version you are migrating from:
Code:
// upgrade custom properties to 1.98 ALTER TABLE #__custom_properties DROP KEY `c_f_v`; ALTER TABLE #__custom_properties ADD `ref_table` VARCHAR(100) NOT NULL DEFAULT 'content' AFTER `id`; ALTER TABLE #__custom_properties ADD UNIQUE KEY `t_c_f_v` (`ref_table`,`content_id`,`field_id`,`value_id`); ALTER TABLE #__custom_properties ADD KEY `ref_table` (`ref_table`); // upgrade custom properties fields to 1.98 ALTER TABLE #__custom_properties_values ADD `priority` tinyint(4) NOT NULL DEFAULT '0' AFTER `label`; ALTER TABLE #__custom_properties_values ADD KEY `name` (`name`)"; ALTER TABLE #__custom_properties_values ADD KEY `priority` (`priority`); // upgrade custom properties fields to 1.99 ALTER TABLE #__custom_properties_values ADD `article_id` int(11) DEFAULT NULL; ALTER TABLE #__custom_properties_values ADD KEY `article_id` (`article_id`); // upgrade custom properties fields to 2.00 ALTER TABLE #__custom_properties_fields ADD `required` tinyint(1) NOT NULL default '0' AFTER `published`;

Note: replace '#_' with the correct table prefix.
Ultima Modifica 11 Anni 10 Mesi fa da andrea_4g.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • tfab
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
11 Anni 10 Mesi fa #845 da tfab
Thanks a lot!

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.160 secondi