Do I need to change my templates? I have gotten this error twice when saving moduels;

Notice: Undefined index: shockplayer in osmplayer_get_templates() (line 622 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in osmplayer_get_templates() (line 622 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: simpleblack in osmplayer_get_templates() (line 622 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in osmplayer_get_templates() (line 622 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).

Comments

IWasBornToWin’s picture

I just changed from simpleblack to transparent and received this;

Warning: Invalid argument supplied for foreach() in drupal_process_attached() (line 4364 of /home7/flanaga6/public_html/includes/common.inc).
Warning: include(/home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/minplayer/templates/simpleblack/minplayer_simpleblack.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1397 of /home7/flanaga6/public_html/includes/theme.inc).
Warning: include() [function.include]: Failed opening '/home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/minplayer/templates/simpleblack/minplayer_simpleblack.tpl.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in theme_render_template() (line 1397 of /home7/flanaga6/public_html/includes/theme.inc).
Notice: Undefined variable: width in include() (line 1 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined variable: height in include() (line 1 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined variable: height in include() (line 2 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined index: version in include() (line 25 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined index: playerPath in include() (line 32 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined index: playerPath in include() (line 35 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Warning: Invalid argument supplied for foreach() in drupal_process_attached() (line 4364 of /home7/flanaga6/public_html/includes/common.inc).
Warning: include(/home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/minplayer/templates/shockplayer/minplayer_shockplayer.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1397 of /home7/flanaga6/public_html/includes/theme.inc).
Warning: include() [function.include]: Failed opening '/home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/minplayer/templates/shockplayer/minplayer_shockplayer.tpl.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in theme_render_template() (line 1397 of /home7/flanaga6/public_html/includes/theme.inc).
Notice: Undefined variable: width in include() (line 1 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/shockplayer/osmplayer_shockplayer.tpl.php).
Notice: Undefined variable: height in include() (line 1 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/shockplayer/osmplayer_shockplayer.tpl.php).
Notice: Undefined variable: height in include() (line 2 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/shockplayer/osmplayer_shockplayer.tpl.php).
Notice: Undefined index: version in include() (line 25 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/shockplayer/osmplayer_shockplayer.tpl.php).
Notice: Undefined index: playerPath in include() (line 32 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/shockplayer/osmplayer_shockplayer.tpl.php).

IWasBornToWin’s picture

I changed back to default and got these errors. Disabling minplayer module gave errors I orginally posted (when saving modules) but removed all the other errors.

Warning: Invalid argument supplied for foreach() in drupal_process_attached() (line 4364 of /home7/flanaga6/public_html/includes/common.inc).
Warning: include(/home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/minplayer/templates/simpleblack/minplayer_simpleblack.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1397 of /home7/flanaga6/public_html/includes/theme.inc).
Warning: include() [function.include]: Failed opening '/home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/minplayer/templates/simpleblack/minplayer_simpleblack.tpl.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in theme_render_template() (line 1397 of /home7/flanaga6/public_html/includes/theme.inc).
Notice: Undefined variable: width in include() (line 1 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined variable: height in include() (line 1 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined variable: height in include() (line 2 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined index: version in include() (line 25 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined index: playerPath in include() (line 32 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).
Notice: Undefined index: playerPath in include() (line 35 of /home7/flanaga6/public_html/sites/all/modules/mediafront/players/osmplayer/player/templates/simpleblack/osmplayer_simpleblack.tpl.php).

IWasBornToWin’s picture

I disabled dev version and installed prior version and all is well. A few other differences in dev are;

no media player field
no node settings in player settings

enjoylife’s picture

Use the default template for now. I'm seeing these errors too when I change to shockplayer or simpleblack and when I change them back to default. But after saving the default twice, the errors clear.

travist’s picture

The shockplayer template will go away in 2.x, and the simpleblack template has yet to be ported to 2.x. I will try to get this done within the next week, but I won't make MediaFront 2.x beta without this template ported.

Thanks,

Travis.

travist’s picture

Title: Template errors » Need to upgrade SimpleBlack template to be 2.x compatible.
Issue tags: +beta blocker

Changing title and assigning as beta blocker.

travist’s picture

Status: Active » Fixed

I just fixed the SimpleBlack template for the latest 2.x and pushed it to HEAD. Thanks!

Travis.

Status: Fixed » Closed (fixed)

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

IWasBornToWin’s picture

I just installed your latest dev and am getting these notices. I'm using default theme:

Notice: Undefined index: theme in osmplayer_get_player() (line 58 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: template in osmplayer_get_player() (line 64 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: debug in osmplayer_get_player() (line 65 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: swfplayer in osmplayer_get_player() (line 86 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: template in osmplayer_get_player() (line 98 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).

IWasBornToWin’s picture

I can't get it to play a video embedded url either. I've set it up identical to another website install I have which is working, but with prior version, not dev.

Player doesnt even show on the node with the embedded video url.

travist’s picture

Did you upgrade from 1.x to 2.x? If so then that is your problem since there isn't an upgrade path between the two yet.

IWasBornToWin’s picture

Status: Closed (fixed) » Active

No, it's a new install.

travist’s picture

You mentioned you are using the default theme? If you are not using SimpleBlack, then please re-close (fixed) this issue and open up a new issue.

travist’s picture

Status: Active » Closed (fixed)
IWasBornToWin’s picture

Status: Closed (fixed) » Active

I get these messages regardless of which theme I use. Do you still want me to open a new issue? Still no player showing up in the content either.

Notice: Undefined index: theme in osmplayer_get_player() (line 58 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: template in osmplayer_get_player() (line 64 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: debug in osmplayer_get_player() (line 65 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: swfplayer in osmplayer_get_player() (line 86 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).
Notice: Undefined index: template in osmplayer_get_player() (line 98 of /home4/growtogi/public_html/sites/all/modules/mediafront/players/osmplayer/osmplayer.module).

Thanks

travist’s picture

Status: Active » Closed (fixed)

I am pretty sure this is a separate issue unrelated to the SimpleBlack template being upgraded. Yes, please open up a new issue for this...

IWasBornToWin’s picture

Travist - you asked me to create a separate issue and I did, here http://drupal.org/node/1621816 and my problem still isn't solved. What was the purpose of the other issue? I'm simply looking for a solution. I've been asking since March. I really like your module and will help you any way I can but I am asking you to please help me help you.

I do not want to use another video module but any module [that works] will win at this point.

If you need more info please let me know.

Thanks

travist’s picture

A different issue is needed because your problem is completely unrelated to this issue.

Also, I understand you are frustrated, but other people do not seem to be having the same problem (otherwise I would jump on it asap and fix it). Also, please do not expect me to drop everything I am doing, including my full time paid job, to fix your problem immediately for free. That just isn't how it works around here... Regardless, the only thing I can think of is that you are running an old version of PHP. If that is not the case, then I am sure it is something with your module configuration or something specific to your site. If that is the case, then it is most likely an issue that I won't be able to reproduce locally and would need to actually dive into your website and debug it, which would require a paid consultation. If paid consultation is out of the question, then I am afraid you will just need to accept 'free' advise which will certainly not be a complete diagnostic and analysis of your site configuration. It is what it is... FREE advice and suggestions, and even then is still something that I am taking time away from other things to provide to you for free.