WordPress.org

Ready to get started?Download WordPress

Forums

the word 'Array' is appearing everywhere in the dashboard (43 posts)

  1. narmer
    Member
    Posted 7 years ago #

    I have the same problem how can I solve it?

  2. seveneth
    Member
    Posted 7 years ago #

    Try edit /wp-includes/plugin.php [Line : 102], inside remove_filter function.
    Change :
    unset($GLOBALS['wp_filter'][$tag][$priority][serialize($function_to_remove)]);

    To :

    $wp_filter[$tag][$priority][serialize($function_to_remove)] = array();
    unset( $wp_filter[$tag][$priority][serialize($function_to_remove)] );
  3. erika_conn
    Member
    Posted 7 years ago #

    Thanks Seveneth. I got rid of that irritating Array.

  4. birnamdesigns
    Member
    Posted 7 years ago #

    Thanks Seveneth. I just ran into the same problem. I added the line as you recommended, cleaned out a few "Array"s that were in the database (in the posts and options tables, if I recall), and the problem cleared up.

    This was WordPress 2.2.1 (installed through Fantastico) (as reported in the page's meta tag), PHP 4.3.11, and MySQL 4.0.27-standard (both as reported by CPanel).

  5. aroundmyroom
    Member
    Posted 7 years ago #

    that code fixed the issue !! .. wow.. that should be applied to a new version ..

    note: I just installed a fresh wordpress 2.2.x and had the array issue directly from the beginning.. Running CentOS with BlueQuartz..

  6. cora
    Member
    Posted 6 years ago #

    Please leave this thread up because seveneth's solution for solving the ARRAY bug saved me, too. It may not be a support problem, but it sure looks like a bunch of us needed support because of it.

    After upgrading to WP 2.2.2 from 2.1, ARRAY errors were gunking up everything, including all of the themes in the control panel. I had used the Maintence Mode plugin suggested when I upgraded, but after I got everything installed, I could not get out of Maintence Mode. I had checked everything I possibly could think of - plugins, htaccess, etc - short of a reinstall when I came across seventh's message about editing the wp-includes file:
    /wp-includes/plugin.php [Line : 102], inside remove_filter function.

    It worked! Immediately. I have no clue why, but I am very grateful. If you are at your wits' end over this ARRAY thing, back up the original plugin.php and try it. Thanks so much, seveneth!

  7. jaseb
    Member
    Posted 6 years ago #

    Seveneth, you are a legend. This fixed my problem when upgrading to 2.3.

  8. ravingvegetable
    Member
    Posted 6 years ago #

    Confirming this fixed the problem in an update from 2.1 to 2.3
    Thanks !

  9. ifgarde
    Member
    Posted 6 years ago #

    wp-admin/users.php on line 55

    I included that in hopes that it will help people to find this thread by googling it. I was having the same "array" problem and an error coming up on the users page. I thought that I was going to have to download an earlier version to be able to get this blog going, but this little fix took care of the problem!

    I hope that we are not back into an era of having to hack WP again, I was so pleased to get out of that mess, and here we are hacking code again. Let's hope a fix is in the works.

    I suggest that this be deemed "the seventh fix" in honor of the saint who delivered us from the array bug.

  10. shahramdeaf
    Member
    Posted 6 years ago #

    seveneth
    realy thank u so much for help and thank u a lot.

  11. polites
    Member
    Posted 6 years ago #

    I also had the same problem with the last version of WP (2.3.1). My solution is similar.

    In the file wp-includes/plugin.php is the function remove_filter with this lines of code:

    $r = isset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]);
    unset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]);

    I have added the 'if' to solve the problem:

    $r = isset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]);
    if ($r) unset($GLOBALS['wp_filter'][$tag][$priority][$function_to_remove]);
  12. xt0m
    Member
    Posted 6 years ago #

    Thanks polites, same here.

    2.3.1 and had the same array-stuff happening upon moving from one server to another. So far the fix works w/o issues :)

    /t0m

  13. leedom1sg
    Member
    Posted 6 years ago #

    seveneth, YOU ROCK! After 4 hours of searching through Forum threads, YOU are the only one who has the answer. Let me drop in the common key words that everyone else seems to be searching under for this problem:

    no templates in presentation array line error

Topic Closed

This topic has been closed to new replies.

About this Topic