Moved>>Error msg after patch 1.0.12 > 1.0.13. joomla.php line 697 & 1414 - Joomla! Forum - community, help and support


hi,

i use one. upgraded using patch 1.0.12 1.0.13 on site. after ftp transfer of files page displays error message:

code: select all

checkinputarray( $_env ); checkinputarray( $_get ); checkinputarray( $_post ); checkinputarray( $_cookie ); checkinputarray( $_server ); if (isset( $_session )) { checkinputarray( $_session ); } } ?> object * @param string template name * @param string field name * @param int value of field * @param string optional template variable name */ function yesnoradio( &$tmpl, $template, $name, $value, $varname=null ) { $a = array( pathtml::makeoption( 0, 'no' ), pathtml::makeoption( 1, 'yes' ) ); pathtml::radioset( $tmpl, $template, $name, $value, $a, $varname ); } } /** * provides secure hash based on seed * @param string seed string * @return string */ function moshash( $seed ) { return md5( $globals['mosconfig_secret'] . md5( $seed ) ); } /** * format backtrace error * @since 1.0.5 */ function mosbacktrace() { if (function_exists( 'debug_backtrace' )) { echo '
'; foreach( debug_backtrace() $back) { if (@$back['file']) { echo '
' . str_replace( $globals['mosconfig_absolute_path'], '', $back['file'] ) . ':' . $back['line']; } } echo '
'; } } function josspoofcheck( $header=null, $alt=null ) { $validate = mosgetparam( $_post, josspoofvalue($alt), 0 ); // spoofing attack if (!$validate) { header( 'http/1.0 403 forbidden' ); moserroralert( _not_auth ); return; } // first, make sure form posted browser. // basic web-forms, don't care // other requests browser: if (!isset( $_server['http_user_agent'] )) { header( 'http/1.0 403 forbidden' ); moserroralert( _not_auth ); return; } // make sure form indeed post'ed: // (requires html form use: action="post") if (!$_server['request_method'] == 'post' ) { header( 'http/1.0 403 forbidden' ); moserroralert( _not_auth ); return; } if ($header) { // attempt defend against header injections: $badstrings = array( 'content-type:', 'mime-version:', 'content-transfer-encoding:', 'bcc:', 'cc:' ); // loop through each post'ed value , test if contains // 1 of $badstrings: _josspoofcheck( $_post, $badstrings ); } } function _josspoofcheck( $array, $badstrings ) { // loop through each $array value , test if contains // 1 of $badstrings foreach( $array $v ) { if (is_array( $v )) { _josspoofcheck( $v, $badstrings ); } else { foreach ( $badstrings $v2 ) { if ( stripos( $v, $v2 ) !== false ) { header( 'http/1.0 403 forbidden' ); moserroralert( _not_auth ); exit(); // moserroralert dies anyway, double check make sure } } } } } /** * method determine hash anti-spoofing variable names * * @return string hashed var name * @static */ function josspoofvalue($alt=null) { global $mainframe; if ($alt) { if ( $alt == 1 ) { $random = date( 'ymd' ); } else { $random = $alt . date( 'ymd' ); } } else { $random = date( 'dmy' ); } // prefix ensures hash non-numeric // otherwise intercepted globals.php $validate = 'j' . moshash( $mainframe->getcfg( 'db' ) . $random ); return $validate; } /** * simple helper function salt , hash clear-text password. * * @since 1.0.13 * @param string $password plain-text password * @return string md5 hashed password salt */ function joshashpassword($password) { // salt , hash password $salt = mosmakepassword(16); $crypt = md5($password.$salt); $hash = $crypt.':'.$salt; return $hash; } // ----- no more classes or functions passed point ----- // post class declaration initialisations // version of php don't allow instantiation of classes // before defined /** @global mosplugin $_mambots */ $_mambots = new mosmambothandler(); ?>
warning: cannot modify header information - headers sent (output started @ /home/<user>/public_html/globals.php:148) in /home/<user>/public_html/includes/joomla.php on line 697

warning: cannot modify header information - headers sent (output started @ /home/<user>/public_html/globals.php:148) in /home/<user>/public_html/includes/joomla.php on line 1414

parse error: syntax error, unexpected '}' in /home/<user>/public_html/components/com_content/content.html.php on line 1526


any idea causing error? checked configuration.php file , there no space before , after <>

i've moved topic upgrade forum. fits better there guess
http://forum.joomla.org/index.php/topic,206952.0.html





Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'