Create a bloc display for your view, translate your view using views translation, configure your block.
In the block configuration form, languages tab (bottom left horizontal tab), check Make this block translatable, save.
Then go to the Translate tab (upper right corner) for the block. Here you go:
Fatal error: Class name must be a valid object or a string in /sites/all/modules/i18n/i18n_string/i18n_string.module on line 66
and when you come back to the bloc configuration page or one page with the block :

Warning: reset() [function.reset]: Passed variable is not an array or object in i18n_string_object_translate_page() (line 839 of /sites/all/modules/i18n/i18n_string/i18n_string.module).
Warning: Invalid argument supplied for foreach() in i18n_string_translate_page_overview() (line 51 of /sites/all/modules/i18n/i18n_string/i18n_string.pages.inc).
Warning: reset() [function.reset]: Passed variable is not an array or object in i18n_string_object_translate_page() (line 839 of /sites/all/modules/i18n/i18n_string/i18n_string.module).
Warning: Invalid argument supplied for foreach() in i18n_string_translate_page_overview() (line 51 of /sites/all/modules/i18n/i18n_string/i18n_string.pages.inc).

So I wonder why this block is still translatable if it's a views display block, as everything can be translated within views translation now?

Comments

Jerome F’s picture

I have set this to minor, because you don't actually need to do that, if you leave it alone there's no problem. I just wanted to leave a user feedback in case anyone runs into it and I wonder if the maintainers are aware of it.

giupenni’s picture

Same problem with 7.x-1.0-beta7 .

How I solve it and traslate?

giupenni’s picture

Same problem with 7.x-1.0-beta7 .

How I solve it and traslate?

webflo’s picture

Status: Active » Postponed (maintainer needs more info)

Is this error still present? I can't reproduce.

ottawadeveloper’s picture

I ran into this error but was able to resolve it by updating to the latest version of i18n (I was on 7.x-1.4, now on 7.x-1.5). I suspect you can close this.

Robert

minorOffense’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

This still happens with i18n_string

You can reproduce by having i18n_string be included as a dependency in an install profile.

I'm going to try to narrow down which class is missing and report back

PHP Fatal error: Class name must be a valid object or a string in /var/www/html/ottawa.ca/profiles/spotlight_profile/modules/contrib/i18n/i18n_string/i18n_string.module on line 343

minorOffense’s picture

It seems to only occur if you run the install from the UI. Using drush si doesn't trigger the error.

pradeep_0306’s picture

i am installing through drush but iam till getting this error

Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined method i18n_object_wrapper::strings_update() in
/var/www/html/drupal/sites/all/modules/contrib/i18n/i18n_string/i18n_string.module, line 851

and i removed that function and tried its throwing again below error

Error: Class name must be a valid object or a string in /var/www/html/drupal/sites/all/modules/contrib/i18n/i18n_string/i18n_string.module,
line 343

can any one please help in this case