addline.bat makes "headers already sent"

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
DeMZed
Forum Members
Forum Members
Posts: 19
Joined: Thu Apr 05, 2007 3:29 pm

addline.bat makes "headers already sent"

Post 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 !
Last edited by DeMZed on Fri Apr 13, 2007 12:00 pm, edited 1 time in total.
Pierre M.

Re: addline.bat makes "headers already sent"

Post by Pierre M. »

Hello,

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

Pierre M.
DeMZed
Forum Members
Forum Members
Posts: 19
Joined: Thu Apr 05, 2007 3:29 pm

Re: addline.bat makes "headers already sent"

Post 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 ?
Pierre M.

Re: addline.bat makes "headers already sent"

Post by Pierre M. »

There is a dev tab top right to access the forge and report bugs.
Pierre M.
Post Reply

Return to “Developers Discussion”