Updating from 2.0.10 to 2.0.11 view profile error

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Updating from 2.0.10 to 2.0.11 view profile error
Trubador
CZ Active Member
Trubador has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Aircraft Technician
Age: 52
Gender: Male
Status: Offline
Joined: Nov 16, 2004
0.01 posts per day
Posts: 104
Points: 4,807
   
Trying to view a member's profile, i get this:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /includes/usercp_viewprofile.php on line 186

Line 186 is as follows:

$u_search_author = urlencode(str_replace(array('&amp;', ''', '&quot;', '&lt;', '&gt;'), array('&', "'", '"', '<', '>'), $profiledata['username'])));

I've double and treble checked that I've installed correctly.... I'm at an end.

Can anyone help?

Trub




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#2   re: Updating from 2.0.10 to 2.0.11 view profile error
fncool
CZ Super Newbie
 Codezwiz Site Donator
fncool has been a member for over 19 year's 19 Year Member
canada.gif
Age: 62
Gender: Male
Status: Offline
Joined: Dec 19, 2004
0.01 posts per day
Posts: 56
Points: 4,786
   
i think i replaced that line with this one:

$u_search_author = urlencode(str_replace(array('&amp;', ''', '&quot;', '&lt;', '&gt;'), array('&', ''', '"', '<', '>'), $profiledata['username'])));


that should stop the error, but maybe someone can confirm if that was a mistake, it kinda defeats the purpose, either way.

it looks to me right now that you have one too many ")" at the end also

i'm not at home, so i'm just trying to go from memory



_________________
I'm only replying because I want those extra 22.52 points!
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum