Title: php error in new install
Last modified: August 18, 2016

---

# php error in new install

 *  [trondertn00b](https://wordpress.org/support/users/trondertn00b/)
 * (@trondertn00b)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/php-error-in-new-install/)
 * Hi.
 * I use WP2.0 to host a blogg on Gentoo. And i just made another blogg, on my same
   private server. Followed the installation. The blog works fine, but now i have
   installed the widgets plugin and activated it. When i now go and move a widget
   into my sidebar, and then hit the “edit” button, to enter text in a text widget(
   or any other widget). I get this error in the edit window that pops up:
 * Code:
    Warning: call_user_func_array() [function.call-user-func-array]: First
   argument is expected to be a valid callback, ” was given in /home/hula/public_html/
   wp-content/plugins/widgets/widgets.php on line 645
 * Dident get this on on my other blogg, so kinda confused now.
 * plugins/widgets/widgets.php
 * Code:
    <div id=”controls”> <?php foreach ( $registered_widget_controls as $name
   => $widget ) : ?> <div class=”hidden” id=”<?php echo $widget[‘id’]; ?>control”
   > <span class=”controlhandle”><?php echo $name; ?></span> <span id=”<?php echo
   $widget[‘id’]; ?>closer” class=”co$ <div class=”controlform”> <?php call_user_func_array(
   $control[‘callback’], $control[‘params’]); ?> </div> </div> <?php endforeach;?
   > </div>
 * the “php foreach” is line 645

The topic ‘php error in new install’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)
 * [wp2](https://wordpress.org/support/topic-tag/wp2/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [trondertn00b](https://wordpress.org/support/users/trondertn00b/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/php-error-in-new-install/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
