Hi,

I am using omega theme and it is generating debug blocks outside of normal block system, they don't have $block->i18n_mode and notices happen.

Notice: Undefined property: stdClass::$i18n_mode in i18n_block_translate_tab_access() (line 62 of C:\wamp\www\path\sites\all\modules\i18n\i18n_block\i18n_block.module).

What would be more appropriate? add check in function i18n_block_translate_tab_access() for existence of $block->i18n_mode or fail a bug report at omega theme issue queue?

Comments

fubhy’s picture

Edited:

Please read http://drupal.org/node/1169512

fubhy’s picture

Assigned: Unassigned » fubhy
Status: Active » Needs review
jose reyero’s picture

Status: Needs review » Closed (fixed)

Looks like it was fixed in the theme.

sidsar’s picture

Version: 7.x-1.x-dev » 7.x-1.7
Priority: Normal » Major
Status: Closed (fixed) » Needs work

im new to drupal, and using openpublic to configure a website, i want to use Amharic and English on the website ...
Only in admin or any logged-in profile , i get this error

Notice: Undefined property: stdClass::$i18n_mode in i18n_block_translate_tab_access() (line 62 of C:\wamp\www\XYZ\sites\all\modules\i18n\i18n_block\i18n_block.module)

help needed urgently, thankyou !!

mordonez’s picture

wooody’s picture

updating the module...fix the problem..
thanks

wooody’s picture

updating the module...fix the problem..
thanks

serversdown’s picture

Title: $i18n_mode might be missing on some blocks » Notice: Undefined property: stdClass::$i18n_mode in i18n_block_translate_tab_access()
Issue tags: +i18n, +Notice: Undefined property: stdClass::$i18n_mode in i18n_block_translate_tab_access(), +drupal error
StatusFileSize
new237.23 KB

Please see screen shot - unable to translate due to

Notice: Undefined property: stdClass::$i18n_mode in i18n_block_translate_tab_access()

yuriy.sychenko’s picture

in block visibility settings to make translatable

Strutsagget’s picture

Is this bug back again?

Strutsagget’s picture

I get this when using Display Suite and creating a new custom block. The error disapear if i edit language settings and check Make this block translatable checkbox.

C-3PO’s picture

Status: Closed (fixed) » Active

Sorry to reopen the issue...
Ok, not using Omega theme. Tried switching to it once it is claimed fixed there. Errors show up in all themes I tried.
All my blocks are translatable.

Still, four to seven same messages on top of any page no matter if I flush cashes or not.

How do I get to know what went wrong?

f0ns’s picture

I just got this error when using Display Suite and creating a new custom block.

When i cleared the cache the error was gone ;)

suburbanmarx’s picture

Issue summary: View changes

Created custom block and applied patch found here (https://drupal.org/node/2128265), refreshed and found this same error- cleared cache like #13, worked. Phew.

jose reyero’s picture

Status: Active » Fixed
StatusFileSize
new587 bytes

Committed this patch that should fix the issue.

  • Commit ec9728d on 7.x-1.x:
    Issue #1169494: Notice: Undefined property: stdClass:: in...

Status: Fixed » Closed (fixed)

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

nicolas bouteille’s picture

Had the error on 1.10, just updated to 1.11 error is gone. Thanks!

nicolas bouteille’s picture

Status: Closed (fixed) » Active

I actually still get the error on 1.11 on newly created content. Maybe because it has a field of type block reference ?

nicolas bouteille’s picture

Status: Active » Closed (fixed)

Sorry the patch has not been committed to 1.11 but to dev. So manually applying patch works. Thanks.