Magic Fields causing problem with Wordpress media uploader

570 views
Skip to first unread message

rionnoir

unread,
Aug 26, 2010, 7:33:18 PM8/26/10
to Magic Fields
I'm not sure how this happened but at some point I was unable to
upload songs through the wordpress media uploader.

I was able to upload 4 songs without a problem, but now I am seeing
this error:

Warning: Invalid argument supplied for foreach() in /home/content/b/i/
n/bingjyang/html/wp-admin/includes/media.php on line 1205


Now when I press "Add to post" nothing happens.

When I disable Magic Fields, then everything works fine again.

Can somebody help me, because I need the owner of the site to be able
to upload her own music using the Media Uploader but I don't want to
get rid of Magic Fields either.

Message has been deleted

Dave

unread,
Aug 28, 2010, 11:08:39 AM8/28/10
to Magic Fields
I am seeing the same issue with Media; when I upload a PDF, I cannot
insert it into a page or post, however when I disable Magic Fields,
the issue goes away.

Running WordPress 3.0.2, everything up to date.

Dave

Hunk

unread,
Aug 28, 2010, 3:00:13 PM8/28/10
to Magic Fields
show any error of javascript? you can uses firebug and view the
console tab

Dave

unread,
Aug 29, 2010, 10:08:41 AM8/29/10
to Magic Fields
Hi,

In my case, there are no Javascript errors thrown.

Here is a screencast showing the behavior:

http://screencast.com/t/M2U0YmFiZjI

1) I attempt to upload and insert a link to a PDF (with Magic Fields
enabled) - FAIL
2) Disable Magic Fields
3) I attempt to upload the same PDF -- SUCCESS

Dave

Scott

unread,
Aug 30, 2010, 3:00:13 PM8/30/10
to Magic Fields
I am also having the same issue noted.

I get the error message below when viewing the Media Library with All
Types selected. (no error when Images only is selected).

"Warning: Invalid argument supplied for foreach() in /home/... .../wp-
admin/includes/media.php on line 1205"

Also unable to insert media into post from this screen.

Please help.

Hunk

unread,
Aug 30, 2010, 3:58:41 PM8/30/10
to Magic Fields

Xavi Ivars

unread,
Aug 31, 2010, 3:23:21 AM8/31/10
to magic-...@googlegroups.com
2010/8/30 Scott <scott....@gmail.com>:

> I am also having the same issue noted.
>

Same problem here!

--
< Xavi Ivars >
< http://xavi.infobenissa.com >

Shaun

unread,
Aug 31, 2010, 8:52:57 AM8/31/10
to Magic Fields
Hi Hunk,

I had the same problem with PDF uploads. Your code fixed this. Thank
you.

Shaun

On Aug 30, 8:58 pm, Hunk <ing.ed...@gmail.com> wrote:
> can apply this changehttp://github.com/hunk/Magic-Fields/commit/c4e32dc328b1a40a9f94622dd3...

Xavi Ivars

unread,
Aug 31, 2010, 9:33:52 AM8/31/10
to magic-...@googlegroups.com
I cant' find the commit anymore...

2010/8/31 Shaun <sha...@gmail.com>:

--
< Xavi Ivars >
< http://xavi.infobenissa.com >

Hunk

unread,
Aug 31, 2010, 11:07:39 PM8/31/10
to Magic Fields
Xavi in Main.php

Xavi Ivars

unread,
Sep 1, 2010, 4:03:29 AM9/1/10
to magic-...@googlegroups.com
2010/9/1 Hunk <ing....@gmail.com>:
> Xavi in Main.php
>

Thanks!

MuschPusch

unread,
Oct 1, 2010, 7:49:22 AM10/1/10
to Magic Fields
Same here the patch works!

On Sep 1, 10:03 am, Xavi Ivars <xavi.iv...@gmail.com> wrote:
> 2010/9/1 Hunk <ing.ed...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages