If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Error message after changing a word in lang " "  XML
Forum Index » Support Forum
Author Message
manswords
Beginner

Joined: 13/01/2005 13:49:57
Messages: 7
Location: Greece
Offline

I changed a few words in the lang files (only between the " " so not in the codes themselves) i.e. from "email" to "what is your email address?" And got the following message;
Warning: Cannot modify header information - headers already sent by (output started at /home/alan/public_html/guestbook/lang/english.php:105) in /home/alan/public_html/guestbook/lib/admin.class.php on line 36

I've counted to line 105 in /lang/english.php I can't find anything wrong and didn't modify anything apart from having changed the words.

Any ideas?
By the way - is a full line of script one complete line even if it shows over two or three lines (cos of window restrictions) or is a line counted as each time a new line starts? Does that make sense?
Ta

Writing courses on a Greek island
www.symidream.com
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Send me your english.php file or post it here.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

manswords wrote:By the way - is a full line of script one complete line even if it shows over two or three lines (cos of window restrictions) or is a line counted as each time a new line starts? Does that make sense?
Ta


Its word-wrapping by NotePad or WordPad. It won't screw the code up but it should all be on one line.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

Isn't this the error caused by the 'white space ' at the bottom of the script
have a look and delete any spaces at the end of the script

fatjacK
http://www.drrinK.co.uk
[Email] [WWW]
manswords
Beginner

Joined: 13/01/2005 13:49:57
Messages: 7
Location: Greece
Offline

Here's the file text copied without any changes from the server
Thanks again for your help!

";

$LANG["BookMess1"] = "HTML code is disabled";
$LANG["BookMess2"] = "HTML code is enabled";
$LANG["BookMess3"] = "Sign the Manswords Guestbook";
$LANG["BookMess4"] = "Back to the Manswords Guestbook";
$LANG["BookMess5"] = "Administration";
$LANG["BookMess6"] = "Hi. Welcome to the Manswords guestbook. Leave your messages and your favourite image here";
$LANG["BookMess7"] = "Comments from Manswords visitors";
$LANG["BookMess8"] = "Back to submit form";
$LANG["BookMess9"] = "Write a comment for this entry.";
$LANG["BookMess10"] = "Thank you for signing the Manswords guestbook.

Your entry was added successfully! You should be transfered back to the guestbook in 2 seconds.";

$LANG["EmailAdminSubject"] = "New guestbook entry";
$LANG["EmailGuestSubject"] = "Thank you for signing the manswords guestbook";

$LANG["AltIP"] = "IP logged";
$LANG["AltICQ"] = "Send ICQ Message";
$LANG["AltEmail"] = "Send E-mail";
$LANG["AltUrl"] = "View Web Page";
$LANG["AltAim"] = "Instant Messenger";
$LANG["AltCom"] = "Write a comment";

# Form
$LANG["FormMess1"] = "Fill out the blanks below to sign the guestbook. After you submit your entry, you will be returned to the guestbook. The blanks with (*) represent required fields.";
$LANG["FormMess2"] = "Manswords Smilies are ON";
$LANG["FormMess3"] = "AGCode is ON";
$LANG["FormMess4"] = "Show legend";
$LANG["FormMess5"] = "Below is your guestbook entry.";
$LANG["FormMess6"] = "AG Code is OFF";
$LANG["FormMess7"] = "Smilies are OFF";
$LANG["FormName"] = "Put your Manswords name";
$LANG["FormEmail"] = "Valid email address";
$LANG["FormLoc"] = "Where you are";
$LANG["FormPic"] = "Upload your best picture";
$LANG["FormUrl"] = "Homepage";
$LANG["FormGender"] = "Gender";
$LANG["FormMale"] = "Male";
$LANG["FormFemale"] = "Female";
$LANG["FormMessage"] = "O.k. Leave your Message";
$LANG["FormSelect"] = "Guestbook";
$LANG["FormUser"] = "Username";
$LANG["FormPass"] = "Password";
$LANG["FormReset"] = "Reset";
$LANG["FormSubmit"] = "Submit";
$LANG["FormPreview"] = "Preview";
$LANG["FormBack"] = "Go Back";
$LANG["FormEnter"] = "Guestbook - Administration Centre
Before you can proceed you have to enter a valid name and password!";
$LANG["FormButton"] = "Go";
$LANG["FormPriv"] = "Private message";

# Navigation Bar
$LANG["NavTotal"] = "Total Records:";
$LANG["NavRecords"] = "Records Viewed Per Page:";
$LANG["NavPrev"] = "Previous Page";
$LANG["NavNext"] = "Next Page";

# Post Errors
$LANG["ErrorPost1"] = "You forgot to fill in the Name field. Please correct it and re-submit.";
$LANG["ErrorPost2"] = "You forgot to fill in the Message field. Please correct it and re-submit.";
$LANG["ErrorPost3"] = "Your message is either too short or too long. Please correct it and re-submit.";
$LANG["ErrorPost4"] = "One of the input fields does not seem to be valid.";
$LANG["ErrorPost5"] = "Guestbook - Error";
$LANG["ErrorPost6"] = "Image file is too big";
$LANG["ErrorPost7"] = "Wrong image file type";
$LANG["ErrorPost8"] = "Sorry! We have flood-control activated. Please try again after a period of time elapses!";
$LANG["ErrorPost9"] = "Your IP adress is banned!";
$LANG["ErrorPost10"] = "Your message contains some invalid words. Please correct it and re-submit.";
$LANG["ErrorPost11"] = "You forgot to fill in the Comment field. Please correct it and re-submit.";

$LANG["PassMess1"] = "Please enter a valid username and password:";
$LANG["PassMess2"] = "Invalid username or password. Please try again.";
$LANG["PassMess3"] = "Sorry, but the password you entered was not correct.";

# Days
$weekday[0] = "Sunday";
$weekday[1] = "Monday";
$weekday[2] = "Tuesday";
$weekday[3] = "Wednesday";
$weekday[4] = "Thursday";
$weekday[5] = "Friday";
$weekday[6] = "Saturday";

# Months
$months[0] = "January";
$months[1] = "February";
$months[2] = "March";
$months[3] = "April";
$months[4] = "May";
$months[5] = "June";
$months[6] = "July";
$months[7] = "August";
$months[8] = "September";
$months[9] = "October";
$months[10] = "November";
$months[11] = "December";

?>

Writing courses on a Greek island
www.symidream.com
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I'm sure you're missing something fro the start. Anyway the bit that concerns me is use the <br> tag.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Errrr there should be no line 105 in that file. You have space after the closing ?> I think.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
manswords
Beginner

Joined: 13/01/2005 13:49:57
Messages: 7
Location: Greece
Offline

Thanks a lot - that was it and it's sorted now!

Writing courses on a Greek island
www.symidream.com
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum