Parse error in usercp_avatar, please help :)

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Parse error in usercp_avatar, please help :)
nicruisin
CZ Active Member
nicruisin has been a member for over 20 year's 20 Year Member
uk.gif
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Feb 06, 2004
0.02 posts per day
Posts: 119
Points: 6,632
   
Im getting the following parse error on my update profile page:



Parse error: parse error, expecting `')'' in /home/nicruisi/public_html/html/includes/usercp_avatar.php on line 282



Here are lines 281-283 of the file, could someone please point me in the right direction?




function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformatfunction display_avatar_gallery, &$mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id &$gender, &$birthday)
{



Thanks! icon_mrgreen.gif

EDIT;
THE PROBLEM DEEPENS icon_cry.gif

When I try to change avatars in the Forums / Profiles I get this error;



Parse error: parse error, expecting `')'' in /home/nicruisi/public_html/html/includes/usercp_avatar.php on line 282

Fatal error: Call to undefined function: display_avatar_gallery() in /home/nicruisi/public_html/html/includes/usercp_register.php on line 899




Here is line 899 from the user_cpregister.php



display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, '$gender', '$newsletter', $user_lang, $user_timezone, $user_dateformat, $auto_response, $auto_response_on, $userdata['session_id'], $newsletter, $gender, $birthday);
}





_________________


[ Register or login to view links on this board.] [color=red]Cars, babes and cruisin' from the maddest palce of them all... Northern Ireland!
Back to top Reply with quote
#2   re: Parse error in usercp_avatar, please help :)
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
you must have just recently added edited that because the function display is repeated in the middle of the code:


function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat[B]function display_avatar_gallery, &$mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id [/B]&$gender, &$birthday)
{


re-edit the file and that should get ya fixed


taut


Back to top Reply with quote
#3   re: Parse error in usercp_avatar, please help :)
nicruisin
CZ Active Member
nicruisin has been a member for over 20 year's 20 Year Member
uk.gif
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Feb 06, 2004
0.02 posts per day
Posts: 119
Points: 6,632
   
icon_rolleyes.gif

Fraid not, still the same errors as above icon_cry.gif

Thanks though, any other ideas?




_________________


[ Register or login to view links on this board.] [color=red]Cars, babes and cruisin' from the maddest palce of them all... Northern Ireland!
Back to top Reply with quote
#4   re: Parse error in usercp_avatar, please help :)
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
repost the lines after you correct it plz



Back to top Reply with quote
#5   re: Parse error in usercp_avatar, please help :)
nicruisin
CZ Active Member
nicruisin has been a member for over 20 year's 20 Year Member
uk.gif
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Feb 06, 2004
0.02 posts per day
Posts: 119
Points: 6,632
   
icon_redface.gif

Sorry didn't do what you told me properly, left a wee bit in there icon_redface.gif

The updating of the profile now works icon_mrgreen.gif

But, icon_cry.gif

Now when you try to set an avatar you get this;




Fatal error: Cannot pass parameter 31 by reference in /home/nicruisi/public_html/html/includes/usercp_register.php on line 899



Here is the code:



display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, '$gender', '$newsletter', $user_lang, $user_timezone, $user_dateformat, $auto_response, $auto_response_on, $userdata['session_id'], $newsletter, $gender, $birthday);
}


Thanks for your help, half way there now! icon_biggrin.gif




_________________


[ Register or login to view links on this board.] [color=red]Cars, babes and cruisin' from the maddest palce of them all... Northern Ireland!
Back to top Reply with quote
#6   re: Parse error in usercp_avatar, please help :)
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
I see gender in there twice...once as 'gender' and again as gender..please re-chekc the install files and your install process



Back to top Reply with quote
#7   re: Parse error in usercp_avatar, please help :)
nicruisin
CZ Active Member
nicruisin has been a member for over 20 year's 20 Year Member
uk.gif
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Feb 06, 2004
0.02 posts per day
Posts: 119
Points: 6,632
   
icon_rolleyes.gif

I've tried for 3 hours but no joy, there was a gender in the wrong place but I fixed that and everything's still the same, exact same error as above? icon_redface.gif




_________________


[ Register or login to view links on this board.] [color=red]Cars, babes and cruisin' from the maddest palce of them all... Northern Ireland!
Back to top Reply with quote
#8   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $auto_response, $auto_response_on, $userdata['session_id'], $newsletter, $gender, $birthday);
}




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: Parse error in usercp_avatar, please help :)
nicruisin
CZ Active Member
nicruisin has been a member for over 20 year's 20 Year Member
uk.gif
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Feb 06, 2004
0.02 posts per day
Posts: 119
Points: 6,632
   
Thanks Telli, I'll try that one icon_biggrin.gif

Please ignore then or delete the post I made in a topic relating to this to someone who got this sorted.

Thanks again! icon_biggrin.gif




_________________


[ Register or login to view links on this board.] [color=red]Cars, babes and cruisin' from the maddest palce of them all... Northern Ireland!
Back to top Reply with quote
#10   re: Parse error in usercp_avatar, please help :)
nicruisin
CZ Active Member
nicruisin has been a member for over 20 year's 20 Year Member
uk.gif
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Feb 06, 2004
0.02 posts per day
Posts: 119
Points: 6,632
   
Yipee! icon_biggrin.gif

It's all good now, sorry about having to have it spelt out for me, but a happy camper I am now! icon_mrgreen.gif




_________________


[ Register or login to view links on this board.] [color=red]Cars, babes and cruisin' from the maddest palce of them all... Northern Ireland!
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