Title: Rohin's Replies | WordPress.org

---

# Rohin

  [  ](https://wordpress.org/support/users/rohin/)

 *   [Profile](https://wordpress.org/support/users/rohin/)
 *   [Topics Started](https://wordpress.org/support/users/rohin/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rohin/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rohin/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rohin/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rohin/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rohin/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [domain redirect](https://wordpress.org/support/topic/domain-redirect-5/)
 *  Thread Starter [Rohin](https://wordpress.org/support/users/rohin/)
 * (@rohin)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/domain-redirect-5/#post-3715693)
 * 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?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [domain redirect](https://wordpress.org/support/topic/domain-redirect-5/)
 *  Thread Starter [Rohin](https://wordpress.org/support/users/rohin/)
 * (@rohin)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/domain-redirect-5/#post-3715691)
 * Now this is happening at random irrespective of the theme and plugin by the way
   the website is [http://www.thoughtsunbound.com](http://www.thoughtsunbound.com)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [domain redirect](https://wordpress.org/support/topic/domain-redirect-5/)
 *  Thread Starter [Rohin](https://wordpress.org/support/users/rohin/)
 * (@rohin)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/domain-redirect-5/#post-3715686)
 * That is my functions.php file. I am not sure what is the error with it. I am 
   going nuts trying to debug it
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [domain redirect](https://wordpress.org/support/topic/domain-redirect-5/)
 *  Thread Starter [Rohin](https://wordpress.org/support/users/rohin/)
 * (@rohin)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/domain-redirect-5/#post-3715685)
 * 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
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [domain redirect](https://wordpress.org/support/topic/domain-redirect-5/)
 *  Thread Starter [Rohin](https://wordpress.org/support/users/rohin/)
 * (@rohin)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/domain-redirect-5/#post-3715681)
 * 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?

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