jdpteam
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header informationThank you Phil, I’m going to try that!
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header informationno, I don’t…not that I’m aware of.
I’m not going to delete anything else.
I deleted: pluggable.php
from. /home2/prythn28/public_html/wp-settings.php on line 220
now it’s giving me a fatal error warning.
Have you seen this before?
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header informationOKay, I deleted the theme “suits”…. I was successful in doing that… so it still didn’t work. I then got another warning saying that it was a plug in..so I deleted that too… NOW it’s giving me this prompt.
Warning: require(/home2/prythn28/public_html/wp-includes/pluggable.php): failed to open stream: No such file or directory in /home2/prythn28/public_html/wp-settings.php on line 220
Fatal error: require(): Failed opening required ‘/home2/prythn28/public_html/wp-includes/pluggable.php’ (include_path=’.:/opt/php54/lib/php’) in /home2/prythn28/public_html/wp-settings.php on line 220
I literally feel like I’m digging a deeper hole. I’m afraid I may have lost years of work. I hope I didn’t delete something to skrew my site up.
Forum: Fixing WordPress
In reply to: Warning: Cannot modify header informationI’m using a theme called SUITS. I downloaded this theme about a year ago…I was trying to change something in the code but, clearly didn’t know what I was doing lol.
I tried making a change to the theme code itself and the same with the plugin I was using called fancybox…I didn’t save the code before I made changes. I can’t go back to my dashboard or log in or anything else…it just gives me that error.
If I were to delete the theme…would I lose anything?
<?php /** * Implements a custom header for Suits. * See http://codex.ww.wp.xz.cn/Custom_Headers * * @package Suits * @since Suits 1.0 */ /** * Sets up the WordPress core custom header arguments and settings. * * @uses add_theme_support() to register support for 3.4 and up. * @uses suits_header_style() to style front-end. * @uses suits_admin_header_style() to style wp-admin form. * @uses suits_admin_header_image() to add custom markup to wp-admin form. * * @since Suits 1.0 */ function suits_custom_header_setup() { $args = array( // Text color (empty to use none). 'default-text-color' => 'ffffff', // Set height and width, with flexible values for both. 'flex-width' => true, 'width' => 960, 'flex-height' => true, 'height' => 180, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'suits_header_style', 'admin-head-callback' => 'suits_admin_header_style', 'admin-preview-callback' => 'suits_admin_header_image', ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'suits_custom_header_setup' ); /** * Loads our special font CSS files. * * @since Suits 1.0 */ function suits_custom_header_fonts() { wp_enqueue_style( 'suits-fonts', suits_fonts_url(), array(), null ); } add_action( 'admin_print_styles-appearance_page_custom-header', 'suits_custom_header_fonts' ); /** * Styles the header text displayed on the blog. * * get_header_textcolor() options: Hide text (returns 'blank'), or any hex value. * * @since Suits 1.0 */ function suits_header_style() { $header_image = get_header_image(); $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> <style type="text/css" id="suits-header-css"> <?php if ( ! empty( $header_image ) ) : ?> .site-header { background: url(<?php header_image(); ?>) no-repeat scroll top; } <?php endif; // Has the text been hidden? if ( ! display_header_text() ) : ?> .site-title, .site-description { position: absolute; clip: rect(1px, 1px, 1px, 1px); } <?php if ( empty( $header_image ) ) : ?> .site-header .home-link { min-height: 0; } <?php endif; // If the user has set a custom color for the text, use that. elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) : ?> .site-title, .site-description { color: #<?php echo esc_attr( $text_color ); ?>; } <?php endif; ?> </style> <?php } /** * Styles the header image displayed on the Appearance > Header admin panel. * * @since Suits 1.0 */ function suits_admin_header_style() { $header_image = get_header_image(); ?> <style type="text/css" id="suits-admin-header-css"> .appearance_page_custom-header #headimg { border: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; background-color: #000; <?php if ( ! empty( $header_image ) ) { echo 'background: url(' . esc_url( $header_image ) . ') no-repeat scroll top;'; } ?> } #headimg .home-link { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; display: block; margin: 0 auto; max-width: 960px; <?php if ( ! empty( $header_image ) || display_header_text() ) { echo 'min-height: 180px;'; } ?> text-align: center; text-decoration: none; width: 100%; } <?php if ( ! display_header_text() ) : ?> #headimg h1, #headimg h2 { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); } <?php endif; ?> #headimg h1 { color: #fff; font-family: Lato, sans-serif; font-size: 80px; font-weight: 300; letter-spacing: 5px; line-height: 1; margin: 0; padding: 40px 0 5px; text-transform: uppercase; } #headimg h1 a, #headimg h1 a:hover { color: #fff; text-decoration: none; } #headimg h2 { color: #666; font: normal 14px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; letter-spacing: 2px; margin: 0; padding: 0; text-shadow: none; } .default-header img { max-width: 220px; width: auto; } </style> <?php } /** * Outputs markup to be displayed on the Appearance > Header admin panel. * This callback overrides the default markup displayed there. * * @since Suits 1.0 */ function suits_admin_header_image() { $header = ''; $style = ''; $header_image = get_header_image(); $text_color = get_header_textcolor(); if ( ! empty( $header_image ) ) $header = ' style="background: url(' . $header_image . ') no-repeat scroll top;"'; if ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) $style = ' style="color: #' . $text_color . ';"'; ?> <div id="headimg"<?php echo $header; ?>> <div class="home-link"> <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1> <h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2> </div> </div>