Hi all,

doing the following causes theme issues with i18n multilingual variables.

(1) clean install drupal 6.13
(2) Add multilingual variables to your setting files: add the first code block on http://drupal.org/node/313272
(3) Install, enable i18n 6.x-1.1 (*or* HEAD from Sept 4, 2009)
(4) Go to admin/build/menu-customize/primary-links
(5) If your warnings are enabled you will see "warning: array_merge() [function.array-merge]: Argument #2 is not an array in /your/site/path/includes/theme.inc on line 930."
(6) Remove the theme variables as ('theme_settings',
'theme_garland_settings',) discussed in http://drupal.org/node/538954
(7) Refresh the page admin/build/menu-customize/primary-links and the error goes away.
(8) Add item to primary menu: path name Home.
(9) **unexpected behavior** Notice that the primary links menu *does not appear* on the theme, even though the primary links box is checked in admin/build/themes/settings/garland
(10) disable the i18n module, and the prim links appear
(11) uninstall the i18n module
(12) reenable item
(13) **unexpected behavior** Again, the primary links menu *does not appear*
(14) put back the variables removed in step (6): ('theme_settings',
'theme_garland_settings',)
(15) go to admin/build/themes/settings/garland
(16) **unexpected behavior** notice that all settings are now set to false.
(17) enable admin/build/themes/settings/garland
(18) **unexpected behavior (tested with HEAD Sept. 4, 2009)** you will get the error warning: array_merge() [function.array-merge]: Argument #2 is not an array in path/to/drupal/garland-prim-link/includes/theme.inc on line 930.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':11:s:9:"site_name";s:9:"localhost";s:11:"site_slogan";s:0:"";s:12:"site_mission' at line 1 query: UPDATE a:11:s:9:"site_name";s:9:"localhost";s:11:"site_slogan";s:0:"";s:12:"site_mission";s:0:"";s:11:"site_footer";s:0:"";s:9:"anonymous";s:0:"";s:14:"site_frontpage";s:0:"";s:25:"menu_primary_links_source";s:0:"";s:27:"menu_secondary_links_source";s:0:"";s:24:"contact_form_information";s:0:"";s:14:"theme_settings";a:1:s:21:"toggle_node_info_page";b:0;s:22:"theme_garland_settings";a:20:s:11:"toggle_logo";i:0;s:11:"toggle_name";i:0;s:13:"toggle_slogan";i:0;s:14:"toggle_mission";i:0;s:24:"toggle_node_user_picture";s:0:"";s:27:"toggle_comment_user_picture";s:0:"";s:13:"toggle_search";i:0;s:14:"toggle_favicon";i:0;s:20:"toggle_primary_links";i:1;s:22:"toggle_secondary_links";i:0;s:12:"default_logo";i:0;s:9:"logo_path";s:0:"";s:11:"logo_upload";s:0:"";s:15:"default_favicon";i:0;s:12:"favicon_path";s:0:"";s:14:"favicon_upload";s:0:"";s:6:"scheme";s:39:"#0072b9,#027ac6,#2385c2,#5ab5ee,#494949";s:7:"palette";a:5:s:4:"base";s:7:"#0072b9";s:4:"link";s:7:"#027ac6";s:3:"top";s:7:"#2385c2";s:6:"bottom";s:7:"#5ab5ee";s:4:"text";s:7:"#494949";s:5:"theme";s:7:"garland";s:4:"info";a:10:s:7:"schemes";a:16:s:39:"#0072b9,#027ac6,#2385c2,#5ab5ee,#494949";s:21:"Blue Lagoon (Default)";s:39:"#464849,#2f416f,#2a2b2d,#5d6779,#494949";s:3:"Ash";s:39:"#55c0e2,#000000,#085360,#007e94,#696969";s:10:"Aquamarine";s:39:"#d5b048,#6c420e,#331900,#971702,#494949";s:17:"Belgian Chocolate";s:39:"#3f3f3f,#336699,#6598cb,#6598cb,#000000";s:10:"Bluemarine";s:39:"#d0cb9a,#917803,#efde01,#e6fb2d,#494949";s:12:"Citrus Blast";s:39:"#0f005c,#434f8c,#4d91ff,#1a1575,#000000";s:8:"Cold Day";s:39:"#c9c497,#0c7a00,#03961e,#7be000,#494949";s:9:"Greenbeam";s:39:"#ffe23d,#a9290a,#fc6d1d,#a30f42,#494949";s:11:"Mediterrano";s:39:"#788597,#3f728d,#a9adbc,#d4d4d4,#707070";s:7:"Mercury";s:39:"#5b5fa9,#5b5faa,#0a2352,#9fa8d5,#494949";s:9:"Nocturnal";s:39:"#7db323,#6a9915,#b5d52a,#7db323,#191a19";s:6:"Olivia";s:39:"#12020b,#1b1a13,#f391c6,#f41063,#898080";s:12:"Pink Plastic";s:39:"#b7a0ba,#c70000,#a1443a,#f21107,#515d52";s:12:"Shiny Tomato";s:39:"#18583d,#1b5f42,#34775a,#52bf90,#2d2d2d";s:8:"Teal Top";s:0:"";s:6:"Custom";s:4:"copy";a:4:i:0;s:25:"images/menu-collapsed.gif";i:1;s:29:"images/menu-collapsed-rtl.gif";i:2;s:24:"images/menu-expanded.gif";i:3;s:20:"images/menu-leaf.gif";s:3:"css";a:1:i:0;s:9:"style.css";s:8:"gradient";a:4:i:0;i:0;i:1;i:37;i:2;i:760;i:3;i:121;s:4:"fill";a:2:s:4:"base";a:4:i:0;i:0;i:1;i:0;i:2;i:760;i:3;i:568;s:4:"link";a:4:i:0;i:107;i:1;i:533;i:2;i:41;i:3;i:23;s:6:"slices";a:13:s:15:"images/body.png";a:4:i:0;i:0;i:1;i:37;i:2;i:1;i:3;i:280;s:17:"images/bg-bar.png";a:4:i:0;i:202;i:1;i:530;i:2;i:76;i:3;i:14;s:23:"images/bg-bar-white.png";a:4:i:0;i:202;i:1;i:506;i:2;i:76;i:3;i:14;s:17:"images/bg-tab.png";a:4:i:0;i:107;i:1;i:533;i:2;i:41;i:3;i:23;s:24:"images/bg-navigation.png";a:4:i:0;i:0;i:1;i:0;i:2;i:7;i:3;i:37;s:26:"images/bg-content-left.png";a:4:i:0;i:40;i:1;i:117;i:2;i:50;i:3;i:352;s:27:"images/bg-content-right.png";a:4:i:0;i:510;i:1;i:117;i:2;i:50;i:3;i:352;s:21:"images/bg-content.png";a:4:i:0;i:299;i:1;i:117;i:2;i:7;i:3;i:200;s:29:"images/bg-navigation-item.png";a:4:i:0;i:32;i:1;i:37;i:2;i:17;i:3;i:12;s:35:"images/bg-navigation-item-hover.png";a:4:i:0;i:54;i:1;i:37;i:2;i:17;i:3;i:12;s:25:"images/gradient-inner.png";a:4:i:0;i:646;i:1;i:307;i:2;i:112;i:3;i:42;s:8:"logo.png";a:4:i:0;i:622;i:1;i:51;i:2;i:64;i:3;i:73;s:14:"screenshot.png";a:4:i:0;i:0;i:1;i:37;i:2;i:400;i:3;i:240;s:12:"blend_target";s:7:"#ffffff";s:13:"preview_image";s:17:"color/preview.png";s:11:"preview_css";s:17:"color/preview.css";s:10:"base_image";s:14:"color/base.png"; SET data = 'cache', created = 1252074696, expire = 0, headers = '', serialized = 0 WHERE cid = 'variables:en' in /Users/albert/Sites/mamp/drupal/garland-prim-link/includes/cache.inc on line 109.

