Warning: strpos() expects parameter 1 to be string, array given in
-
Bonjour,
In Portfolio post i got the following warning instead of the Post-imageWarning: strpos() expects parameter 1 to be string, array given in /kunden/388885_67227/kcf/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/post-thumbnail.php on line 48
Warning: substr() expects parameter 1 to be string, array given in /kunden/388885_67227/kcf/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/post-thumbnail.php on line 68
$thumbnail_id = get_post_meta($post_id, ‘_thumbnail_id’, true);
// in the case it’s a ngg image it return ngg-<imageID>
if ( strpos($thumbnail_id, ‘ngg-‘) === false)
{
global $wp_version;if (version_compare($wp_version, ‘3.5’, ‘>=’) && $thumbnail_id <= 0)
{
$iframe_src = get_upload_iframe_src(‘image’, $post_id);
$iframe_src = remove_query_arg(‘TB_iframe’, $iframe_src);
$iframe_src = add_query_arg(‘tab’, ‘nextgen’, $iframe_src);
$iframe_src = add_query_arg(‘chromeless’, ‘1’, $iframe_src);
$iframe_src = add_query_arg(‘TB_iframe’, ‘1’, $iframe_src);$set_thumbnail_link = ‘<p class=”hide-if-no-js”>%s</p>’;
$content .= sprintf($set_thumbnail_link, esc_html__( ‘Set NextGEN featured image’, ‘nggallery’ ));
}return $content;
}// cut off the ‘ngg-‘
$thumbnail_id = substr( $thumbnail_id, 4);return $th
Can you help me?
Merci!
Robert
- The topic ‘Warning: strpos() expects parameter 1 to be string, array given in’ is closed to new replies.