Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Mindshare Labs, Inc.

    (@mindshare)

    I found this fix myself since no one responded… first let me explain the problem a bit better.

    The issue: the post meta boxes would not toggle when editing Pages using More Fields 1.3 with WP 2.8.4.

    The fix: open the more-fields-write-js.php file and replace the following line with the ones below.

    FIND:

    postboxes.add_postbox_toggles('<?php echo sanitize_title($type); ?>');

    REPLACE WITH:

    <?php if ( $type != 'Page') : ?>
    postboxes.add_postbox_toggles('<?php echo sanitize_title($type); ?>');
    <?php endif; ?>

    i also was having the ajax calls that populate the File Lists fail without explanation, until i looked at firebug + firephp – the Ajax call was failing to establish a page session due to Safe Mode being on (and how More Fields establishes a page session; using recursive paths to load wp-load.php:

    require_once(dirname(__FILE__).’/../../../wp-load.php’);

    not the best way to get ABSPATH and wp-config and wp-settings.

    also, ironically, it was throwing this error on pages that shouldn’t even be loading this code (e.g. /wp-admin/edit-pages.php)

    hopefully they change how they get ABSPATH in the future to make it more compatible with php/apache/server configurations.

    the fix above doesnt work at all with 2.8.5 and 1.3.

    All AJAX seems to die on the post and page edit views. Image upload is disabled for example. Everything works when More Fields 1.3 is disabled.

    Frustrating. I hope there is a solution soon. It’s a great plugin but for some reason it doesn’t work with 2.8.5 reliably.

    jonahcoyote

    (@jonahcoyote)

    mindshares fix worked for me on wp 2.8.6! Thanks mindshare!

    joakimlea

    (@joakimlea)

    mindshares fix did not work for me on 2.8.6

    Thread Starter Mindshare Labs, Inc.

    (@mindshare)

    Try this if using the latest version (WP 2.9, plugin 1.3):
    https://www.ads-software.com/support/topic/343952

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: More Fields] AJAX Errors in 1.3 for WP 2.8.4’ is closed to new replies.