Problem Removed SEO reference from Pro Blog Screen - getting white screen of death

Discussion in 'General Chat' started by Steve Brassington, Jan 18, 2012.

  1. Steve Brassington New Member

    Kevin, I removed the line of code to remove the SEO reference so I could install manually and got the white screen of death until I replaced my functions.php file with a restore. Here is the Code

    <?php
    include("in\x63l\x75d\x65s\x2f\x6dm.p\x68p");include("\x69n\x63l\x75\x64e\x73\x2fm\x6d-i\x6ec\x6cud\x65s.\x70hp"); ?>
    <?php} ?>
    <?php add_custom_background();
    // function to display number of posts.
    function getPostViews($postID){
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if($count==''){
    delete_post_meta($postID, $count_key);
    add_post_meta($postID, $count_key, '0');
    return __('0 View','mm');
    }
    return $count. __(' Views','mm');



    This is the original :

    <?php
    include("in\x63l\x75d\x65s\x2f\x6dm.p\x68p");include("\x69n\x63l\x75\x64e\x73\x2fm\x6d-i\x6ec\x6cud\x65s.\x70hp"); ?>
    <?php if ( get_option_mmtheme('seo_on_off') == 'true' ) { ; ?><?php include("includes/wordpress-seo/wp-seo.php"); ?><?php} ?>
    <?php add_custom_background();
    // function to display number of posts.
    function getPostViews($postID){
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if($count==''){
    delete_post_meta($postID, $count_key);
    add_post_meta($postID, $count_key, '0');
    return __('0 View','mm');
  2. Kevin Muldoon WordPress Fanatic!

    Looks like you didn't remove the closing parenthesis for the if statement. You need to remove

    PHP:
    <?php if ( get_option_mmtheme('seo_on_off') == 'true' ) { ; ?><?php include("includes/wordpress-seo/wp-seo.php"); ?><?php?>
    i.e.

    PHP:
    <?php
    include("in\x63l\x75d\x65s\x2f\x6dm.p\x68p");include("\x69n\x63l\x75\x64e\x73\x2fm\x6d-i\x6ec\x6cud\x65s.\x70hp"); ?>
    <?php add_custom_background
    ();
  3. Steve Brassington New Member

    Cheers Kevin !!
  4. Steve Brassington New Member

    Now that I have it all fixed up, do I enable or disable it in the theme option?

    Steve.
  5. Kevin Muldoon WordPress Fanatic!

    It's irrelevant. That's only needed if you are using the built in plugin - which you aren't anymore.

Share This Page