Title: [Plugin: More Fields] Error in 1.3 version
Last modified: August 19, 2016

---

# [Plugin: More Fields] Error in 1.3 version

 *  [peetboy](https://wordpress.org/support/users/peetboy/)
 * (@peetboy)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/)
 * `Fatal error: Call to undefined method more_fields_object::rewrite_rules() in/
   mypath/wordpress/wp-content/plugins/more-fields/more-fields-manage-boxes.php 
   on line 150`
    Everytime when i’m inserting custom field I get this error. But
   finally the field is inserted. In the more-fields-manage-boxes.php on lines 150
   and 151 are 2 function calls: $mf0->rewrite_rules(); $mf0->flush_rewrite_rules();`
   There is only flush_rewrite_rules() function in the more-fields-object.php. The
   rewrite_rules() function is missing. Should I comment tha call to function?

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/page/2/?output_format=md)

 *  [jodineuf](https://wordpress.org/support/users/jodineuf/)
 * (@jodineuf)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161027)
 * I am having the same problem.
 *  [teebru](https://wordpress.org/support/users/teebru/)
 * (@teebru)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161055)
 * Did either one of you get this to work? I too am having this problem.
 * thanks
 *  [musicmasteria](https://wordpress.org/support/users/musicmasteria/)
 * (@musicmasteria)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161058)
 * I got the same problem here too. Any ideas?
 *  [Matt Cohen](https://wordpress.org/support/users/mattyza/)
 * (@mattyza)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161062)
 * Hi Peetboy, jodineuf, teebru and musicmasteria,
 * I’m not sure if this is the recommended solution by the plugin developer, but
   the following worked for me:
 * – To resolve the Call to undefined method `more_fields_object::rewrite_rules()
   error, replace $mf0->rewrite_rules();` on line 150 of _more-fields-manage-boxes.
   php_ with `$mf0->generate_rewrite_rules();`
 * – To resolve the “_operand_” error when adding fields, replace `$wp_rewrite->
   rules = $new_rule + $wp_rewrite->rules;` on line 768 of _more-fields-object.php_
   with `$wp_rewrite->rules = $new_rule . ' + ' . $wp_rewrite->rules;`
 * Once again, these solutions worked for me in WordPress 2.8.3. The plugin developers
   may have better solutions than the above.
 * Cheers,
    Matt.
 *  [markgt](https://wordpress.org/support/users/markgt/)
 * (@markgt)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161065)
 * great Matt! – works perfectly for me 🙂
 * thanks for taking the time to post the fix.
 *  [musicmasteria](https://wordpress.org/support/users/musicmasteria/)
 * (@musicmasteria)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161084)
 * It works mattyza! Thanks for the help!
 * I hope to plugin author fixes this in the next version.
 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161097)
 * Thank you.
    More-fields is a great plugin, but documantation and support (updates
   and bugs) are somewhat missing…. I had to touch the core files of that plugin
   at least 6 times, making hacks and changes with every WP upgrade. I guess this
   is the soft spot on open source plugins, It creates a dependency on the developer….
 *  [DeeMo](https://wordpress.org/support/users/deemo/)
 * (@deemo)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161099)
 * Mattyza, I applied your solution but it breaks the Publish box ( save as draft,
   status etc). Looks like the ajax thingie wont work anymore, nothing happens when
   you try to edit the status…I deactivated the modified plugin and the publish 
   box now works again. Anyone experiencing the same problem?
 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161101)
 * take this file
    `http://exobi.com/jessica/more-fields-object.txt` and this [http://exobi.com/jessica/more-fields-object.txt](http://exobi.com/jessica/more-fields-object.txt)
   and overwrite the original ones from the core. (after backing up of course)
 * this bug will be fixed (along with others, and I hope also the permalink problem)
   in 1.3 that is due soon i think.
 *  [Paul de Wouters](https://wordpress.org/support/users/pauldewouters/)
 * (@pauldewouters)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161104)
 * didn’t you make a mistake? you posted the same file twice
 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161105)
 * yes .. sorry about that .
    the second file is this : `http://exobi.com/jessica/
   more-fields-write-js.txt` first one is the same : `http://exobi.com/jessica/more-
   fields-object.txt`
 *  [Chris McCoy](https://wordpress.org/support/users/fristopher/)
 * (@fristopher)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161106)
 * any idea why my custom fields are being wiped out?
 * ive tried the two .txt file updates, but still seems to be wiped out once i edit
   using more fields, funny thing is its only on apache 2 and php 5.0
 * my other server is apache 1.3.x and mysql 5.1 and it works fine.
 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161107)
 * those two files should fix the problem (at least on all my installations they
   did)
    Just to be on the safe side, have you re-named them to *.php ?? and also,
   in your screen options, have you enabled 2-columns?
 *  [markgt](https://wordpress.org/support/users/markgt/)
 * (@markgt)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161115)
 * krembo99, thanks so much for that fix. It works! Fixed the permalink error and
   a clash with NextGen Gallery. I’m running WP 8.2.4 and More Fields 1.3.
 * The only thing i noticed was that the new post type (in my case “Products”) is
   no longer added to the main admin menu, but thats a small sacrifice to have the
   plugin working again.
 * Thanks again from South Africa 🙂
 *  [txsrick2007](https://wordpress.org/support/users/txsrick2007/)
 * (@txsrick2007)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/#post-1161153)
 * I am using this plugin on a bunch of my sites and even though we have to tweak
   the code with each update. it is a major time saver.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/page/2/?output_format=md)

The topic ‘[Plugin: More Fields] Error in 1.3 version’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 21 replies
 * 16 participants
 * Last reply from: [trginter](https://wordpress.org/support/users/trginter/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-more-fields-error-in-13-version/page/2/#post-1161174)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
