Page 1 of 1

addline.bat makes "headers already sent"

Posted: Fri Apr 13, 2007 11:56 am
by DeMZed
Hi !

When I use addline.bat, it says :
usage: addline.bat "messagename" "new message text"
Note: If you need to place quotes withen "new message text" they will be escaped automatically, so y
ou do not need to worry about them.
So if I do
addline.bat phpmv2 PHPMyVisites
I think i'm right.

But when I reload my page, I've got

Code: Select all

headers already sent by (output started at [--censored---]\cmsmadesimple-1.0.5\admin\lang\en_US\admin.inc.php:815) in
At this line 815, there is a white space followed with a new line.
To correct, we must delete this in all files !

in addline.bat, the code is this one

Code: Select all

for /R %%f in (*admin.inc.php) do findstr /v "?>" %%f > %%f.tmp
for /R %%f in (*admin.inc.php) do echo $lang['admin']['%~1'] = %newString%; //needs translation >> %%f.tmp
for /R %%f in (*admin.inc.php) do echo ?^> >> %%f.tmp
for /R %%f in (*admin.inc.php) do move /Y %%f.tmp %%f
To correct this bug, echo in red line wouldn't add new line after printing ?^> to %%f.tmp.
Q1/ How do that ?

Finally, last question :
Q2/ How add a tag with blanks in its values (for exemple, like "adminlogdescription") ?

Thanks !

Re: addline.bat makes "headers already sent"

Posted: Fri Apr 13, 2007 12:27 pm
by Pierre M.
Hello,

What is this "addline.bat" ? An MS-DOS 8.3 utility ?-)

Pierre M.

Re: addline.bat makes "headers already sent"

Posted: Fri Apr 13, 2007 12:32 pm
by DeMZed
yes it is !

located in admin/lang, it modify langs files.

I would like to submit this bug, but I don't know which is the right project to report to ?

Re: addline.bat makes "headers already sent"

Posted: Fri Apr 13, 2007 1:44 pm
by Pierre M.
There is a dev tab top right to access the forge and report bugs.
Pierre M.