Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Rohin

    (@rohin)

    I found that the issue is my theme… every time I activate it and then change anything on my blog or save anything my page redirects to the blank page. I tried the same on my local installation but everything is working fine, not sure what the error is. Any pointers?

    What theme are you using? Where did you download it from?

    Thread Starter Rohin

    (@rohin)

    I created my own theme. I found the issue to be with the functions.php file

    <?php
    /**
    * simple functions and definitions
    * The first function, scratch_setup(), sets up the theme by registering support
    * for various features in WordPress, such as post thumbnails, navigation menus, and the like.
    * @package rohinbhargava
    * @subpackage thoughtsunbound
    * @since scratch 1.0
    **/
    /** Tell WordPress to run scratch_setup() when the 'after_setup_theme' hook is run. **/
    add_action('after_setup_theme','scratch_setup');
    if (!function_exists('scratch_setup')) :
    	function scratch_setup() {
            // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style();
            // Post Format support.
            add_theme_support('post-formats', array('aside', 'chat', 'gallery', 'image','link', 'quote', 'status', 'video', 'audio'));
            // This theme uses post thumbnails
    		if (function_exists('add_theme_support')) {
    		add_theme_support('post- thumbnails');
    		set_post_thumbnail_size(480, 320, true); }
    
    		add_image_size('scratch-potrait', 960, 1280, false);
    		add_image_size ('scratch-landscape', 960, 640, false);
    
            // Add default posts and comments RSS feed links to head add_theme_support('automatic-feed-links');
            //This theme uses wp_nav_menu() in one location.
            register_nav_menus(array('primary' => __('Primary Navigation','scratch'), ));
    } endif;
    
    $prefix = 'thub_';
    global $meta_boxes;
    $meta_boxes = array();
    
    function scratch_content_nav( $nav_id ) {
    	global $wp_query;?>
    <nav id="<?php	echo $nav_id;?>">
    	<?php if ( $wp_query->max_num_pages > 1 ) :?>
    	<h3 class="assistive-text"><?php _e('Post navigation', 'scratch');?></h3>
    	<?php next_posts_link(__('<span class="meta-nav nav-previous">&larr; Older posts</span>', 'scratch'));?>
    	<?php previous_posts_link(__('<span class="meta-nav nav-next">Newer posts &rarr;</span>', 'scratch'));?>
    	<div class="clear"></div>
    	<?php endif; ?>
    </nav><!-- #nav-above -->
    <?php }?>
    
    <?php function scratch_post_nav( $nav_id ) {
    	global $wp_query; ?>
    	<nav id="<?php	echo $nav_id;?>">
    		<h3 class="assistive-text"><?php _e('Post navigation', 'scratch');?></h3>
    		<?php previous_post_link( '%link', '<span class="meta-nav nav-previous">&larr;</span> %title' )?>
    		<?php next_post_link( '%link', '<span class="meta-nav nav-next">%title  &rarr;</span>' )?>
    		<div class="clear"></div>
    	</nav><!-- #nav-above -->
    <?php } ?>

    Can you help find the issue with the above content

    Thread Starter Rohin

    (@rohin)

    That is my functions.php file. I am not sure what is the error with it. I am going nuts trying to debug it

    I can’t see anything obvious in that code. Try checking your site’s error logs for error messages.

    Thread Starter Rohin

    (@rohin)

    Now this is happening at random irrespective of the theme and plugin by the way the website is http://www.thoughtsunbound.com

    Thread Starter Rohin

    (@rohin)

    A plugin ‘Per Post Scripts & Styles’ seems to be the culprit for now. I will check and revert back if the issue re-occurs.

    Also is it possible that the issue is caused by a memory issue?

    I’ve never seen this being caused by a memory issue and it’s hard to see how that could be the problem – unless there’s something very wrong with the server’s configuration. Plus a memory error should be popping up in your error log, if that was the case.

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

The topic ‘domain redirect’ is closed to new replies.