• 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    It’s probably not the file itself in this case, but how something is interacting with it.

    Try manually resetting your plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter Lee Beetles

    (@lbeetles)

    Thanks for the reply unfortunately its not resolved. I only have 2 plugins and they seem to not cause the problem.

    Its to do with the theme. When i deactivate the theme the error goes.

    Moderator James Huff

    (@macmanx)

    Excellent, so your site should operate with the Twenty Fourteen theme for now.

    To fix the problem with the theme you were using, it would be best to get in touch with the theme’s designer. If you got the theme here, you can search for it via https://www.ads-software.com/themes/ and find a Support section in the theme’s listing.

    Thread Starter Lee Beetles

    (@lbeetles)

    I got the theme from ThemeForest and its not on there anymore, im guessing this is why.

    I shall have to find another theme and redo it, thanks for your help

    Moderator James Huff

    (@macmanx)

    That could be, it may no longer be compatible.

    If you want to try a free theme instead, the tag filter is quite fun. ??

    https://www.ads-software.com/themes/tag-filter/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Header issue admin.php’ is closed to new replies.