Warning: Cannot use a scalar value as an array

Hey guys, I don’t know much about php programming. I ran across this error while trying to access the widgets in wordpress. Thanks for the help! :slight_smile:

[php]function art_widget_expand_control($id)
{
global $wp_registered_widget_controls;
if (strpos($id, ‘art_vmenu’)!== false) return;
$controls = &$wp_registered_widget_controls[$id];
$controls[‘params’][0][‘id’]=$id; // this line here is giving the error
$controls[‘callback_redirect’]=$controls[‘callback’];
$controls[‘callback’]=‘widget_cache_extra_control’;
}
[/php]

Is this for a plugin? If so, what is the plugin name/version?

Im using artisteer to make templates for wordpress.

@hydride

I have never used this plugin. However, I did some searching for you… Seems to be a few solutions to your problem.

Please follow this link:
http://www.artisteer.com/?post_id=146810&p=forum_post

Sponsor our Newsletter | Privacy Policy | Terms of Service