FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Registration + profile page, javascript error
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Registration + profile page, javascript error [message #9748] Thu, 17 April 2003 10:09 Go to next message
Renn is currently offline  Renn   Netherlands
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 #9750 is a reply to message #9748] Thu, 17 April 2003 12:19 Go to previous messageGo to next message
Renn is currently offline  Renn   Netherlands
Messages: 4
Registered: April 2003
Karma: 0
Junior Member
Well... here's the deal:

It's the well-known ^M windows format problem... causing CR at the end of every line.
It could be wise to trim() any CRLF off any resulting string when the software translates MSG{} blocks into the i18n strings. That way, it won't matter even IF the msg file contains windows-type linefeeds.

just my 2c... Smile

The correct Dutch msg file can be found here:
http://fud.prohost.org/forum/index.php?t=msg&th=2013&rid=844&pl _view=&start=0#msg_9751

[Updated on: Thu, 17 April 2003 12:29]

Report message to a moderator

Re: Registration + profile page, javascript error [message #9927 is a reply to message #9750] Tue, 13 May 2003 13:42 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Should be fixed in 2.5.0

FUDforum Core Developer
Re: Registration + profile page, javascript error [message #10601 is a reply to message #9927] Thu, 05 June 2003 13:54 Go to previous messageGo to next message
darkking is currently offline  darkking   Romania
Messages: 8
Registered: June 2003
Location: ROman
Karma: 0
Junior Member
Hello,
I'm from Romania and I have translated the forum but I've got the same problem. How could I repair it or what should I do?

By the way, the upgrade at version 2.5.0 have a lot of bugs, it mess my language files and after that the forum just don't works.
Re: Registration + profile page, javascript error [message #10602 is a reply to message #10601] Thu, 05 June 2003 14:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
darkking is currently offline  darkking   Romania
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #10665 is a reply to message #10662] Fri, 06 June 2003 14:40 Go to previous messageGo to next message
darkking is currently offline  darkking   Romania
Messages: 8
Registered: June 2003
Location: ROman
Karma: 0
Junior Member
Yes, here is the translation:

Profile = Profil
PM (Private Message) = MP(Mesaj personal)
Reply = Raspunde
Quote = Citeaza
Tree View = Vizualizare arborescenta
Flat View = Vizualizare normala
New Topic = Subiect Nou
Post Reply = Trimite raspuns
Delete = Sterge
Edit = Editare
posts = trimise
new p.message (new private message) = mesaj personal nou
email = email
www (homepage) www(pagina personala)
flat view = vizualizare normala
forward = inainteaza

at forward we have 2 options:

1. if you want to send a message : use "Trimite mesaj mai departe"

2. if you want to go further, next page, ... : use "Mai departe"


Re: Registration + profile page, javascript error [message #10666 is a reply to message #10665] Fri, 06 June 2003 14:42 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Thanks Smile

Romanian translation will be a part of RC5.

P.S. At the bottom of the updated file there are 40 new phrazes. When you can, please translate those and send me the updated file.


FUDforum Core Developer
Re: Registration + profile page, javascript error [message #10669 is a reply to message #10666] Fri, 06 June 2003 15:00 Go to previous message
darkking is currently offline  darkking   Romania
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 684 times)

[Updated on: Sat, 07 June 2003 11:26]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 404 not found for www icon in membership listing
Next Topic: Custom avatars is lost.....
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 07:05:17 GMT 2024

Total time taken to generate the page: 0.02542 seconds