Comments

fubhy’s picture

Status: Active » Needs review

Are you sure that this is caused by the DEBUG blocks? Because those are added with hook_block_list_alter and therefore should be preprocess and processed correctly. The only "block" that was not added this way is the resize indicator (bottom right of your screen). I agree that this was odd (having a block for that). I just changed that and made it a #markup element. @see latest dev version: https://github.com/ThemeGeeks/Omega/commit/fb9fbc9a6421dd96442276e9766ad...

Please try that out!

henrijs.seso’s picture

I downloaded Branch: fb9fbc9 with new changes and I still get 18 notices when viewing http://localhost/sitename/#overlay=admin/appearance/settings/themename

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

dsm of $block in i18n_block module gives me list of 2 kinds of $block objects

Normal

... (Object) stdClass
    bid (String, 2 characters ) 95
    module (String, 9 characters ) nodeblock
    delta (String, 1 characters ) 3
    theme (String, 5 characters ) seven
    status (String, 1 characters ) 0
    weight (String, 1 characters ) 0
    region (String, 2 characters ) -1
    custom (String, 1 characters ) 0
    visibility (String, 1 characters ) 0
    pages (String, 0 characters )
    title (String, 0 characters )
    cache (String, 1 characters ) 1
    i18n_mode (String, 1 characters ) 0

Debug

... (Object) stdClass
    module (String, 11 characters ) alpha-debug
    delta (String, 16 characters ) debug-user_first
fubhy’s picture

Wait .... That only happens when you are on the theme settings page?

henrijs.seso’s picture

it happens on all pages, but not always. flushing caches brings notices on all pages but after some browsing they are gone, flush caches again and they are back. all admin controllable caches and file optimizations are off.

fubhy’s picture

Please try it with the latest dev. I made some changes to how those blocks are added.

henrijs.seso’s picture

No more notices and debug blocks are not processed by i18n. Great job!

fubhy’s picture

Status: Needs review » Closed (fixed)

Great. Thanks for confirming.

Gastonia’s picture

Status: Closed (fixed) » Needs review

Can you explain what it was you fixed in the theme? Or how it was a theme issue causing the problem?

I am having the same problem with a custom theme, and I cannot pinpoint the bug. Thanks!

mgifford’s picture

planctus’s picture

I'm not using omega but i ran into the same problem...
drupal Notice: Undefined property: stdClass::$i18n_mode in i18n_block_translate_tab_access()
I guess i don't even need i18n_block but i can't disable it since it would disable i18n too.
Thanks,
Da.

cellar door’s picture

Category: bug » support

I'm going to move this to a support request as it's no longer a bug in the Omega theme. Feel free to keep the discussion going though :)

nurulshakina’s picture

hi...seems like i'm still getting the same problem...i tried open up github links, but it doesnt work....any other suggestions for that? i really appreciate if anyone could help me

steinmb’s picture

Issue summary: View changes
Status: Needs review » Closed (cannot reproduce)