How to fix More Fields 1.3 for Wordpress 2.9.1

more fields How to fix More Fields 1.3 for Wordpress 2.9.1More fileds is very useful plugin but unfortunately the current version (1.3) has a problem and it’s reported as broken :( but here how to fix it!


Yes, it’s true, as soon as the plugin is activated, a lots of JavaScript function broke in the Wordpress backend. Fon instance, we can’t change permalink, can’t change publish date, publish status..etc. Don’t worry, it’s easy to fix until the next version is released.

1. Find line 136 on “more-fields-object.php” in the plugin folder.

function wp_default_scripts(&$scripts) {
	$src = get_option('home') . '/wp-content/plugins/more-fields/post.js';
	$scripts->registered['post']->src = $src;
}

2. swap “registerd” bit with “add_data” like below.

function wp_default_scripts(&$scripts) {
	$src = get_option('home') . '/wp-content/plugins/more-fields/post.js';
	$scripts->add_data['post']->src = $src;
}

Then everything working fine for now.
Anyway, I really hope the plugin author fix this issue with the next version.

Author: Takashi Irie

Takashi Irie is an experienced commercial web designer and Wordpress expert based in London. He is very passionate about web design, typography, grid systems as well as Wordpress.

Enjoyed this post? Share it!

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon
  • Twitter
  • email
  • RSS

4 Comments

Juan  on February 22nd, 2010

Thanks for the fix!! The plugin author is missing, his website is down.

Juan  on February 22nd, 2010

Hello, Im seeing another bug… The arrow located in the top-right of the boxes of the admin, dont run correctly. If Im click in them, the box doesnt expand and collapse. Have you the same problem?

Thanks!

maggy  on February 22nd, 2010

Hey! Thanks for this!
But my wordpress still makes problems:
Fatal error: Call to undefined method more_fields_object::rewrite_rules() in /var/www/vhosts/informationsarchitektur.com/subdomains/dab/httpdocs/wordpress/wp-content/plugins/more-fields/more-fields-manage-boxes.php on line 150

DO you know why?
Thanks for help!
maggy

Takashi Irie  on February 22nd, 2010

Juan,
I believe you don’t need to click, just mouse over and out, it it wll collapse and expands. That’s how it works for me.

maggy,
It’s known error which has been for a long time. However I find it works even we get that error. Of course it shouldn’t happen though.

Takashi

Leave a Comment