Theme key "osmplayer_simpleblack_menu" not found.
Theme key "osmplayer_simpleblack_scrollbar" not found.
Theme key "osmplayer_simpleblack_teaser" not found.
and a bunch more show up Recent Log messages.

The site works fine -- why the warnings?

Comments

reg’s picture

I just came across this, I don't think it's working fine, I think there is some theming that's not getting done judging by the backtrace. Here it is coming from the function theme() (I temporarily added some backtrace code in it.)

Theme key "osmplayer_shockplayer_controlbar" not found.

16  Line: 21,  File: index.php,  Function: menu_execute_active_handler
15  Line: 503,  File: includes/menu.inc,  Function: call_user_func_array
14  Function: views_page
13  Line: 462,   File: sites/all/modules/views/views.module,  Function: execute_display
12  Line: 1132,  File: sites/all/modules/views/includes/view.inc,  Function: execute
11  Line: 217,   File: sites/all/modules/views/plugins/views_plugin_display_page.inc,  Function: render
10  Line: 1069,  File: sites/all/modules/views/includes/view.inc,  Function: render
9  Line: 2491,   File: sites/all/modules/views/plugins/views_plugin_display.inc,  Function: theme
8  Line: 1011,   File: includes/theme.inc,  Function: template_preprocess_views_view
7  Line: 51,     File: sites/all/modules/views/theme/theme.inc,  Function: render
6  Line: 48,     File: sites/all/modules/mediafront/views/mediafront_plugin_style_player.inc,  Function: theme
5  Line: 1047,   File: includes/theme.inc,  Function: theme_mediafront_player_view
4  Line: 88,     File: sites/all/modules/mediafront/mediafront.module,  Function: mediafront_get_player
3  Line: 990,    File: sites/all/modules/mediafront/mediafront.module,  Function: osmplayer_get_player
2  Line: 35,     File: sites/all/modules/mediafront/players/osmplayer/osmplayer.module,  Function: theme
1  Line: 1011,   File: includes/theme.inc,  Function: template_preprocess_osmplayer
0  Line: 784,    File: sites/all/modules/mediafront/players/osmplayer/osmplayer.module,  Function: theme

And here's the line that caused it, line 784 of the 7.x dev version (as of today) in the file osmplayer.module:

    $variables['templates']['controlBar'] = theme('osmplayer_' . $variables['params']['template'] . '_controlbar', array('params' => $variables['params'], 'templates' => $variables['templates']));

theme() will return an empty string in this case. Hope this helps!

reg’s picture

Looking a little further I noticed that this is happening on shockwave and simpleblack but not default type templates so for now I can only use the default.

spyderpie’s picture

I think this one and all of these may all be related:

http://drupal.org/node/1246458
http://drupal.org/node/1363184
http://drupal.org/node/1417794
http://drupal.org/node/1407016

Anyone? I don't know enough to fix ... :(

Peace,
Julie

enjoylife’s picture

Title: Theme key "osmplayer_simpleblack_menu" not found in recent log messages » Theme key "osmplayer_simpleblack_XXX" not found in recent log messages

I've marked #1246458: Theme key "osmplayer_simpleblack_XXX" not found. as a duplicate. I've also changed the name of this issue to reflect that this problem is with both the menu and other components of the OSM Player SimpleBlack Theme.

smerth received the following errors:
Theme key "osmplayer_simpleblack_playlist" not found.
Theme key "osmplayer_simpleblack_pager" not found.
Theme key "osmplayer_simpleblack_scrollbar" not found.
Theme key "osmplayer_simpleblack_teaser" not found.
Theme key "osmplayer_simpleblack_node" not found.
Theme key "osmplayer_simpleblack_menu" not found.
Theme key "osmplayer_simpleblack_titlebar" not found.
Theme key "osmplayer_simpleblack_controlbar" not found.
Theme key "osmplayer_simpleblack_nodevoter" not found.
Theme key "osmplayer_simpleblack_teaservoter" not found.

enjoylife’s picture

Version: 7.x-1.4 » 7.x-1.x-dev

Reg confirmed that this issue still exists in the most recent dev release.

The workaround for now is to use the default template.

travist’s picture

Status: Active » Fixed

Just committed a fix for this in the 7.x branch. Please test and let me know.

enjoylife’s picture

Updated to most recent 7.x branch release. I tested simpleblack theme and had no errors in my log.

Status: Fixed » Closed (fixed)

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