WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Warning: array_merge() [function.array-merge]: Argument #2...error (7 posts)

  1. fsm
    Member
    Posted 2 years ago #

    Some of you may be experiencing this error with the latest version of WordPress (3.3.2) and this plugin (2.82).

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /wp-content/plugins/wp-pagenavi/scb/Options.php on line 46

    Go ahead and open up the file references, Options.php. Go to line 46.

    Replace this line with:
    $data = array_merge( $this->defaults, $data );

    This line:
    $data = array_merge( $this->defaults, (array)$data );

    And your error message should be fixed!

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. Eric McNiece
    Member
    Posted 1 year ago #

    Thank you. :)

  3. toto
    Member
    Posted 1 year ago #

    Thank you. :)

  4. paulosilva
    Member
    Posted 1 year ago #

    que tal!! creo que tengo el mismo problema a ingresar a la pagina 2 me sale una pagina con la información pero sin el thema ni los estilos y fui a modificar Options.php y no me sale como lo indicas si no así:

    $data = array_merge( $this->defaults, get_option( $this->key, array() ) );

  5. bassjobsen
    Member
    Posted 1 year ago #

    @paulosilva yes in the newer versions you could do:

    $data = array_merge( $this->defaults, (array)get_option( $this->key, array() ) );

  6. nikoza
    Member
    Posted 1 year ago #

    Guys you are just awesome!!! Thank you very much!!! The solution of bassjobsen worked for me!

  7. klimychev
    Member
    Posted 1 year ago #

    Please help!
    I replace line : $data = array_merge( $this->defaults, $data );
    This line:
    $data = array_merge( $this->defaults, (array)$data );

    First page - OK.
    But 2nd, 3rd etc. - error at the top of the page:
    Warning: mb_stripos() [function.mb-stripos]: Empty delimiter in /var/www/u3588651/data/www/fidel-bar.ru/wp-includes/functions.php on line 658
    Warning: mb_stripos() [function.mb-stripos]: Empty delimiter in /var/www/u3588651/data/www/fidel-bar.ru/wp-includes/functions.php on line 661

    First page: http://www.fidel-bar.ru
    Second page: http://www.fidel-bar.ru/page/2/

    How to fix these errors?
    Thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic