• Well first off, I’m a amature when it comes to code and all the technical stuff that comes with websites…I was trying to fix a problem and some how managed to skrew something up…if not two. WHen I try to get to my site…I get this prompt. I don’t know what to do and I dont want to mess anything else up.

    Here is the prompt I get when trying to visit my site.

    ___________________________________________________________________

    Warning: Cannot modify header information – headers already sent by (output started at /home2/prythn28/public_html/wp-content/plugins/radykal-fancy-gallery/radykal-fancy-gallery.php:1666) in /home2/prythn28/public_html/wp-content/plugins/zedity/zedity.php on line 442

    Parse error: syntax error, unexpected end of file in /home2/prythn28/public_html/wp-content/themes/suits/inc/custom-header.php on line 202

    so,I went to my Cpanel…followed the directory until I got where it lands me BUT, I have no clue from this point on what to do…I don’t want to loose any of my work. Please help. THX

    ____________________________________________________________________

    I will be glad to share the current status of the code if it helps.

Viewing 8 replies - 1 through 8 (of 8 total)
  • lisa

    (@contentiskey)

    Likely you have inadvertently caused a corruption in theme and/or plugin depending on what you were working with.
    The solution is normally to delete the modified plugin or theme file.
    Plugins and theme file folders are located in the WP Content folder (Accessible from file manager in cpanel)
    ===
    Otherwise, you can try to fix the problem code in the file if you remember exactly which plugin or theme file you were working on before the problem started.
    ===
    Are you using a child theme for your website for your customization or did you make changes directly to the original theme or plugin files?

    Thread Starter jdpteam

    (@jdpteam)

    I’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>
    lisa

    (@contentiskey)

    -deleting the theme will remove all the related theme files including any customizations you might have made those files
    -deleting the plugin will remove all the related plugin files including any customizations you might have made those files

    do you have a backup that might contain the version of the files before the changes?

    Thread Starter jdpteam

    (@jdpteam)

    OKay, 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.

    lisa

    (@contentiskey)

    do you have a backup of your content?
    do not keep deleting things until you can isolate the source of the problem.

    Thread Starter jdpteam

    (@jdpteam)

    no, 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?

    I assume you’re deleting via FTP/SSH rather than WordPress itself?

    The good news here is that it seems to just be the WordPress files that you’ve deleted, so your posts etc should all be safe in the database.

    I’d recommend taking a backup of the database now, to be safe, you can usually do this via phpMyAdmin or your hosts control panel.

    Then contact them and see if they have an older version of your files. The original error usually refers to white-space in the code (i.e. extra spaces where there shouldn’t be any)

    Thread Starter jdpteam

    (@jdpteam)

    Thank you Phil, I’m going to try that!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Warning: Cannot modify header information’ is closed to new replies.