Title: Undefined function register_setting() in js_composer
Last modified: September 21, 2017

---

# Undefined function register_setting() in js_composer

 *  Resolved [davvvy](https://wordpress.org/support/users/davvvy/)
 * (@davvvy)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/)
 * Hello, I am pretty new to WP, have built a couple of sites and really like working
   with it. However I’ve run into a problem with this development site I just updated
   to latest WP, themes, and plugins versions. I can browse the site alright, but
   if I try to go into wp-admin, or any of the other editing pages, the site crashes
   and returns this message:
 * Fatal error: Call to undefined function register_setting() in /home/mrktgu5/public_html/
   bethscarehome/wp-content/plugins/js_composer/include/classes/settings/class-vc-
   settings.php on line 377
 * I’ve searched extensively on these forums and elsewhere; I’ve used FTP to delete
   the plugin (js_composer, which I believe is needed for Virtual Composer) – that
   didn’t help at all, in that case I can even load the site on my browsers. I’m
   pretty much exhausted my capabilities to troubleshoot this issue and would like
   to seek help here.
 * Hopefully someone will know what to do, thank you all very much in advance.
 * David
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-function-register_setting-in-js_composer%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Konstantinos Xenos](https://wordpress.org/support/users/xkon/)
 * (@xkon)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/#post-9516138)
 * Hello and welcome to the forums !
 * First of all `js_composer` is actually Virtual Composers base directory so you
   actually removed the whole plugin by removing that folder. That is probably why
   your front-end stoped working since everything was passing through VC before.
 * In the case of `register_setting()` is used in the Settings API of WordPress 
   so that means it’s a function that is built-in into WordPress ( [https://codex.wordpress.org/Settings_API](https://codex.wordpress.org/Settings_API))
   and this tells us that maybe your updates where not fully successful resulting
   into some corrupted files.
 * You can always go to `Dashboard -> Updates` menu on your Admin area and click`
   Re-Install Now` for the core files to be re-installed in case that fixes it.
 * If that doesn’t fix the issue and the plugin continues to give you errors about
   register_setting you can always contact the plugin’s authors since it’s a commercial
   plugin and you’re their customer 🙂
 * Make sure to always keep a backups before changing / updating things to be safe.
 *  Thread Starter [davvvy](https://wordpress.org/support/users/davvvy/)
 * (@davvvy)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/#post-9516473)
 * Thank you for your fast response, Xenos.
 * Unfortunately I cannot access any of my admin pages on the site. Since I updated
   WP as well as several other plugins at the same time, does the error still indicate
   that it’s WP that may be corrupted?
 * If you think that’s the case, I guess I can try to do a manual re-install of 
   WP. I’ll need to read up on that and try it out then.
 *  [Konstantinos Xenos](https://wordpress.org/support/users/xkon/)
 * (@xkon)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/#post-9516510)
 * It might be a number of things but since you don’t have a working site at the
   moment let’s try to solve that first.
 * You can do this:
    1) Download WordPress 2) Connect to your server via FTP 3) 
   rename the `wp-content/plugins/` folder into something else for now but do not
   delete it ( this will force WordPress to reset all your plugins ) 4) upload the`
   wp-includes` and `wp-admin` folders and by replacing the existing folders.
 * There’s no need to touch your wp-config, and no need to touch the /wp-content/(
   except the plugins ) so your files will be left as is.
 * That should get your WordPress back to a safe starting place to start re-installing
   plugins again and see if everything works as supposed to.
 * Again as I can’t stress this much, always create backups of at least 1 previous
   instance as a fallback.
 *  Thread Starter [davvvy](https://wordpress.org/support/users/davvvy/)
 * (@davvvy)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/#post-9517117)
 * Hi again Xenos, I got it fixed!!!!
 * I did everything as you laid out, but I had to also copy over all the files in
   the root directory of the new WP folder, as well as the loose files in the wp-
   content folder. Once I did those things, and also uploaded the new wp-admin and
   wp-includes folder, the last step was to rename my old plugins folder, which 
   I had labeled plugins-old.
 * Bang, everything looked good, and I was also able to login to my wp-admin page(
   after WP made me update the database). I’m merrily editing away my site pages
   now, thank you again very much for your help!
 * Cheers,
 * David
 *  [Konstantinos Xenos](https://wordpress.org/support/users/xkon/)
 * (@xkon)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/#post-9517132)
 * No problem at all David, glad I could help 🙂 . Don’t forget to mark this topic
   as resolved to keep the forums nice and tidy !
 *  Thread Starter [davvvy](https://wordpress.org/support/users/davvvy/)
 * (@davvvy)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/#post-9519107)
 * Done. Thank you again for a speedy resolution of my problem. 🙂
 * David

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

The topic ‘Undefined function register_setting() in js_composer’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [davvvy](https://wordpress.org/support/users/davvvy/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-register_setting-in-js_composer/#post-9519107)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