I am stumped. Cheers,

Albert.

Comments

andy inman’s picture

Issue tags: +theme, +theme settings, +settings

I've just spent hours tracking down what seems like a similar issue and may be the same issue - changes to theme settings at admin/build/themes were being completely ignored, even though "The configuration options have been saved" was reported.

The problem turned out to be an entry in the i18n_variable table in the database, with column "name" -> "theme_settings" - I deleted that row and the problem was cured (needed to clear cache too.) This site was upgraded from D5, so that may be a factor.

The contents of that variable, in case it's relevant were:

a:22:{s:11:"toggle_logo";i:1;s:11:"toggle_name";i:1;s:13:"toggle_slogan";i:0;s:14:"toggle_mission";i:1;s:24:"toggle_node_user_picture";i:0;s:27:"toggle_comment_user_picture";i:0;s:13:"toggle_search";i:0;s:14:"toggle_favicon";i:1;s:21:"toggle_node_info_book";i:0;s:22:"toggle_node_info_forum";i:1;s:21:"toggle_node_info_help";i:0;s:21:"toggle_node_info_page";i:0;s:25:"toggle_node_info_scripted";i:0;s:22:"toggle_node_info_story";i:1;s:12:"default_logo";i:1;s:9:"logo_path";s:0:"";s:11:"logo_upload";s:0:"";s:15:"default_favicon";i:1;s:12:"favicon_path";s:0:"";s:14:"favicon_upload";s:0:"";s:2:"op";s:18:"Save configuration";s:10:"form_token";s:32:"92b490f228ed8f80b20215eb89886cee";}

Hope this helps.

jose reyero’s picture

Component: Code » Blocks
Status: Active » Closed (won't fix)

Cleaning up the issue tracker. Closing all issues that haven't got any follow up for the last year (and are not on RTBC state). Feel free to reopen if you're willing to (really) work on this.