SOLVED Problem With Registrer


Subject: Problem With Registrer
When a person is registrering, in the page:

Quote:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/todomods/public_html/includes/usercp_register.php on line 574

Warning: Cannot modify header information - headers already sent by (output started at /home/todomods/public_html/includes/usercp_register.php:574) in /home/todomods/public_html/includes/page_header.php on line 1398

Warning: Cannot modify header information - headers already sent by (output started at /home/todomods/public_html/includes/usercp_register.php:574) in /home/todomods/public_html/includes/page_header.php on line 1404

Warning: Cannot modify header information - headers already sent by (output started at /home/todomods/public_html/includes/usercp_register.php:574) in /home/todomods/public_html/includes/page_header.php on line 1405


what i doing for resolve this?

Thanks

Sorry for my bad english.

Page: www.pspfusion.es - IP: Ultimate versión.

Profile PM  
Subject: Re: Problem With Registrer
maybe is something in overall_header.tpl

maybe u puted code wrongly in that "¡Bienvenido Invitado!"

Subject: Re: Problem With Registrer
I upload the original overall_header and the page said the same problem... i need help please.

Bye and thanks

Profile PM  
Subject: Re: Problem With Registrer
The problem persist, now appear this:

Quote:
[Icy Phoenix Debug] PHP Notice: in file /includes/usercp_register.php on line 559: htmlspecialchars() expects parameter 1 to be string, array given
[Icy Phoenix Debug] PHP Notice: in file /includes/page_header.php on line 1185: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2004)
[Icy Phoenix Debug] PHP Notice: in file /includes/page_header.php on line 1191: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2004)
[Icy Phoenix Debug] PHP Notice: in file /includes/page_header.php on line 1192: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2004)


What Can i Do to resolve this proble?

Thanks.

Profile PM  
Subject: Re: Problem With Registrer
Some questions :
- Did you install any mod ? ( list it )
- What is your version of Icy Phoenix ? ( Try to update to 1.3.0.53 .a RC2 if you aren't yet )

Try to upload original /includes/usercp_register.php and /includes/page_header.php file for try and let's see.

Subject: Re: Problem With Registrer
try to resend: "includes/usercp_register.php", and do modifications one by one

Profile PM  
Subject: Re: Problem With Registrer
My Icy Phoenix version is 1.3.0.53. I update to this new version one week ago and i don´t install any mod and i upload original files and the problem persist.



Thanks.

Profile PM  
Subject: Re: Problem With Registrer
Go on " Patch " section and update to the last version ( patch .a RC 2 ).
Don't forget to run install.php / database_update.php

Subject: Re: Problem With Registrer
If I upgrade to the new version will lose the changes made to the template?

Thanks.

Profile PM  
Subject: Re: Problem With Registrer
Nop. It's only a patch, not really a new version. It's just was done for fix several troubles, bugs, and security issues. You won't lose something.

Subject: Re: Problem With Registrer
I updated to Icy Phoenix 1.3.0.53a - Patch RC2 and the problem persist :( ..... I need resolve this problem. Is there any way that the errors not appear in register?

Thanks.

Profile PM  
Subject: Re: Problem With Registrer
I see the problem.
Code: [Download] [Hide]
  1. $temp = (isset($_POST[$name])) ? $_POST[$name] : array();
  2. if($type == CHECKBOX)
  3. {
  4. $temp2 = '';
  5. foreach($temp as $temp3)
  6. {
  7. $temp2 .= htmlspecialchars($temp3) . ',';
  8. }
  9. $temp2 = substr($temp2, 0, strlen($temp2) - 1);
  10.  
  11. $temp = $temp2;
  12. }
  13. else
  14. {
  15. $temp = is_numeric($temp) ? intval($temp) : htmlspecialchars($temp);
  16. }
the problem happens because the input with the name "$name" don't exists (or is empty)

Profile PM  
Subject: Re: Problem With Registrer
So, How I resolved the problem??

Thanks

Profile PM  
Subject: Re: Problem With Registrer
replace "$temp = (isset($_POST[$name])) ? $_POST[$name] : array();" by "$temp = (isset($_POST[$name])) ? $_POST[$name] : '';"

Profile PM  
Subject: Re: Problem With Registrer
Perfect, now there are not any problem.

A lot of thanks.

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 1.1877s (PHP: 3% SQL: 97%)
SQL queries: 10 - Debug Off - GZIP Enabled