Title: plugin causes call_user_func_array error
Last modified: August 19, 2016

---

# plugin causes call_user_func_array error

 *  [emcdonald](https://wordpress.org/support/users/emcdonald/)
 * (@emcdonald)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-causes-call_user_func_array-error/)
 * The plugin to determine visitor location via IP was demanding a lot from my DB,
   so it seemed like the obvious solution was to wrap it in a script which first
   checked if the location was set in a cookie, and if not, invoke the visitor location
   plugin, and set it in a cookie. This plugin was super-short, and seemed within
   my abilities.
 * However, turning on my new plugin causes `Warning: call_user_func_array() : First
   argumented is expected to be a valid callback, 'location_isset()' was given in/
   blah/blah/blah/wordpress/wp-includes/plugin.php</b> on line 311` Renaming it 
   causes it to go away.
 * I’m hoping I’ve made a very stupid error which someone will easily be able to
   point out.

Viewing 1 replies (of 1 total)

 *  [Austin Matzko](https://wordpress.org/support/users/filosofo/)
 * (@filosofo)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-causes-call_user_func_array-error/#post-741387)
 * That will be tough to do without seeing any of the code, but from the error it
   sounds like you’ve assigned a nonexistent function to an action or filter hook.

Viewing 1 replies (of 1 total)

The topic ‘plugin causes call_user_func_array error’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Austin Matzko](https://wordpress.org/support/users/filosofo/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-causes-call_user_func_array-error/#post-741387)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
