WordPress.org

Ready to get started?Download WordPress

Forums

WordPress 2.8 RC breaks post types in More Fields plugin (33 posts)

  1. jboveda
    Member
    Posted 5 years ago #

    I noticed as soon as I upgraded to WordPress 2.8 RC (due to need for some functions added to the new version) that my custom post types no longer have the 'publish' box to the right of the content editor. End result: I can't click 'publish' to save anything.

    Anything that can be done about it, and/or has anyone had a similar experience?

    TIA,

    J

  2. Gene
    Member
    Posted 5 years ago #

    Yep same here... I'm guessing More-Fields 1.2.10 isn't working well with the javascript changes for the screen options of the edit page in WordPress 2.8RC1.
    For me anything that is in the right column on the edit page disappears (such as the publish box in the default layout) when the plugin is activated; also the show/hide capability of the write boxes are either stuck open or collapsed according to how they were set before the plugin was activated.
    One simple workaround is to deactivate the plugin set the screen options to one column and toggle open all the boxes then reactivate the plugin. Not elegant but should work until the plugin comes up to speed with 2.8

    Hats of the the dev this is a useful plugin for idiot proofing WP as a CMS

  3. jazbek
    Member
    Posted 5 years ago #

    Cross posted at http://labs.dagensskiva.com/forum/topic.php?id=152#post-481:

    Ok, I've almost completely fixed this problem. Thanks to this blog post:
    http://www.code-styling.de/english/how-to-use-wordpress-metaboxes-at-own-plugins

    I added some code to the more-fields-object.php file that enables the right sidebar again, and it also saves your open/close toggle states on the boxes:

    more-fields-object.php, function init(), at the bottom of the function (before the } ):
    add_filter('screen_layout_columns', array(&$this, 'screen_layout_columns'), 10, 2);

    then, immediately *after* the final closing brace ( } ) of the init() function:

    function screen_layout_columns($columns, $screen) {
    $columns[$screen] = 2;
    ?>
    <script type="text/javascript">
    //<![CDATA[
    jQuery(document).ready( function($) {
    // close postboxes that should be closed
    $('.if-js-closed').removeClass('if-js-closed').addClass('closed');
    // postboxes setup
    postboxes.add_postbox_toggles('<?php echo $screen; ?>');
    });
    //]]>
    </script>
    <?php
    return $columns;
    }

    This will enable the "Screen Layout - Number of Columns: 1 2 " options under the "Screen Options" pulldown. Probably not the cleanest way, but it's a quick fix.

    NOTE: The one thing that does NOT work is if you choose 1 column layout, it moves all the sidebar items over to the main column, then if you switch back to 2 columns, the sidebar items remain in the main column, and you can't drag them back. I'm not sure if this is a bug in 2.8 or what, because it still happens on the normal Edit Post page if I deactivate the More Fields plugin. I haven't tried deactivating all my other plugins.

  4. mongushu
    Member
    Posted 5 years ago #

    Something to note as well. I think the 2.8 + More Fields bugs are not adequately solved yet.

    After implementing Jazbek's fixes on a new installation of WP 2.8 I am unable to expand/contract many Admin area panels and menus and am unable to grab onto draggable items like widgets in the Appearance --> Widgets page.

    After deactivating the plugin, everything worked as it should.

    Such a bummer, because morefields was a dream come true for the kind of wordpress work i do.

    EDIT: i've tested this in Safari 4, and Firefox 3 (mac)

  5. jazbek
    Member
    Posted 5 years ago #

    Yeah, I think that is related to the problem that I mentioned above, of the admin boxes all moving to the main column when you choose 1 column layout, and then not being able to move them back to the sidebar if you switch back to 2 columns. The strange thing is, when I deactivated the More Fields plugin, this problem remained for me. I am using the same browsers as you, mongushu

    As for not being able to expand/collapse some boxes, I tried all the boxes on the edit post page, and had no trouble with any of them except 1 that was added by another plugin. Which boxes are you having trouble with?

  6. Gene
    Member
    Posted 5 years ago #

    jazbek - here are the bugs ive seen since applying your edit. all of the expected behaviors occur when the plugin with your edit is diabled

    Bug 1 Location: Posts>Edit or Pages>Edit or Media>Library etc.
    Expected behavior: if clicking on the "post" checkbox to check all the below list of checkboxes for bulk action then all the posts checkboxes in the list below should toggle to checked. (this behavior occurs when more fields with your edit is disabled)
    Problem behavior: when clicking on the "post" checkbox to check all the below list of checkboxes for bulk action none of the check boxes in the list below toggle to checked.

    Bug 2 Location: Posts>Edit or Pages>Edit or Media>Library etc.
    Expected behavior: clicking the screen options would reveal screen options for Posts>Edit
    Problem behavior: clicking the screen options does nothing

    Bug 3 Location: Posts>Edit or Pages>Edit (or More-Fields Custom Post/Page types in main nav)
    Expected behavior: clicking on any toggles of the left column admin main nav items ( i.e. dashboard, posts, tools , appearance etc.) would expand the child nav list without leaving the current page
    Problem behavior: clicking the toggle does nothing.

    Bug 4 Location: Appearance>Widgets
    Expected behavior: Widgets should be draggable in to sidebar right column
    Problem behavior: Widgets aren't draggable

    the code-styling page is definitely pointing in the right direction for a fix. For the time being i'll revert back to the workaround I mentioned. At the moment its the lesser of evils till things get sorted.

  7. Ivaylo Draganov
    Member
    Posted 5 years ago #

    jazbek's fix works without issues for me!
    Clean WordPress 2.8 with no other plugins in Firefox 3 and IE 7.

    Switching form 2 to 1 columns indeed throws all the boxes to the left and does not recover them to their previous positions but I think that's a 2.8 issue.

  8. jazbek
    Member
    Posted 5 years ago #

    This thread is kind of forked here and at http://labs.dagensskiva.com/forum/topic.php?id=152 (sorry) but just thought I'd post my fix files:

    http://exobi.com/jessica/more-fields-object.txt
    http://exobi.com/jessica/more-fields-write-js.txt

    jessica

  9. Gene
    Member
    Posted 5 years ago #

    Thanks for your patience jaz- it was totally a copy paste error using your file and/or typing the code solved the problem.

  10. fas.khan
    Member
    Posted 5 years ago #

    jazbek, you are the man !

  11. jazbek
    Member
    Posted 5 years ago #

    glad i could help! i am a lady, btw.. haha :)

  12. fas.khan
    Member
    Posted 5 years ago #

    OOoops!

    well then, Maa'aam, I would love to take you out any given day!

    :)

  13. apam
    Member
    Posted 5 years ago #

    Worked for me too!
    A very warm thankyou from sunny Rome Jessica!
    adam

  14. alanft
    Member
    Posted 5 years ago #

    cheers jazbek

  15. kingjeffrey
    Member
    Posted 5 years ago #

    I am _not_ running the More Fields plugin.

    This bug first occurred for me running the official 2.8 release. 2.8.1 did not rectify the situation.

    I selected the "Number of Columns: (1)" option under "Screen Options" on the new post page. I then selected "Number of columns: (2)". The columns narrowed, but the publish/tag/category divs did not move back to the right sidebar.

    Is there a fix for this? I really do not like working in the one column layout.

  16. jazbek
    Member
    Posted 5 years ago #

    kingjeffrey, i think you have to drag the boxes back over to the right sidebar, if i'm not mistaken. it's an annoying thing about wp 2.8 as far as i understand.

  17. purealtar
    Member
    Posted 5 years ago #

    when i implement the fix from jazbek... i can no longer do a quick edit. Does anyone else experience this as a side effect? Also does 2.8.1 upgrade fix any of this or cause more grief for the more fields plugin... or any other plugin for that matter?
    thanks...

  18. jazbek
    Member
    Posted 5 years ago #

    i am not having any problems with the quick edit feature. are you sure its not another plugin causing the problem? i am also wondering about the 2.8.1 update, someone fill us in!

  19. Gene
    Member
    Posted 5 years ago #

    Quick edit works fine for me with more-fields beta 1.3 and WP 2.8.1. I've not been experiencing any new issues since upgrading WP from 1.8

  20. Gene
    Member
    Posted 5 years ago #

    I take that back. Using the 1.3 beta without editing it I do lose the quick-edit capability.

    Applying jazbek's edits to the more-fields-object.php and more-fields-write-js.php to either ver. 1.2.10 or 1.3 beta solves this for me using WP 2.8.1.

    Here are some basic observations. This discussion and support for this plugin in general is forked between the plugin authors support forum and this one here. The last time i can see that Henrik (dev) posted on the WP plugin support forum was 4 months ago. He started a thread on his forum two weeks back from this posting to discuss the beta testing of the 1.3 beta. So all who havent already should head over and grab the current beta, test it and give some feedback, a thank you and possibly some pocket change if you can swing it and maybe it'll help the devs work the kinks out on the new release... community right?

  21. noogrub
    Member
    Posted 5 years ago #

    I have the same problem KingJeffrey had: WP 2.8.1 Editing Page now shows in one column, with the Attributes and Publish widgets far down the page. If I hit "Screen Options", select 1 column and then select back to 2 column, the main column narrows and I can drag the widgets to the right sidebar. However, no matter what I try, the page reverts to single column when I refresh, or when I click "Publish".

    Can anyone explain how the "Screen Options" settings work? I have not figured out what js is called when I click "Screen Options".

    Any assistance appreciated.

  22. highvoltag3
    Member
    Posted 4 years ago #

    Can anyone help me figure out How to remove the boxes left in the admin menu for the POST's? when U remove the plugin?

  23. willshouse
    Member
    Posted 4 years ago #

    I posted an updated version of the plugin on my blog, based on the changes mentioned above. Feel free to download it

    It was having some trouble showing / hiding the meta boxes on the "edit page" screen. Also, I feel like if you add a custom type, say "events," when you click on that you should view all events instead of editing a new one (like how posts and pages work). I fixed that, too.

    I may have made a few other minor tweaks, too, but I didn't spend too much time documenting my changes. Sorry. Anyhow, it seems to be working pretty well now. I wish we could get the original authors back on board. It's such an awesome plugin.

    Oh yeah, and it'd be nice if there was a way to have "previous versions" for the other fields, but doing that would require some significant changes to the way the wordpress database is set up, which I think would be a bad idea.

    Cheers.

  24. em hr
    Member
    Posted 4 years ago #

    Regarding my earlier comment, it appears that it's going to take more than donations and community to get this plugin up to speed with WP's release cycle. I've stopped using and recommending this plugin entirely. I'm hoping there'll be a gui to custom post types built into WP3.0

  25. Jason Judge
    Member
    Posted 4 years ago #

    I think I'm going the same way. The functionality looked perfect for my needs, but the problems it introduces in WP2.9 are just too much to work around. This plugin replies too heavily on the JavaScript of a much older version of WP, much of which has now changed.

    The lack of updates or any contact from the author is a problem that makes it difficult to see a way through this (considering how complex the JavaScript is).

    You cannot hang around with WP updates, since so many of them contain security updates that *must* be applied immediately they are released. It is up to the modules to keep up with WP - there is no other way it will work.

    I just don't see any other plugins that do the same thing.

    -- Jason

  26. rsanchez112
    Member
    Posted 4 years ago #

    Gotta agree with judgej. The developer did a poor job of update-proofing the plugin javascript, and in 2.9 all More Fields does is end up breaking my other plugins. It's a shame, but oh well.

  27. kalstrom
    Member
    Posted 4 years ago #

    We know we've been slacking with the updates. Sorry about that.
    We have a new beta version for you.

    rsanchez112: We have a thread on our support forum that lists incompatibilites with other plugins. Would be great if you would add yours.

    And, on the 3.0 note. We will be updating the plugin to conform to post types in WP 3.0

  28. kalstrom
    Member
    Posted 4 years ago #


  29. kalstrom
    Member
    Posted 4 years ago #


  30. Mindshare Studios, Inc.
    Member
    Posted 4 years ago #

    Still having issues with ability to toggle / collapse post boxes using version 1.4b3

Topic Closed

This topic has been closed to new replies.

About this Topic