Title: debug errors re control_ops, functions.php in customized theme
Last modified: August 24, 2016

---

# debug errors re control_ops, functions.php in customized theme

 *  [angstrom](https://wordpress.org/support/users/angstrom/)
 * (@angstrom)
 * [11 years ago](https://wordpress.org/support/topic/debug-errors-re-control_ops-functionsphp-in-customized-theme/)
 * I set wp_debug to “true” to see errors on my site [http://www.rentmothernature.com](http://www.rentmothernature.com).
   My error list refers to 4 problems:
    1)”undefined variable: control ops in directory
   path …/wp-content/themes/rentmothernature/functions.php on line 35″. I have 7
   of those for front end of site (lines 35, 60, 88, 115, 139 162 & 185 -2 of which-
   line 162 & 185- also appear in back-end dashboard (/admin). 2)”get_theme_data
   is deprecated since version 3.4! Use wp-get theme() instead. In …wp-includes/
   functions.php on line 3391″. 3)”wp-register_script was called incorrectly. Do
   not register the jquery script in administration area. To target the frontend
   theme, use the wp_enqueue_scripts hook…/functions.php on line 3560 4)”wp-register_script
   was called incorrectly. Scripts and styles should not be registered or enqueued
   until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts
   hooks…/functions.php on line 3560

The topic ‘debug errors re control_ops, functions.php in customized theme’ is closed
to new replies.

## Tags

 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)
 * [theme errors](https://wordpress.org/support/topic-tag/theme-errors/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [angstrom](https://wordpress.org/support/users/angstrom/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/debug-errors-re-control_ops-functionsphp-in-customized-theme/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
