Hi,

Here's a nasty bug, which wouldn't go away even if you uninstall the module and reinstall it again. I've been trying to figure this out for hours, so I can now say that this is a bug somewhere in the code.

I have a multilingual site with i18n enabled and running with Pixture_Reloaded theme.

I installed this module and initially set the View Mode to "Teaser". For a long while it didn't remember this setting and was returning the page as "Full node". Then, for the settings in the default language it appeared that the View Mode is set to Teaser, while for all others it is set to "Full node".

Now I want for the Default Language to behave like all other languages , so that the +1 button appears only in Full node, but whatever I do (run cron, flush all caches, uninstall/reinstall the module etc) the View Mode setting is still returning "Teaser". So now I can't switch back at all.

Comments

corbacho’s picture

Thanks for reporting. Indeed looks nasty bug.

Could you confirm that you using the last version? (for Drupal 6 it's rc8. The dev version also it's fine)

Are you saying that depending of the language of the page, * in the admin settings * are showing you different values Teaser/Full node?
Are you using Multilingual Variables? http://drupal.org/node/313272

Help me to reproduce the bug and I will help you.

Also if you have Devel module installed, you can see the all the variables of your site in /devel/variables path. Do you see something strange there? If you uninstall the module shouldn't be anymore any google_plusone variables. I checked that google_plusone_node_location (that stores the view mode) is in the hook uninstall so it should be deleted.

corbacho’s picture

Umhh.. this search in the issue queue of i18n makes me think that probably is a i18n related problem http://drupal.org/project/issues/i18n?text=variables+&status=All

drupalina’s picture

Yes, this was happening in 6x-rc8 and then I switched to the latest dev. But it's still happening.

Yes, I'm saying that in my +1 settings pages in 2 of my languages it is showing "Teaser" and in my default language it shows "Full node".

I'm using multilingual variables because when I had built the site 3 years ago in my settings.php I added this:

/**   IMPORTANT see http://drupal.org/node/134002
 * Multilingual settings
 * 
 * This is a collection of variables that can be set up for each language when i18n enabled.
 * These are the basic ones for Drupal core, but you can add your own here.
 */
$conf['i18n_variables'] = array(
  'site_name',
  'site_slogan',
  'site_mission',
  'site_footer',
  'anonymous',
  'menu_primary_menu',
  'menu_secondary_menu',
);

I did that so that I could translate the parts of the site which could not be otherwise translated using i18n.

I have installed Devel module in the past, but I could never make heads-or-tails of it -- I'm not too tech savvy.

How to reproduce this bug:
Install Pixture_Reloaded theme
Install i18n modules. (I'm using the 6x_1.6 version because the later versions crush my theme)
Create 2 more languages and set your default to a language other than English.
In your settings.php add the code above
Install Google +1 module and play around with its settings. Try to change the View Mode from the default "Full Node" to "Teaser" and then back to "Full node" again (you won't be able to!).

Thanks for the willingness to clear this bug!

corbacho’s picture

Sorry, I'm starting holidays and I won't be close to a computer for 3 weeks. But have a look to that issue queue of i18n, it seems the problem is there.

corbacho’s picture

Status: Active » Fixed

I'm back, any updates?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.