Forums / General Questions / A strange situation adding entries to configuration table using different charset

A strange situation adding entries to configuration table using different charset

Locked

Views: 1,176

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 Aug 2009, 3:42 PM
#1
g_nencini avatar

g_nencini

Zen Follower

Join Date:
Mar 2006
Location:
Florence, Italy
Posts:
153
Plugin Contributions:
0

A strange situation adding entries to configuration table using different charset

I need to add some records to the TABLE configuration, ad since the 'configuration_id' field is auto_increment, I've written a sql patch like:

INSERT INTO configuration (configuration_id,configuration_title, configuration_key,
configuration_value, configuration_description, configuration_group_id,
sort_order, last_modified, date_added, use_function, set_function)

VALUES ('',
'Visualizza Nome Box Options 1',
'PRODUCT_ALL_LIST_BOX_OPTIONS_1',
'2302',
'Vuoi visualizzare il Nome del Box Options 1 ?<br /><br />0= off<br />1° carattere Sinistra o Destra<br />2° e 3° carattere Ordine Elencazione<br />4° carattere numero di interruzioni dopo<br />',
'23',
'6',
NULL,
now(),
NULL,
NULL);

The patch is accepted and works well (I see the new option in admin->configure->all listing).

The strange thing is that if I export the database with phpMyAdmin I don't see the new record and the configuration_key PRODUCT_ALL_LIST_BOX_OPTIONS_1 is nowhere present.

Note that I've also updated the TABLE product_type_layout, and the new record is present, and so it seems to happen only for the TABLE 'configuration', and I'd like to see the new records!!!

What can I do? - Thanks - Giovanni

16 Aug 2009, 9:18 AM
#2
g_nencini avatar

g_nencini

Zen Follower

Join Date:
Mar 2006
Location:
Florence, Italy
Posts:
153
Plugin Contributions:
0

Re: A strange situation adding entries to configuration table using different charset

ATTENTION: the problem is in phpMyAdmin that is not able "to export" the new records in the configuration table, and so also isn't able to import them.

Looking at the configuration table inside the phpMyAdmin the records are present but are not exported!

Need help from a guru that know well phpMyAdmin !!!!!!

This is important for my add-on that add entries in the configuration table.

Giovanni

16 Aug 2009, 6:31 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: A strange situation adding entries to configuration table using different charset

g.nencini:

1° carattere Sinistra o Destra<br />2° e 3° carattere Ordine Elencazione<br />4° carattere
I'm just guessing that maybe your phpMyAdmin and/or browser are not happy with the ° symbols in those database records. If you remove those symbols, I'm guessing the export will work fine.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Aug 2009, 3:57 AM
#4
g_nencini avatar

g_nencini

Zen Follower

Join Date:
Mar 2006
Location:
Florence, Italy
Posts:
153
Plugin Contributions:
0

Re: A strange situation adding entries to configuration table using different charset

Thanks DrByte, but I'm afraid that is not here the problem:

    • also the nex entry is not exported

      ('',
      'Lunghezza del Nome in Box Options 1',
      'MAX_DISPLAY_BOX_OPTIONS_1_NAME_LEN',
      '15',
      'Usato nel Box Options 1; lunghezza massima del nome opzione da visualizzare. I nomi più lunghi saranno troncati.',
      '3',
      '8',
      NULL,
      now(),
      NULL,
      NULL);

    • also the entries created by stock_by_attributes_4-7ajax and dynamic_drop_downs_for_stock_by_attributes are not exported.

Giovanni

17 Aug 2009, 11:52 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: A strange situation adding entries to configuration table using different charset

Something is wrong with your tools then. Or maybe you've got some language/translation problems in your browser? Or maybe you're looking at the wrong database.
I have no problem exporting all the entries.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2009, 3:07 PM
#6
g_nencini avatar

g_nencini

Zen Follower

Join Date:
Mar 2006
Location:
Florence, Italy
Posts:
153
Plugin Contributions:
0

Re: A strange situation adding entries to configuration table using different charset

Well, it seems really to depend in setting the characters of phpMyAdim, and trying to to export and import with various setting I've made a very big confusion!!!
The original (that don't woks well) was utf8_general_ci, and changing this, phpMyAdmin seem to try to create a new database....
Can you suggest me a good setting (for import and export)?
Thanks - Giovanni

22 Aug 2009, 4:53 AM
#7
g_nencini avatar

g_nencini

Zen Follower

Join Date:
Mar 2006
Location:
Florence, Italy
Posts:
153
Plugin Contributions:
0

Re: A strange situation adding entries to configuration table using different charset

Where I live there's a VERY slow connection, and exporting the database with none compression there arise errors, often not the same!
Exporting with .zip compression all is going well.

Thanks however - Giovanni