Title: Fatal error with new cfs version
Last modified: August 30, 2016

---

# Fatal error with new cfs version

 *  Resolved [Website Tutorials](https://wordpress.org/support/users/fakeartist/)
 * (@fakeartist)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-new-cfs-version/)
 * After the update it returns fatal error
 * `Call to undefined method cfs_init::get()`
 * when I use
 *     ```
       $frontpage_id = get_option('page_on_front');
       global $cfs;
       $my_field = $cfs->get('my_field', $frontpage_id);
       ```
   
 * and my site is down!
 * [https://wordpress.org/plugins/custom-field-suite/](https://wordpress.org/plugins/custom-field-suite/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Website Tutorials](https://wordpress.org/support/users/fakeartist/)
 * (@fakeartist)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-new-cfs-version/#post-6669775)
 * Replaced $cfs->get with CFS()->get() and problem is now solved!
 *  [gordonek](https://wordpress.org/support/users/gordonek/)
 * (@gordonek)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-new-cfs-version/#post-6669776)
 * I’ve got the same error.
    Replacing $cfs->get with CFS()->get() fixes the problem
   but a lot of my websites got broken (or will after update) and I will have to
   manualy change a lot of files in the templates.
 * Plugin updates shouldn’t be done that way and cause whole website to fall down.
 *  Thread Starter [Website Tutorials](https://wordpress.org/support/users/fakeartist/)
 * (@fakeartist)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-new-cfs-version/#post-6669777)
 * Exactly! I hope the developer fixes it, so that it is compatible with the old
   $cfs->get function.
 *  Plugin Author [Matt Gibbs](https://wordpress.org/support/users/mgibbs189/)
 * (@mgibbs189)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-new-cfs-version/#post-6669809)
 * Please upgrade to CFS 2.5.1.
 *  [madastro](https://wordpress.org/support/users/madastro/)
 * (@madastro)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-new-cfs-version/#post-6669850)
 * Thanks for the fix Matt.
    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal error with new cfs version’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [madastro](https://wordpress.org/support/users/madastro/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-new-cfs-version/#post-6669850)
 * Status: resolved