Title: call_user_func_array() expects parameter 1 to be a valid callback
Last modified: August 20, 2016

---

# call_user_func_array() expects parameter 1 to be a valid callback

 *  [algui91](https://wordpress.org/support/users/algui91/)
 * (@algui91)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-a-valid-callback/)
 * Hi, after searching a lot in the net, I’ve could not find any answer to my problem.
   I’m using nginx in debian and in the error log I’m getting the following error
   message:
 * FastCGI sent in stderr: “PHP message: PHP Warning: call_user_func_array() expects
   parameter 1 to be a valid callback, function ‘register_shortcodes’ not found 
   or invalid function name in /wp-includes/plugin.php on line 406” while reading
   response header from upstream, client: *, server: xxxxxxxx, request: “GET / HTTP/
   1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “xxxxxxxxxxxx”
 * I have some shortcodes in my function.php:
 * add_shortcode(‘siguenos’, ‘follow_us’);
    add_shortcode(‘referencias’, ‘show_references’);
   add_action( ‘init’, ‘register_shortcodes’);
 * Could you please tell me what is happening?
 * Best regards

The topic ‘call_user_func_array() expects parameter 1 to be a valid callback’ is
closed to new replies.

## Tags

 * [call_user_func_array](https://wordpress.org/support/topic-tag/call_user_func_array/)
 * [fastcgi](https://wordpress.org/support/topic-tag/fastcgi/)
 * [php-fpm](https://wordpress.org/support/topic-tag/php-fpm/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [algui91](https://wordpress.org/support/users/algui91/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-a-valid-callback/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
