• 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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bjrnet21

    (@bjrnet21)

    Just upgraded my site to the latest WP 5.0.3 and the latest Twenty Fourteen theme update 2.5. All plugins are up to date. Site appears to be working fine.

    I am still getting this PHP Warning many times each day.

    I could ignore it, but I would like to fix it.

    Any ideas?

    Commonly those relate with wrong PHP version for the application.

    I assume that newer version of PHP might solve the problem. Lucky quess.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: urlencode() expects parameter 1 to be…’ is closed to new replies.