Title: Fatal error: Call to undefined function add_shortcode()
Last modified: August 21, 2016

---

# Fatal error: Call to undefined function add_shortcode()

 *  Resolved [mikopia](https://wordpress.org/support/users/mikopia/)
 * (@mikopia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-add_shortcode-1/)
 * Help!
    Quick rundown: Temporarily set up website on [http://livrock2.mikopia.com](http://livrock2.mikopia.com)
   on hostgator, then once ready i started the process of moving to godaddy (www.
   livrock.com). I had an error on the godaddy site, so i ended up cleaning it out
   and starting fresh (i.e. installing wordpress from scratch, adding theme, adding
   content etc.). Then, i realize i couldnt login to wp-admin on the hostgator site
   with a add_shortcode() error. I can ftp in but for the life of me i cant figure
   out why it doesnt work. On that line in the php file it says “add_shortcode(‘
   button’, ‘rocknrolla_button’);” [http://livrock2.mikopia.com/wp-admin](http://livrock2.mikopia.com/wp-admin)
 * Trying to move my site and get it up and running, but ran into an error trying
   to edit the old settings.
    Fatal error: Call to undefined function add_shortcode()
   in /wp-includes/shortcodes.php on line 108
 * Not sure what to do. Any help would be appreciated.
 * [http://livrock2.mikopia.com](http://livrock2.mikopia.com)

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

 *  Thread Starter [mikopia](https://wordpress.org/support/users/mikopia/)
 * (@mikopia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-add_shortcode-1/#post-4576044)
 * Hey guys,
    Any help would be truly appreciated. Please
 *  Thread Starter [mikopia](https://wordpress.org/support/users/mikopia/)
 * (@mikopia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-add_shortcode-1/#post-4576066)
 * Just want to say this was resolved by re-doing everything from scratch.

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

The topic ‘Fatal error: Call to undefined function add_shortcode()’ is closed to
new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [mikopia](https://wordpress.org/support/users/mikopia/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-add_shortcode-1/#post-4576066)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
