I was getting the following warning repeatedly:

Warning: array_search() [function.array-search]: Wrong datatype for second argument in shortcode_embed_contents_theme_registry_alter() (line 137 of /home/drupal/sites/all/modules/shortcode/shortcode_embed_contents/shortcode_embed_contents.module).

The problem was this line in shortcode_embed_contents.module:

117 $paths = $theme_registry['node']['theme paths'];

The proposed fix (from Dropletz in his Glossy theme) which seems to work:

117   $paths = isset($theme_registry['node']['theme paths']) ? $theme_registry['node']['theme paths'] : array();

Comments

denes.szabo’s picture

Assigned: Unassigned » denes.szabo
Status: Active » Fixed

Thank you for your error report. This error fixed (actually I dropped the whole function).

I am refactoring the content_embed shortcode, in the upcoming release it will be fully functional, I hope :)

denes.szabo’s picture

Status: Fixed » Closed (fixed)

Closing.