The MU forums have moved to WordPress.org

Upload functionality failing in single blog (3 posts)

  1. mpsmyth
    Member
    Posted 14 years ago #

    I'm having a problem creating media on one blog within my MU instance, which makes this a very strange challenge. I can upload in other blogs and include the same files (images, pdf, whatever) but when I try and upload a file I get a fault in wp_check_filetype within functions.php:

    Warning: Invalid argument supplied for foreach() in /var/www/wordpress-mu/wp-includes/functions.php on line 2297
    39

    The fact that it doesn't happen in other blogs made me suspect my plugins or theme, but I deactivated them, switched to Kubrick, and the issue persisted. It doesn't make sense since that function is not doing anything special that I can see, and because the media upload tool (primarily trying flash but browser also fails with error) is in the admin side and not in the theme, I'm not finding any reason it should fail in iterating over the array.

    In googling, it sounds like entries in the DB may actually be able to trigger this issue, but I don't see anything strange in the DB side (this is my newest blog and doesn't have much in it yet) and the other foreach failures look to be working on DB info...

    When the window executes, it actually does put the file onto the server and entries into the DB under wp_19_postmeta -- but I never get the description fields or such.

    Since the code is the same across blogs and the file being uploaded is the same, it's really confusing me as to how it would be dying.
    Anyone seen similar issues or have any hints as to where I should be looking?

  2. RobertGrinde
    Member
    Posted 14 years ago #

    I am having the exact same problem, did you manage to find a solution?

  3. RobertGrinde
    Member
    Posted 14 years ago #

    I am using the multi site manager plugin and managed to fix this by changing site_id to 1 in wp_blogs for the site where uploads failed.

About this Topic

  • Started 14 years ago by mpsmyth
  • Latest reply from RobertGrinde