Warning: urlencode() expects parameter 1 to be…
-
Just noticed that I am getting the following warning in my log file:
Warning: urlencode() expects parameter 1 to be string, array given in /home/xxxxxx/public_html/blackjackreview.com/wp/wp-content/themes/twentyfourteen/inc/template-tags.php on line 50
Anyone have any ideas what the problem might be? I am getting several (3-6) warnings each day.
Line 50 of template-tags.php is in a section called “Set up paginated links”:
// Set up paginated links.
$links = paginate_links(
array(
‘base’ => $pagenum_link,
‘format’ => $format,
‘total’ => $wp_query->max_num_pages,
‘current’ => $paged,
‘mid_size’ => 1,
‘add_args’ => array_map( ‘urlencode’, $query_args ), // LINE 50
‘prev_text’ => __( ‘← Previous’, ‘twentyfourteen’ ),
‘next_text’ => __( ‘Next →’, ‘twentyfourteen’ ),
)
);The page I need help with: [log in to see the link]
- The topic ‘Warning: urlencode() expects parameter 1 to be…’ is closed to new replies.