Title: error classes.php on line 1601
Last modified: August 19, 2016

---

# error classes.php on line 1601

 *  [abosami2000](https://wordpress.org/support/users/abosami2000/)
 * (@abosami2000)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-classesphp-on-line-1601/)
 * hi how are you , I don’t know what is happen? but when I add new post this the
   message is appear
 * >  Warning: Cannot modify header information – headers already sent by (output
   > started at /home/abosami/public_html/wp-content/themes/newscast/functions.php:
   > 1) in /home/abosami/public_html/wp-includes/classes.php on line 1601
 * function.php
 *     ```
       <?php
       global $k_option;
   
       load_theme_textdomain('newscast');
   
       #####################################################################
       # Define Thumbnail sizes
       #####################################################################
       $k_option['custom']['imgSize']['base'] = array('width'=>267, 'height'=>180); 	// backend preview size, if changed does not affect the frontend
       $k_option['custom']['imgSize']['S'] = array('width'=>60, 'height'=>60);			// small preview pics for half sized posts and sidebar news
       $k_option['custom']['imgSize']['M'] = array('width'=>180, 'height'=>180);		// big preview pic for full sized posts
       $k_option['custom']['imgSize']['L'] = array('width'=>700, 'height'=>320);		// image for accordion and featured news slider
       $k_option['custom']['imgSize']['XL'] = array('width'=>960, 'height'=>320);		// big images for fullsize pages and fade slider
   
       ##################################################################
       # Get Theme informations and save them to PHP Constants
       ##################################################################
       $the_theme = get_theme_data(TEMPLATEPATH . '/style.css');
       $the_version = trim($the_theme['Version']);
       if(!$the_version) $the_version = "1";
   
       //set theme constants
       define('THEMENAME', $the_theme['Title']);
       define('THEMEVERSION', $the_version);
   
       // set Path constants
       define('KFW', TEMPLATEPATH . '/framework/'); // 'K'riesi 'F'rame 'W'ork;
       define('KFWOPTIONS', 	TEMPLATEPATH . '/theme_options/');
       define('KFWHELPER', 	KFW . 'helper_functions/');
       define('KFWCLASSES', 	KFW . 'classes/');
       define('KFWPLUGINS', 	KFW . 'theme_plugins/');
       define('KFWWIDGETS', 	KFW . 'theme_widgets/');
       define('KFWINC', 		KFW . 'includes/');
       define('KFWSC', 		KFW . 'shortcodes/'); 
   
       // set URI constants
       define('KFW_URI', get_bloginfo('template_url') . '/framework/'); // 'K'riesi 'F'rame 'W'ork;
       define('KFWOPTIONS_URI', 	get_bloginfo('template_url') . '/theme_options/');
       define('KFWHELPER_URI', 	KFW_URI . 'helper_functions/');
       define('KFWCLASSES_URI', 	KFW_URI . 'classes/');
       define('KFWPLUGINS_URI', 	KFW_URI . 'theme_plugins/');
       define('KFWWIDGET_URI', 	KFW_URI . 'theme_widgets/');
       define('KFWINC_URI', 		KFW_URI . 'includes/');
       define('KFWINC_SC', 		KFW_URI . 'shortcodes/'); 
   
       ##################################################################
       # this include calls a file that automatically includes all
       # the files within the folder framework and therefore makes
       # all functions and classes available for later use
       ##################################################################
   
       $autoload['helper'] = array('breadcrumb', 				# breadcrumb navigation
       							'header_includes',			# javascript and css includes for header.php
       							'lots_of_small_helpers', 	# helper functions that make my developer-life easier =)
       							'pagination',				# pagination function
       							'twitter',
       							'kriesi_build_image',		# get twitter feed and display it
       							'kriesi_post_thumb'			# display a resized image
       							);
   
       $autoload['classes'] = array('kclass_display_box');
   
       $autoload['plugins'] = array('kriesi_option_pages/kriesi_option_pages',
       							'kriesi_menu_manager/kriesi_menu_manager',
       							'kriesi_menu_manager/kriesi_menu_display',
       							'kriesi_meta_box/kriesi_meta_box'
       							);
   
       $autoload['widgets'] = array('advertising_widget','sidebar_news');
   
       $autoload['option_pages'] = array('options',
       								'mainpage',
       								'contact',
       								'sidebar_footer',
       								'menu_manager_pages',
       								'menu_manager_cats',
       								'meta_box'
       								 );
   
       $autoload['templatefiles'] = array('wp_list_comments','widgets');
       $autoload['shortcodes'] = array('pullquotes');							
   
       include_once(KFW.'/include_framework.php');
       ?>
       ```
   

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

 *  Thread Starter [abosami2000](https://wordpress.org/support/users/abosami2000/)
 * (@abosami2000)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-classesphp-on-line-1601/#post-1900528)
 * when I look at line 1601
 * I found this
 *     ```
       function send() {
       		header('Content-Type: text/xml');
       		echo "<?xml version='1.0' standalone='yes'?><wp_ajax>";
       		foreach ( (array) $this->responses as $response )
       			echo $response;
       		echo '</wp_ajax>';
       		die();
       	}
       }
       ```
   
 *  Thread Starter [abosami2000](https://wordpress.org/support/users/abosami2000/)
 * (@abosami2000)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-classesphp-on-line-1601/#post-1900664)
 * The problem was in the unicode, I changed to utf8
 *  [vladovna78](https://wordpress.org/support/users/vladovna78/)
 * (@vladovna78)
 * [15 years ago](https://wordpress.org/support/topic/error-classesphp-on-line-1601/#post-1900856)
 * hEEELPPP ! WHAT I HAVE TO DO!? I ve change a theme and cant change any thing
   
   Warning: call_user_func_array() [function.call-user-func-array]: First argument
   is expected to be a valid callback, ‘theme_save_post’ was given in /home/v/vladovna78/
   public_html/wp-includes/plugin.php on line 395
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/v/vladovna78/public_html/wp-includes/plugin.php:395) in /home/v/vladovna78/
   public_html/wp-includes/classes.php on line 1601
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years ago](https://wordpress.org/support/topic/error-classesphp-on-line-1601/#post-1900857)
 * Try:
    – switching to the Twenty Ten theme by renaming your current theme’s folder
   in wp-content/themes using [FTP](http://codex.wordpress.org/FTP_Clients) or whatever
   file management application your host provides.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin.

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

The topic ‘error classes.php on line 1601’ is closed to new replies.

## Tags

 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/error-classesphp-on-line-1601/#post-1900857)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
