Forums

[resolved] wp-admin/index.php segmentation fault (CentOS 5 + PHP 5.2.6) (1 post)

  1. crsh
    Member
    Posted 3 years ago #

    Just to let you know:

    If you are experiencing apache segmentation faults when surfing to wp-admin.php. (blank screen or php file download) this could help you.

    With the help of the die() command we trace it to the following functions:

    function wp_admin_css_color($key, $name, $url, $colors = array()) {
          global $_wp_admin_css_colors;
    
          if ( !isset($_wp_admin_css_colors) )
              $_wp_admin_css_colors = array();
    
          $_wp_admin_css_colors[$key] = (object) array('name' => $name, 'url' => $url, 'colors' => $colors);
      }

    We replaced it like this and our problem was solved:

    function wp_admin_css_color($key, $name, $url, $colors = array()) {
            global $_wp_admin_css_colors;
    
            if ( !isset($_wp_admin_css_colors) )
                    $_wp_admin_css_colors = array();
            $colors = new stdClass;
     $colors->name = $name;
     $colors->url = $url;
     $colors->colors = $colors;
    
            $_wp_admin_css_colors[$key] = $colors;
    
    }

Topic Closed

This topic has been closed to new replies.

About this Topic