Registration + profile page, javascript error [message #9748] |
Thu, 17 April 2003 10:09 |
Renn
Messages: 4 Registered: April 2003
Karma: 0
|
Junior Member |
|
|
I noticed a javascript error on the registration and profile pages.
I tracked it down, and it appears every {MSG: } gets appended with a newline. This results in a javascript error due to the alert('') getting cut-off with a newline in the notify method selector. Just after MSG{register_notify_js_error} a newline gets appended, javascript can't deal with that within the alert() call.
However, I notice THIS forum doesn't show this bug. Nor does it show any newlines in the page source after any MSG{} items.
Is this due to the version? (I see you're using 2.3.9RC1 here?)
Does that mean this is a known bug, cause I tried searching for it (in numerous ways) but I can't seem to find it here.
Cheers,
Mark
(edit 1)
I installed 2.3.9RC1 .. but the error still remains
(/edit)
(edit 2)
When I change the default theme to 'english' .. this does not happen. How can that be?? Perhaps the dutch 'msg' file is corrupt. I will investigate.
(/edit)
[Updated on: Thu, 17 April 2003 10:35] Report message to a moderator
|
|
|
|
|
|
Re: Registration + profile page, javascript error [message #10602 is a reply to message #10601] |
Thu, 05 June 2003 14:20 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Could you be a little more specific, what in your forum does not work?
I suspect your translation may have had a few bugs dealing with \r and ', which may cause problem for the forum.
FUDforum Core Developer
|
|
|
Re: Registration + profile page, javascript error [message #10603 is a reply to message #10602] |
Thu, 05 June 2003 14:25 |
darkking
Messages: 8 Registered: June 2003 Location: ROman
Karma: 0
|
Junior Member |
|
|
It's possible, but the error is here(filename: register.php.t):
/*----------------- END FORM FUNCTIONS --------------------*/
if( empty($usr->id) && empty($reg_coppa) ) {
if ( $GLOBALS['COPPA'] == 'Y' ) {
header("Location: {ROOT}?t=coppa&"._rsidl);
}
else if ( $GLOBALS['COPPA'] != 'Y' ) {
-->here--> header("Location: {ROOT}?t=pre_reg");
}
exit;
}
On IExplode the error is:
Line:81
Char:251
Error:Expected ')'
Code:0
URL: http://localhost/hs_forum/index.php?t=pre_reg
I've attached the translation into romanian.
After I submit the registration form, i have this error:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in c:\apache\htdocs\hs_forum\theme\register.php on line 1653
Warning: Cannot modify header information - headers already sent by (output started at c:\apache\htdocs\hs_forum\theme\register.php:1653) in c:\apache\htdocs\hs_forum\theme\register.php on line 1436
I understand that the first error it's caused by the mail setting in my php.ini file, but waht about the second...
-
Attachment: msg.txt
(Size: 47.46KB, Downloaded 1110 times)
[Updated on: Fri, 06 June 2003 06:02] Report message to a moderator
|
|
|
Re: Registration + profile page, javascript error [message #10605 is a reply to message #10603] |
Thu, 05 June 2003 14:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You're looking @ the wrong line #.
The error is a Javascript HTML error, not php source code error. So you should be looking @ Line:81 + Char:251 of the HTML output of the page in question. I will take a look at the translation file shortly and see if I can locate any errors.
FUDforum Core Developer
|
|
|
Re: Registration + profile page, javascript error [message #10662 is a reply to message #10605] |
Fri, 06 June 2003 13:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Here is the corrected file that will work with any 2.5.0 release.
BTW would you allow this translation to be used in FUDforum, if so, could you also translated the following text, so that I could add translated buttons.
Profile
PM (Private Message)
Reply
Quote
Tree View
Flat View
New Topic
Post Reply
Delete
Edit
posts
new p.message (new private message)
email
www (homepage)
flat view
forward
FUDforum Core Developer
|
|
|
|
|
Re: Registration + profile page, javascript error [message #10669 is a reply to message #10666] |
Fri, 06 June 2003 15:00 |
darkking
Messages: 8 Registered: June 2003 Location: ROman
Karma: 0
|
Junior Member |
|
|
This is the translation:
And don't read your prevoius messag carefully, so if you want the buttons, tell me, cause they are already ready.
Can you tell me when the install.php with the romanian language will be ready ?
Thanks.
P.S.: If you want more more translations, tell me.
-
Attachment: msg.gz
(Size: 15.74KB, Downloaded 683 times)
[Updated on: Sat, 07 June 2003 11:26] Report message to a moderator
|
|
|