First sorry for my pool English.
When using this module and adding block as its item, if enable cache block, there is an error:

Notice: Undefined property: stdClass::$cache in _block_get_cache_id() (line 913 in /home/content/54/9662254/html/modules/block/block.module).

and if disable cache block, there is no error.

Comments

jddeli’s picture

Me to is there any news

jddeli’s picture

I get the following notice on my brand new Drupal site.
I use many modules that i need.
I found after i uninstall all the other modules the error still have appears.
Then i unistall the module OM Maximenu and it disappeared.

joemaine’s picture

This is also an issue with Maximenu:
https://drupal.org/node/1976742

...are you also seeing the notice appear on different lines depending on the role of the user accessing a page with the menu?

Perhaps the number of notices is related to user permissions.

Notices will be shown for User 1 the same number of times as the number of menu items with blocks attached.

Notices will be shown for all other users twice the number of times as the number of menu items with blocks attached (that they have permission to view in Maximenu)

queenielow’s picture

Issue summary: View changes

I was having the same issue at mine end although i was not using this module and i found the fix, hopefully this is helpful to everyone who have the same issue.

Also this issue will happen when you turn on "Cache Block" in your performance(admin/config/development/performance).

Apparently by default _block_info's cache should defaulted as " DRUPAL_CACHE_PER_ROLE" but if you are creating your own module, it may or may not default the cache to " DRUPAL_CACHE_PER_ROLE" if you didn't define in your _block_info function. (refer to this link https://api.drupal.org/api/drupal/modules%21block%21block.api.php/functi... for cache information)

So just add this line of code and it will surely clear the issue.
$blocks['block_name'] = array(
'info' => t('Block Name'),
'cache' => DRUPAL_CACHE_PER_ROLE,
);

Cheers.. Hope this help