Header issue admin.php
-
I have this error on my site
Warning: Creating default object from empty value in /data01/inter/public_html/wp-content/themes/x-x-x-x-x/admin/admin.php on line 420
Warning: Cannot modify header information – headers already sent by (output started at /data01/inter/public_html/wp-content/themes/cube-office1/admin/admin.php:420) in /data01/inter/public_html/wp-includes/pluggable.php on line 1121
on line 420 (admin.php) is this function:
** Set up global theme options
*************************************/
function rfw_setup_theme_options(){$radium_options_db = get_option(‘radium_themes_’.RADIUMTHEMES_SHORT_NAME);
global $radium_options;
//Check if options are stored properly
if( isset($radium_options_db) && is_array($radium_options_db) )://Check array to an object
foreach ($radium_options_db as $k => $v) {
$radium_options -> {$k} = $v;
}else:
do_action(‘rfw_theme_activation’);
endif;
}
add_action(‘rfw_theme_init’,’rfw_setup_theme_options’,100);
add_action(‘rfw_admin_init’,’rfw_setup_theme_options’,100);Line 420 is “$radium_options -> {$k} = $v;“
And on line 1121 of pluggable.php is “header(“Location: $location”, true, $status);“
Does anyone know what could be causing this?
- The topic ‘Header issue admin.php’ is closed to new replies.