Well it seams I have quite the problem and before I start the whole site over again I thought I show my problem to see if it is media's issue.
I had the system update tell me to upgrade media to beta4, I did (oops) and all modules that could be disabled, became disabled. I erased the media folder in modules and replaced it with the current dev and used the update script, seamed to work. I enabled all the old modules and still looked good. All except my blog content type is now AWOL and add content has been added 2 more times to navigation menu.
Now when I try to add a photo from wysiwyg I get this error
Fatal error: Unsupported operand types in /home/railrout/public_html/sites/all/modules/media/file_entity/file_entity.file_api.inc on line 201
But the photo is uploaded, weird huh.
If this helps you good. If this is known and there is a fix please share.
And if I should reinstall the whole thing please break it to me now.
Comments
Comment #1
effulgentsia commentedLine 201 of that file has this line of code:
$display['settings'] += $formatter_info['default settings'];.Please add this line above it:
debug($display);Now, when you get that error, you should also get a message containing the contents of that variable. Please post that in this issue (sanitize it if there's any private information in there, but there probably won't be). Thanks. Feel free to remove that line of code after it's served its purpose.
[EDIT: Please also add
debug($formatter_info);in the same place, and post that result here as well. Thanks.]Comment #2
RonP commentedOk I did the first edit, i'll do the second as well next.
entered like this:
debug($display);
$display['settings'] += $formatter_info['default settings'];
with the second entry added like this:
debug($display);
debug($formatter_info);
$display['settings'] += $formatter_info['default settings'];
Comment #3
RonP commentedThis was just spit out when I entered media from "find content"
Comment #4
effulgentsia commentedThanks. I fixed that error in http://drupalcode.org/project/media.git/commitdiff/0d61650?hp=db8905863d.... It will show up in the next dev snapshot when that's made (could be up to 12 hours), but you can get it now via GIT, or by manually applying the same changes as shown in that link.
As far as losing menu access to your content types on node/add, it sounds like you're running into a known bug that happens when you try to move "node/add" or its children to another menu. See #550254-142: Menu links are sometimes not properly re-parented (as well as comment #131) for a summary, and that whole issue for back story. One thing that makes that bug frustrating is it surfaces when you clear cache or run update.php rather than at the time that you move the menu item to a different menu, so I think that's why it surfaced for you when you updated Media code, rather than being due to something specific to Media module. There may be comments in that issue suggesting how to correct for it manually or otherwise work around it.