Forums

Wordpress 2.8 RC breaks post types in More Fields plugin (21 posts)

  1. jboveda
    Member
    Posted 5 months 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. emhr
    Member
    Posted 5 months 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 months 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 months 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 months 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. emhr
    Member
    Posted 5 months 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. dragunoff
    Member
    Posted 5 months 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 months 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. emhr
    Member
    Posted 5 months 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 months ago #

    jazbek, you are the man !

  11. jazbek
    Member
    Posted 5 months ago #

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

  12. fas.khan
    Member
    Posted 4 months ago #

    OOoops!

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

    :)

  13. apam
    Member
    Posted 4 months ago #

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

  14. alanft
    Member
    Posted 4 months ago #

    cheers jazbek

  15. kingjeffrey
    Member
    Posted 4 months 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 4 months 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 4 months 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 4 months 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. emhr
    Member
    Posted 4 months 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. emhr
    Member
    Posted 4 months 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 4 months 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.

Reply

You must log in to post.

About this Topic