Fatal error: Call to a member function pluginParameterInfo() on a non-object in [..]\sites\all\modules\rules\rules_i18n\rules_i18n.i18n.inc on line 73

This error apeared after upgrading to this and variable 7.x-2.0 It was quite difficult to because it did not appear each time a page or node was called. Sometimes you think it is gone but then it reappeared somewhere else. It would not allow to check for updates without error/breaking the script, nor run the update script. That is why I consider it critical.

I had to disable: rules translation to make it go away.

Call stack:

1 0.0005 675736 {main}( ) ..\index.php:0
2 0.5244 50226816 menu_execute_active_handler( ) ..\index.php:21
3 0.5568 53895312 drupal_deliver_page( ) ..\menu.inc:531
4 0.5568 53895720 drupal_deliver_html_page( ) ..\common.inc:2471
5 0.6580 55867648 drupal_page_footer( ) ..\common.inc:2587
6 0.6639 55869336 system_run_automated_cron( ) ..\common.inc:2614
7 0.6639 55869432 drupal_cron_run( ) ..\system.module:3502
8 23.8388 77018160 module_invoke( ) ..\common.inc:5145
9 23.8389 77018496 call_user_func_array ( ) ..\module.inc:799
10 23.8389 77018736 system_cron( ) ..\module.inc:0
11 23.8431 77023672 module_invoke_all( ) ..\system.module:3038
12 24.0508 73025424 call_user_func_array ( ) ..\module.inc:823
13 24.0508 73025664 entity_flush_caches( ) ..\module.inc:0
14 24.0590 72609576 entity_defaults_rebuild( ) ..\entity.module:843
15 24.0617 72769544 _entity_defaults_rebuild( ) ..\entity.module:637
16 24.3408 74460808 module_invoke_all( ) ..\entity.module:727
17 24.3415 74465088 call_user_func_array ( ) ..\module.inc:823
18 24.3415 74465496 rules_i18n_rules_config_defaults_rebuild( ) ..\module.inc:0
19 24.3415 74466992 rules_i18n_rules_config_update( ) ..\rules_i18n.module:128
20 24.3416 74468368 i18n_string_object_wrapper->get_strings( ) ..\rules_i18n.module:94
21 24.3416 74468888 i18n_string_object_wrapper->get_properties( ) ..\i18n_string.inc:1062
22 24.3416 74468888 RulesI18nStringObjectWrapper->build_properties( ) ..\i18n_string.inc:1090
23 24.6453 79659880 RulesI18nStringObjectWrapper->buildElementProperties( ) ..\rules_i18n.i18n.inc:58

Comments

cronix’s picture

Same here. Very critical. But is this i18n or Rules?

maxilein’s picture

It is listed as part of Multilingual - Internationalization under modules. So i figure that is i18n then.

Valance’s picture

I have the same error, when i went to clear the cache.

What do i do with the entire "call stack"? I've got no idea what to do with this...?

maxilein’s picture

Call stack helps the developers to identify a problem. In my case the solution was to disable that module.

stefanpetrov’s picture

same here, had to disable the module...

lilbebel’s picture

I'm having the same fatal error warning. What should I do?

lilbebel’s picture

I have also disabled the module in order to get the error to go away.

darioplaza’s picture

Hi. Same error.

Post this comment that let me to get feedback of posible solutions.

Thks!

7wonders’s picture

@darioplaza - you can click the follow button in the top right if you want to follow an issue.

But while im at it, I also have this issue and the only option is to disable the module which renders my rules with i18n useless.

darioplaza’s picture

Ok, thanks 7wonders. I'll do it that way.

stborchert’s picture

Project: Internationalization » Rules
Version: 7.x-1.6 » 7.x-2.x-dev
Component: Miscellaneous » Provided Module Integrations
StatusFileSize
new763 bytes

Hi.
Changing project to rules since the error is located in rules_i18n.module.
The constructor of i18n_object_wrapper has changed (3 parameters) so the creation of RulesI18nStringObjectWrapper() has to be updated.

stborchert’s picture

Status: Active » Needs review

Changing status to "needs review".

7wonders’s picture

From the few tests I have quickly made, patch in #11 seems good. I will update if I run into anything.

socialnicheguru’s picture

Installed module and error went away

wgsimon’s picture

This patch looks like it works for me too.

mitchell’s picture

Title: Fatal error: Call to a member function pluginParameterInfo() on a non-object in [..]\rules_i18n\rules_i18n.i18n.inc on line 73 » RulesI18nStringObjectWrapper needs an $object_key parameter
Assigned: Unassigned » klausi
mitchell’s picture

klausi’s picture

Status: Needs review » Fixed

Grml, so that was an i18n API change...

Committed, thanks!

tarazingo’s picture

Version: 7.x-2.x-dev » 7.x-2.1
Assigned: klausi » tarazingo

Thanx stBorchert , patch #11 work fo me

Status: Fixed » Closed (fixed)

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

aletasso’s picture

Version: 7.x-2.1 » 7.x-2.2
Component: Provided Module Integrations » Module Integrations

I have the same error, but with the module "rules-7.x-2.2" which is already updated the patch "wrong-call-to-stringobjectwrapper-1651132-11.patch".

From already thank you very much for your help!

PatchRanger’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
Status: Closed (fixed) » Active

@module maintainers Please request branch retesting since testbot stuck on the same error.
See http://qa.drupal.org/pifr/test/27274 for more information.
Closed #1797576: Fix simpletest tests as a duplicate of this one.

mitchell’s picture

Assigned: tarazingo » Unassigned
Status: Active » Closed (fixed)

@comments after #18: Please let fixed issues be.

If an issue needs follow-up attention, then let's address it in a new issue.

xiukun.zhou’s picture

Status: Closed (fixed) » Active

i am use rules-7.x-2.x-dev and apply patch #11, but when clear cached there are some errors

Fatal error: Call to a member function pluginParameterInfo() on a non-object in sites/all/modules/rules/rules_i18n/rules_i18n.i18n.inc on line 73
das-peter’s picture

Status: Active » Closed (fixed)

Issue status fix.