Closed (fixed)
Project:
Shortcode
Version:
7.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
5 Mar 2012 at 19:15 UTC
Updated:
10 Mar 2012 at 22:57 UTC
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
Comment #1
denes.szabo commentedThank 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 :)
Comment #2
denes.szabo commentedClosing.