WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. js09
    Member
    Posted 7 years ago #

    like so:
    http://www.boozersblog.com/jeff/albums/other/wparray.jpg

    any idea why? it also shows up in other areas like the profile edit page.

    thanks

  2. whooami
    Member
    Posted 7 years ago #

    thats a mysql problem. what version of mysql are you using?

  3. js09
    Member
    Posted 7 years ago #

    i just got done deleting a previous (unused version) of wordpress 2.1.3, could that be the reason why? i deleted and re-created the databases though. i'm running 4.1.21-standard

  4. whooami
    Member
    Posted 7 years ago #

    hmm. mysql version is OK. Only happens in the admin area? The front page displays the posts without issue?

    When you say you deleted and then created, did you actually create the tables or did you allow WP to?

    That might potentially be a problem, if so.

  5. js09
    Member
    Posted 7 years ago #

    i went into the ftp and deleted the entire folder, then deleted the database that was associated with it. i then downloaded the latest version of WP and made a new database (with a different name) and uploaded it. I have WP make the tables for me.

    i just tried to make a post (i highlighted all the 'Array's and removed them) but the post never showed up. i chose the publish option but when i went to hit 'save' it refreshed and the default option for 'draft' was selected.

  6. whooami
    Member
    Posted 7 years ago #

    ok, I would do this..

    start by disabling all of your plugins, widgets, anything. the first thing to rule out is that whatever i causing that inst something simple.

    The admin area is also heavy on the jquery stuff now so make sure you have javascript enabled. I have no idea what real effect that might have but better safe than sorry.

    After making sure thats its nothing simple. I would echo back the queries that are being sent.

    There are directions for doing that in this thread:

    http://wordpress.org/support/topic/83525?replies=4

    What you are wanting to look and see that the array values are populated, and if they arent look to see exactly what mysql query is being executed.

    use ottos or marks code, put that save queries line the top of wp-admin/admin.php, like so:

    <?php
    define('SAVEQUERIES', true);
    if ( defined('ABSPATH') ) ...

    the drop the other code into the bottom of admin-footer.php before the closing <HTML> tag. I used otto's, it works.

    You will need to view your source to see the actual information and its going to look like:

    <!--
    Array
    (
        [0] => Array
            (
                [0] => SELECT option_value FROM .....
     WHERE option_name = 'siteurl'
                [1] => 0.000127077102661
            )
        [1] => Array ...
  7. richie
    Member
    Posted 7 years ago #

    i met the same problem,and couldnot find the solution, so have to rollback to 2.1.3 version.

    btw: there is a category and page both named "Array", and couldnot be deleted

  8. whooami
    Member
    Posted 7 years ago #

    That really sounds to me like a "php/mysql problem. I havent looked hard enough to see if those particular queries have changed, though, but since this problem seems isolated ...

  9. MichaelH
    Member
    Posted 7 years ago #

    whooami is probably right--it's something in either your php or mysql implementation:

    I found a number of reference to people (using WordPress and other php products) where the word Array gets displayed. Most seem to discuss coding issues but don't think that's the case here:
    http://www.geeklog.net/forum/viewtopic.php?showtopic=76379
    http://drupal.org/node/140871
    http://www.phpinsider.com/smarty-forum/search.php?search_author=TGKnIght&sid=d7069ad552837d829e0a96862c891b98
    http://www.thescripts.com/forum/thread609578.html
    http://guff.szub.net/2006/02/09/post-image/

    Maybe a phpinfo.php will tell you (or your host) something. Who is your host? What version of PHP and MySQL are installed?

  10. richie
    Member
    Posted 7 years ago #

    well my php version is 4.3.7 and mysql's client API version is 4.0.20 what should i do?

  11. MichaelH
    Member
    Posted 7 years ago #

    Who is your host?

  12. richie
    Member
    Posted 7 years ago #

    my host is located in China, do i need to contact it and ask for help?

  13. Pern
    Member
    Posted 7 years ago #

    I also have the "Array" problem in upgrade from 2.1.3 to 2.2, the php version is 4.3.10, the mqsql version is 4.0.26-standard.

  14. voice220
    Member
    Posted 7 years ago #

    I've been bitten by the "array" bug too, after upgrading from 2.0.2 to 2.2. I hope someone nails this problem soon!

  15. boudreaux
    Member
    Posted 7 years ago #

    I have the same exact issue.

    PHP - 4.3.11
    MYSQL - 4.0.27-standard

    I have a friend who uses the same host (Liquid Web) and who just upgraded to WP 2.2 but does NOT have this issue, although he has upgraded PHP and MYSQL versions. Potential cause?

  16. boudreaux
    Member
    Posted 7 years ago #

    I dropped my database tables, re-uploaded my 2.2 files and re-ran install. I now have the following message about 12 times down my right column (default theme):

    Warning: Illegal offset type in /home/michae02/public_html/michaelboudreaux.com/wp-includes/cache.php on line 125

    Also, in addition to the "Array" issue, the "Users" tab of the admin panel displays the following message:

    Fatal error: Unsupported operand types in /home/michae02/public_html/michaelboudreaux.com/wp-admin/users.php on line 55

  17. lelion
    Member
    Posted 7 years ago #

    @boudreaux:

    Actually, I am on DreamHost and I have PHP 5.x/MySQL 5.x so our versions are different, but the bug with the 'array' I saw on your blog really puzzles me... :)

    Anyone any help on that?...

    WP 2.2 is supposed to run fine on PHP 4.3.x &
    MYSQL 4.0.x, right? So why in this case there's the word 'array' all over the place and the blog is not working?...

  18. richie
    Member
    Posted 7 years ago #

    seems nobody can help us... :(

  19. axelsegebrecht
    Member
    Posted 7 years ago #

    I'm having the same problem, plus I cannot post anymore :-(

    Anybody opened a ticket for this yet?

    Rel= http://wordpress.org/support/topic/118895

    My Sys=
    - Upgrade from version 2.1.3 to 2.2
    - Apache/2.0.53 (Linux/SUSE)
    - MySQL 4.1.10a
    - PHP 4.3.10
    - Register globals = No

  20. sgharms
    Member
    Posted 7 years ago #

    I've been seeing the error that boudreaux cited:

    Warning: Illegal offset type in /home/michae02/public_html/michaelboudreaux.com/wp-includes/cache.php on line 125

    I always install locally on my PPC mac before i send it up to my server. WP2.2 works on the mac, but not on the remote. Both are running apache 1.3.33, both have the same mysql version, but the thing that's different are the mysql and PHP versions

    mysql:
    local:14.12 remote: 12.22

    php
    local: 4.4.4 remote: 4.3.0

    That's a pretty big gap on mysql and one major release on PHP.

  21. sgharms
    Member
    Posted 7 years ago #

    One more data point. I tarr'd up the WP install and put it on another hosting account I have and things worked! Their PHP / mysql pair was the following:

    [rootbeer]$ mysql -V ; php -v
    mysql Ver 14.12 Distrib 5.0.16, for pc-linux-gnu (i386) using readline 5.0

    PHP 4.4.4 (cgi) (built: Nov 7 2006 13:14:18)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies

    So that would seem to point that on my current host the PHP and or MySQL are the problem. I think that the minimum requirements need to be re-evaluated for 2.2.

  22. Conficio
    Member
    Posted 7 years ago #

    This seems to be an Zend Optimizer problem. Disabling Zend (my version is 2.5.10) did remove the issue for me (together with others). I'll report if upgrading the Zend optimizer to the latest version will do the trick.

  23. Conficio
    Member
    Posted 7 years ago #

    Confirmed and upgrade to php 4.4.7 and zend optimizer 3.2.8 solved the issue described.

    The combination php 4.3.10 and Zend Optimizer 2.5.10. did not work.

  24. voice220
    Member
    Posted 7 years ago #

    Is it possible to turn off Zend Optimizer via .htaccess?

  25. Pern
    Member
    Posted 7 years ago #

    So, if we need the version of PHP to run WP is 4.4.7 for normal, then the official requirement is have problem...

  26. MichaelH
    Member
    Posted 7 years ago #

    Adding this trac ticket for information--seems PHP 4.3.10 and Zend 2.5.10 are being used by Dennis's client.

    http://trac.wordpress.org/ticket/4392

  27. boudreaux
    Member
    Posted 7 years ago #

    I upgraded from:
    PHP version 4.3.11
    MYSQL version 4.0.27-standard

    to

    PHP version 5.2.1
    MySQL version 5.0.27-standard

    and this fixed the issue.

  28. damnit
    Member
    Posted 7 years ago #

    I too have the same problem and I dont really want to go through all the upgrading so which version of wordpress works with mysql 4?

    more having trouble here too

    http://wordpress.org/support/topic/119600?replies=7

  29. infkt
    Member
    Posted 7 years ago #

    I updated from WP 2.1 to 2.2, but it seems the version of PHP on my shared server (4.3.11) isn't compatible with some of the changes made in the 2.2 release.

    I was brave, delved into the WP code, and was able to fix some of them, enough to have the blog be somewhat functional ,but at this point I've given up and I'm hoping WP will release a fix soon. (I don't feel like fixing the Widget Admin JavaScript!)

    Anybody have any idea what is the REAL minimum requirements for WP 2.2 are?

    PROBLEMS.

    'Array' showing up all over the place on the admin for WP.
    FIXED
    It seems that these are caused by uninstantiated fields of an object being printed out. A var_dump() of these uninstantiated fields returns Array(0){}. There's probably a lot of these lying around the WP interface, but I fixed some of the most important ones that were preventing me from publishing posts and chaning viewing the Users admin page.

    Illegal offset type errors on the sidebar of my blog.
    FIXED
    These were caused by a similar problem. Uninstantiated paramaters in certain functions in cache.php were not being assigned the default value; instead they were being read as array, thus the Illegal Offset Type error (array vars can't be used as keys)

    So now I don't have those sidebar erros on my WP 2.2, and I can also publish. BUTT the Widgets admin doesn't work because of some JS errors that I don't really want to figure out.

    Or maybe I should....
    Anywho, if someone does, please let me know! Also if you'd like the fixes I made just let me know.

  30. Pern
    Member
    Posted 7 years ago #

    I saw the ticket closed, the problem will not fix forever, and I can't upgarde the WP to 2.2...

    So, I will consider change to another blog system...

Topic Closed

This topic has been closed to new replies.

About this Topic