php - wordpress renewal failed, showing blank pages -


i working on renewal of site http://koogen.net/, created sub-directory under name of /wp/ , installed wordpress, worked on renewed version of website.

i got green light , working on changing settings wordpress users can view renewed website accessing koogen.net.

i changed

  • site address http://koogen.net/
  • copied index.php , .htaccess root directory.
  • edited index.php's

    require(‘/wp-blog-header.php’); require(‘/wp/wp-blog-header.php’);

and

*edited .htaccess's

rewritebase /wp/ 

to

rewritebase / 

and

rewriterule . /wp/index.php [l] 

to

rewriterule . /index.php [l] 

and thought should work fine. instead gave me blank pages everywhere , can't fix them.

i tried wp_debug true setting it's not showing me error messages

i guessing messed htaccess or php database. how fix problem... appreciated!

thanks in advance!!!


update: able turn on debug mode, , gave me error message.

parse error: parse error, unexpected t_string, expecting t_old_function or t_function or t_var or '}' in /home/dartpacs/koogen.net/public_html/wp/wp-includes/locale.php on line 21

so looked @ it, not find wrong code... there missing?

<?php  /**   * date , time locale object   *   * @package wordpress   * @subpackage i18n   */    /**   * class loads calendar locale.   *   * @since 2.1.0   */  class wp_locale {  	/**  	 * stores translated strings full weekday names.  	 *  	 * @since 2.1.0  	 * @var array  	 */  	public $weekday;    	/**  	 * stores translated strings 1 character weekday names.  	 *  	 * there hack make sure tuesday , thursday,  	 * sunday , saturday, don't conflict. see init() method more.  	 *  	 * @see wp_locale::init() how handle hack.  	 *  	 * @since 2.1.0  	 * @var array  	 */  	public $weekday_initial;    	/**  	 * stores translated strings abbreviated weekday names.  	 *  	 * @since 2.1.0  	 * @var array  	 */  	public $weekday_abbrev;    	/**  	 * stores translated strings full month names.  	 *  	 * @since 2.1.0  	 * @var array  	 */  	public $month;    	/**  	 * stores translated strings abbreviated month names.  	 *  	 * @since 2.1.0  	 * @var array  	 */  	public $month_abbrev;    	/**  	 * stores translated strings 'am' , 'pm'.  	 *  	 * capitalized versions.  	 *  	 * @since 2.1.0  	 * @var array  	 */  	public $meridiem;    	/**  	 * text direction of locale language.  	 *  	 * default left right 'ltr'.  	 *  	 * @since 2.1.0  	 * @var string  	 */  	public $text_direction = 'ltr';    	/**  	 * @var array  	 */  	public $number_format;    	/**  	 * sets translated strings , object properties.  	 *  	 * method creates translatable strings various  	 * calendar elements. allows specifying locale  	 * specific calendar names , text direction.  	 *  	 * @since 2.1.0  	 * @access private  	 */  	function init() {  		// weekdays  		$this->weekday[0] = /* translators: weekday */ __('sunday');  		$this->weekday[1] = /* translators: weekday */ __('monday');  		$this->weekday[2] = /* translators: weekday */ __('tuesday');  		$this->weekday[3] = /* translators: weekday */ __('wednesday');  		$this->weekday[4] = /* translators: weekday */ __('thursday');  		$this->weekday[5] = /* translators: weekday */ __('friday');  		$this->weekday[6] = /* translators: weekday */ __('saturday');    		// first letter of each day. _%day%_initial suffix hack make  		// sure day initials unique.  		$this->weekday_initial[__('sunday')]    = /* translators: one-letter abbreviation of weekday */ __('s_sunday_initial');  		$this->weekday_initial[__('monday')]    = /* translators: one-letter abbreviation of weekday */ __('m_monday_initial');  		$this->weekday_initial[__('tuesday')]   = /* translators: one-letter abbreviation of weekday */ __('t_tuesday_initial');  		$this->weekday_initial[__('wednesday')] = /* translators: one-letter abbreviation of weekday */ __('w_wednesday_initial');  		$this->weekday_initial[__('thursday')]  = /* translators: one-letter abbreviation of weekday */ __('t_thursday_initial');  		$this->weekday_initial[__('friday')]    = /* translators: one-letter abbreviation of weekday */ __('f_friday_initial');  		$this->weekday_initial[__('saturday')]  = /* translators: one-letter abbreviation of weekday */ __('s_saturday_initial');    		foreach ($this->weekday_initial $weekday_ => $weekday_initial_) {  			$this->weekday_initial[$weekday_] = preg_replace('/_.+_initial$/', '', $weekday_initial_);  		}    		// abbreviations each day.  		$this->weekday_abbrev[__('sunday')]    = /* translators: three-letter abbreviation of weekday */ __('sun');  		$this->weekday_abbrev[__('monday')]    = /* translators: three-letter abbreviation of weekday */ __('mon');  		$this->weekday_abbrev[__('tuesday')]   = /* translators: three-letter abbreviation of weekday */ __('tue');  		$this->weekday_abbrev[__('wednesday')] = /* translators: three-letter abbreviation of weekday */ __('wed');  		$this->weekday_abbrev[__('thursday')]  = /* translators: three-letter abbreviation of weekday */ __('thu');  		$this->weekday_abbrev[__('friday')]    = /* translators: three-letter abbreviation of weekday */ __('fri');  		$this->weekday_abbrev[__('saturday')]  = /* translators: three-letter abbreviation of weekday */ __('sat');    		// months  		$this->month['01'] = /* translators: month name */ __('january');  		$this->month['02'] = /* translators: month name */ __('february');  		$this->month['03'] = /* translators: month name */ __('march');  		$this->month['04'] = /* translators: month name */ __('april');  		$this->month['05'] = /* translators: month name */ __('may');  		$this->month['06'] = /* translators: month name */ __('june');  		$this->month['07'] = /* translators: month name */ __('july');  		$this->month['08'] = /* translators: month name */ __('august');  		$this->month['09'] = /* translators: month name */ __('september');  		$this->month['10'] = /* translators: month name */ __('october');  		$this->month['11'] = /* translators: month name */ __('november');  		$this->month['12'] = /* translators: month name */ __('december');    		// abbreviations each month. uses same hack above around  		// 'may' duplication.  		$this->month_abbrev[__('january')] = /* translators: three-letter abbreviation of month */ __('jan_january_abbreviation');  		$this->month_abbrev[__('february')] = /* translators: three-letter abbreviation of month */ __('feb_february_abbreviation');  		$this->month_abbrev[__('march')] = /* translators: three-letter abbreviation of month */ __('mar_march_abbreviation');  		$this->month_abbrev[__('april')] = /* translators: three-letter abbreviation of month */ __('apr_april_abbreviation');  		$this->month_abbrev[__('may')] = /* translators: three-letter abbreviation of month */ __('may_may_abbreviation');  		$this->month_abbrev[__('june')] = /* translators: three-letter abbreviation of month */ __('jun_june_abbreviation');  		$this->month_abbrev[__('july')] = /* translators: three-letter abbreviation of month */ __('jul_july_abbreviation');  		$this->month_abbrev[__('august')] = /* translators: three-letter abbreviation of month */ __('aug_august_abbreviation');  		$this->month_abbrev[__('september')] = /* translators: three-letter abbreviation of month */ __('sep_september_abbreviation');  		$this->month_abbrev[__('october')] = /* translators: three-letter abbreviation of month */ __('oct_october_abbreviation');  		$this->month_abbrev[__('november')] = /* translators: three-letter abbreviation of month */ __('nov_november_abbreviation');  		$this->month_abbrev[__('december')] = /* translators: three-letter abbreviation of month */ __('dec_december_abbreviation');    		foreach ($this->month_abbrev $month_ => $month_abbrev_) {  			$this->month_abbrev[$month_] = preg_replace('/_.+_abbreviation$/', '', $month_abbrev_);  		}    		// meridiems  		$this->meridiem['am'] = __('am');  		$this->meridiem['pm'] = __('pm');  		$this->meridiem['am'] = __('am');  		$this->meridiem['pm'] = __('pm');    		// numbers formatting  		// see http://php.net/number_format    		/* translators: $thousands_sep argument http://php.net/number_format, default , */  		$trans = __('number_format_thousands_sep');  		$this->number_format['thousands_sep'] = ('number_format_thousands_sep' == $trans) ? ',' : $trans;    		/* translators: $dec_point argument http://php.net/number_format, default . */  		$trans = __('number_format_decimal_point');  		$this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans;    		// set text direction.  		if ( isset( $globals['text_direction'] ) )  			$this->text_direction = $globals['text_direction'];  		/* translators: 'rtl' or 'ltr'. sets text direction wordpress. */  		elseif ( 'rtl' == _x( 'ltr', 'text direction' ) )  			$this->text_direction = 'rtl';    		if ( 'rtl' === $this->text_direction && strpos( $globals['wp_version'], '-src' ) ) {  			$this->text_direction = 'ltr';  			add_action( 'all_admin_notices', array( $this, 'rtl_src_admin_notice' ) );  		}  	}    	function rtl_src_admin_notice() {  		echo '<div class="error"><p>' . 'the <code>build</code> directory of develop repository must used rtl.' . '</p></div>';  	}    	/**  	 * retrieve full translated weekday word.  	 *  	 * week starts on translated sunday , can fetched  	 * using 0 (zero). week starts 0 (zero)  	 * , ends on saturday fetched using 6 (six).  	 *  	 * @since 2.1.0  	 * @access public  	 *  	 * @param int $weekday_number 0 sunday through 6 saturday  	 * @return string full translated weekday  	 */  	function get_weekday($weekday_number) {  		return $this->weekday[$weekday_number];  	}    	/**  	 * retrieve translated weekday initial.  	 *  	 * weekday initial retrieved translated  	 * full weekday word. when translating weekday initial  	 * pay attention make sure starting letter  	 * not conflict.  	 *  	 * @since 2.1.0  	 * @access public  	 *  	 * @param string $weekday_name  	 * @return string  	 */  	function get_weekday_initial($weekday_name) {  		return $this->weekday_initial[$weekday_name];  	}    	/**  	 * retrieve translated weekday abbreviation.  	 *  	 * weekday abbreviation retrieved translated  	 * full weekday word.  	 *  	 * @since 2.1.0  	 * @access public  	 *  	 * @param string $weekday_name full translated weekday word  	 * @return string translated weekday abbreviation  	 */  	function get_weekday_abbrev($weekday_name) {  		return $this->weekday_abbrev[$weekday_name];  	}    	/**  	 * retrieve full translated month month number.  	 *  	 * $month_number parameter has string  	 * because must have '0' in front of number  	 * less 10. starts '01' , ends @  	 * '12'.  	 *  	 * can use integer instead , add  	 * '0' before numbers less 10 you.  	 *  	 * @since 2.1.0  	 * @access public  	 *  	 * @param string|int $month_number '01' through '12'  	 * @return string translated full month name  	 */  	function get_month($month_number) {  		return $this->month[zeroise($month_number, 2)];  	}    	/**  	 * retrieve translated version of month abbreviation string.  	 *  	 * $month_name parameter expected translated or  	 * translatable version of month.  	 *  	 * @since 2.1.0  	 * @access public  	 *  	 * @param string $month_name translated month abbreviated version  	 * @return string translated abbreviated month  	 */  	function get_month_abbrev($month_name) {  		return $this->month_abbrev[$month_name];  	}    	/**  	 * retrieve translated version of meridiem string.  	 *  	 * $meridiem parameter expected not translated.  	 *  	 * @since 2.1.0  	 * @access public  	 *  	 * @param string $meridiem either 'am', 'pm', 'am', or 'pm'. not translated version.  	 * @return string translated version  	 */  	function get_meridiem($meridiem) {  		return $this->meridiem[$meridiem];  	}    	/**  	 * global variables deprecated. backwards compatibility only.  	 *  	 * @deprecated backwards compatibility only.  	 * @access private  	 *  	 * @since 2.1.0  	 */  	function register_globals() {  		$globals['weekday']         = $this->weekday;  		$globals['weekday_initial'] = $this->weekday_initial;  		$globals['weekday_abbrev']  = $this->weekday_abbrev;  		$globals['month']           = $this->month;  		$globals['month_abbrev']    = $this->month_abbrev;  	}    	/**  	 * constructor calls helper methods set object variables  	 *  	 * @uses wp_locale::init()  	 * @uses wp_locale::register_globals()  	 * @since 2.1.0  	 *  	 */  	function __construct() {  		$this->init();  		$this->register_globals();  	}    	/**  	 * checks if current locale rtl.  	 *  	 * @since 3.0.0  	 * @return bool whether locale rtl.  	 */  	function is_rtl() {  		return 'rtl' == $this->text_direction;  	}    	/**  	 * register date/time format strings general pot.  	 *  	 * private, unused method add date/time formats translated  	 * on wp-admin/options-general.php general pot  	 * otherwise added admin pot.  	 *  	 * @since 3.6.0  	 */  	function _strings_for_pot() {  		/* translators: localized date format, see http://php.net/date */  		__( 'f j, y' );  		/* translators: localized time format, see http://php.net/date */  		__( 'g:i a' );  		/* translators: localized date , time format, see http://php.net/date */  		__( 'f j, y g:i a' );  	}  }    /**   * checks if current locale rtl.   *   * @since 3.0.0   * @return bool whether locale rtl.   */  function is_rtl() {  	global $wp_locale;  	return $wp_locale->is_rtl();  }

i figured 1 myself... found out server using php4.3 servers default setting... why showing parse error... changed latest version , works fine.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -