Seite 1 von 1

Nach update von 2.0.6 auf 2.0.11 ein kleines problem.

Verfasst: 25.12.2004 07:44
von Rudi69
Frohe Weihnachten allen!

Das Manuelle Updaten hat sich gelohnt, es funktioniert alles Super auser einer Sache.

Wenn ein Name oder Profil angeklickt wird, kommt folgende Fehlermeldung:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /is/htdocs/xxxxx/Url/includes/usercp_viewprofile.php on line 186.
177 $page_title = $lang['Viewing_profile'];
178 include($phpbb_root_path . 'includes/page_header.'.$phpEx);
179
180 if (function_exists('get_html_translation_table'))
181 {
182 $u_search_author = urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES))));
183 }
184 else
185 {
186 $u_search_author = urlencode(str_replace(array('&', ''', '"', '<', '>'), array('&', "'", '"', '<', '>'), $profiledata['username']));
187 }
188
189 $template->assign_vars(array(
Werden die Zeilen von 180 bis 188 gelöscht, funktioniert wieder die Profilansicht.

Jemand eine Idee wo der Fehler liegt ?

Verfasst: 25.12.2004 08:23
von Nico Haase
ersetz mal

Code: Alles auswählen

186 $u_search_author = urlencode(str_replace(array('&', ''', '"', '<', '>'), array('&', "'", '"', '<', '>'), $profiledata['username'])); 
durch

Code: Alles auswählen

186 $u_search_author = urlencode(str_replace(array('&', "'", '"', '<', '>'), array('&', "'", '"', '<', '>'), $profiledata['username'])); 

Verfasst: 25.12.2004 22:31
von Rudi69
Vielen Dank Nico, es hat geklappt :)