Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Florence, Italy
    Posts
    153
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Mar 2006
    Location
    Florence, Italy
    Posts
    153
    Plugin Contributions
    0

    Default Re: A strange situation adding entries to configuration table

    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

  3. #3
    Join Date
    Jan 2004
    Posts
    58,460
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: A strange situation adding entries to configuration table

    Quote Originally Posted by g.nencini View Post
    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!
    Donations always welcome: www.zen-cart.com/donate

    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.

  4. #4
    Join Date
    Mar 2006
    Location
    Florence, Italy
    Posts
    153
    Plugin Contributions
    0

    Default Re: A strange situation adding entries to configuration table

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

    1) - 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&ugrave; lunghi saranno troncati.',
    '3',
    '8',
    NULL,
    now(),
    NULL,
    NULL);

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

    Giovanni

  5. #5
    Join Date
    Jan 2004
    Posts
    58,460
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: A strange situation adding entries to configuration table

    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!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #6
    Join Date
    Mar 2006
    Location
    Florence, Italy
    Posts
    153
    Plugin Contributions
    0

    Default Re: A strange situation adding entries to configuration table

    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

  7. #7
    Join Date
    Mar 2006
    Location
    Florence, Italy
    Posts
    153
    Plugin Contributions
    0

    Default Re: A strange situation adding entries to configuration table

    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

 

 

Similar Threads

  1. Adding to SQL configuration table
    By srturner47 in forum General Questions
    Replies: 0
    Last Post: 6 May 2008, 02:45 AM
  2. adding charset to meta tag
    By usernamenone in forum Basic Configuration
    Replies: 5
    Last Post: 13 Jan 2007, 08:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •