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?
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 1169494-undefined-i18n_block-01.patch | 587 bytes | jose reyero |
| #8 | Screen Shot 2013-01-23 at 10.46.41 AM.png | 237.23 KB | serversdown |
Comments
Comment #1
fubhy commentedEdited:
Please read http://drupal.org/node/1169512
Comment #2
fubhy commentedComment #3
jose reyero commentedLooks like it was fixed in the theme.
Comment #4
sidsar commentedim 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 !!
Comment #5
mordonez commented#1169512: debug blocks are excluded from normal process. May cause errors and notices.
Comment #6
wooody commentedupdating the module...fix the problem..
thanks
Comment #7
wooody commentedupdating the module...fix the problem..
thanks
Comment #8
serversdown commentedPlease see screen shot - unable to translate due to
Notice: Undefined property: stdClass::$i18n_mode in i18n_block_translate_tab_access()
Comment #9
yuriy.sychenko commentedin block visibility settings to make translatable
Comment #10
Strutsagget commentedIs this bug back again?
Comment #11
Strutsagget commentedI 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.
Comment #12
C-3PO commentedSorry 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?
Comment #13
f0ns commentedI just got this error when using Display Suite and creating a new custom block.
When i cleared the cache the error was gone ;)
Comment #14
suburbanmarx commentedCreated custom block and applied patch found here (https://drupal.org/node/2128265), refreshed and found this same error- cleared cache like #13, worked. Phew.
Comment #15
jose reyero commentedCommitted this patch that should fix the issue.
Comment #18
nicolas bouteille commentedHad the error on 1.10, just updated to 1.11 error is gone. Thanks!
Comment #19
nicolas bouteille commentedI actually still get the error on 1.11 on newly created content. Maybe because it has a field of type block reference ?
Comment #20
nicolas bouteille commentedSorry the patch has not been committed to 1.11 but to dev. So manually applying patch works. Thanks.