After applying the patch in #976598: Media settings redirect to Structure the settings are displayed, the Manage Fields/Display tabs show correct (after clearing the cache) but the Settings only give me these two warning:
* Notice: Trying to get property of non-object in media_admin_type_manage_form() (line 339 of [path]\sites\all\modules\media\media.admin.inc).
* Notice: Trying to get property of non-object in media_admin_type_manage_form() (line 344 of [path]\sites\all\modules\media\media.admin.inc).
This is with Drupal 7 beta 3.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | media.module.patch | 755 bytes | mcaden |
| #8 | media.module.patch | 772 bytes | mcaden |
Comments
Comment #1
JacobSingh commentedclear your cache.
Comment #2
tsvenson commentedAs I wrote, I did that. These warnings are after clearing the cache. Just tried it again with the same notices showing up. Only the notices are showing, there are no settings available in that tab. The other two works just fine.
Comment #3
JacobSingh commentedOh sorry, I should have read that. Media is not working on BETA-3 yet. See the project page for how we're doing versions. IF it's still a bug in BETA-2, let's look at it, if not, let's still look at it but I have no knowledge of the state of BETA-3 other than that it is broken.
-J
Comment #4
tsvenson commentedI'm aware of the note about which version of Drupal use. I will retest this with beta to in a bit and report back if its a problem there as well.
Comment #5
tsvenson commented@Jacob
Just tried this with Drupal 7 beta 2 and got the exact same error messages on a fresh installation.
Upping this to critical since Settings is unavailable.
Comment #6
cfuller12 commentedLooks like this is just a simple matter of the wrong URL argument being passed to the page callback. In other words, in media_menu
should be
The title argument was changed in patch #976598: Media settings redirect to Structure but the page argument wasn't.
Comment #7
tsvenson commented@cfuller
Yes, that sorted it. Thanks. Settings are back.
FYI, it is line 76 in the media.module file that needs to be changed.
Comment #8
mcaden commentedPatched against head. Fixes it for D7 beta 3.
Comment #9
mcaden commentedI think I've been screwing up the line-endings on my patches so it's rejecting them, trying again.
Comment #11
tsvenson commentedIt might be failing because it needs the patch in #976598: Media settings redirect to Structure.
Comment #12
mcaden commentedI did an update. I have the latest revision at HEAD.
EDIT: Just checked, the patch you mentioned was applied to HEAD before I updated so it's already in.
Comment #13
mcaden commented#9: media.module.patch queued for re-testing.
Comment #15
JacobSingh commentedCommitted! Thanks
http://drupal.org/cvs?commit=454390
Comment #16
mcaden commentedAwesome, incidentally - any tips on why my patches fail testing?
Comment #17
JacobSingh commentedNot sure... it looks okay