Re: Strange behavior in layout output
"Finetti, Stefano" <[email protected]> Fri, 19 Feb 2016 16:35:34 +0100
| Newsgroups | gmane.comp.otrs.devel |
|---|---|
| Message-ID | <CADp4ddSdvBvXaFdjKHGToL5c7DMpb74PP5b+SUKVzFrBbHT8nQ@mail.gmail.com> |
--===============0118854430== Content-Type: multipart/alternative; boundary=001a1143d2e0187704052c213d99 --001a1143d2e0187704052c213d99 Content-Type: text/plain; charset=UTF-8 Hello Moritz, and thanks for your answer. I've already checked and unless OTRS code has some debug options enabled by default, in none of my files there is any debugging made without using LogObject->Log. And I'm pretty sure I don't have any row count used in my script because I don't need it for my purposes. I will try to check into DB.pm and all the objects I use in my module to check for this strange output. 2016-02-19 15:54 GMT+01:00 Moritz Lenz <[email protected]>: > Hi, > > On 02/19/2016 03:11 PM, Finetti, Stefano wrote: > >> Greetings to everyone, I posted this message in the general otrs list >> but I think that the dev list is more appropriate for this kind of >> questions. Let me know if I'm wrong, please. >> >> I must confess I'm a bit lost with something that never happened before >> with other customizations I've done in OTRS. >> >> I'm trying to create a module for OTRS 4 to help my colleagues work with >> our AS400 systems. Nothing very strange, just a new menu to be used to >> check various informations about the systems. >> >> I'm not completely new to OTRS customizations, and I've managed to >> create some custom module using LayoutObject, DBObject and so. This is >> not a code problem, or at least, not an easy one to spot. >> >> When I access the page I created, I got the output correctly formatted >> from the query I run on an external DB, and, - and this is the problem - >> a long string just below the navigation menu containing a sequence of >> numbers, that I've identified with the number of records that my queries >> get. >> > > Maybe some part of the code you use (like a library to the connect to the > backend) has debugging print statements in it? > > You could try to run that code in isolation from the command line (that > is, not through the browser and web server) and see if it produces output. > > And/or you can try a trick like described in here: > http://stackoverflow.com/a/3508679/14132 > to capture output, but only from within Perl (if it calls a C library that > prints to STDOUT, this won't capture it). > > Hope this helps, > Moritz > > _______________________________________________ > OTRS mailing list: dev - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/dev > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev > -- *Lynx International Srl* *Stefano Finetti* *http://www.lynx-international.com <http://www.lynx-international.com>* *Lynx International Srl is a part of AXED Group* Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina -- This e-mail and any files transmitted contain documentation which is highly confidential and intended solely for the use of the individual or entity to whom they are addressed. All written data and other information in the documentation is and shall remain the property of the disclosing party. If you are not the intended recipient you are hereby formally notified that any disclosure, dissemination, forwarding, storing, copying or use of any of the information is strictly prohibited and will be legally pursued. If you received this in error, please contact the sender and destroy the documentation including deletion of the same from any computer. Thank you. --001a1143d2e0187704052c213d99 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello Moritz, and thanks for your answer.<div><br></div><d= iv>I've already checked and unless OTRS code has some debug options ena= bled by default, in none of my files there is any debugging made without us= ing LogObject->Log.</div><div>And I'm pretty sure I don't have a= ny row count used in my script because I don't need it for my purposes.= </div><div><br></div><div>I will try to check into DB.pm and all the object= s I use in my module to check for this strange output.</div><div><br></div>= </div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">2016-02-19 = 15:54 GMT+01:00 Moritz Lenz <span dir=3D"ltr"><<a href=3D"mailto:moritz.= [email protected]" target=3D"_blank">[email protected]</a>></span>:<br><b= lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px = #ccc solid;padding-left:1ex">Hi,<span class=3D""><br> <br> On 02/19/2016 03:11 PM, Finetti, Stefano wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Greetings to everyone, I posted this message in the general otrs list<br> but I think that the dev list is more appropriate for this kind of<br> questions. Let me know if I'm wrong, please.<br> <br> I must confess I'm a bit lost with something that never happened before= <br> with other customizations I've done in OTRS.<br> <br> I'm trying to create a module for OTRS 4 to help my colleagues work wit= h<br> our AS400 systems. Nothing very strange, just a new menu to be used to<br> check various informations about the systems.<br> <br> I'm not completely new to OTRS customizations, and I've managed to<= br> create some custom module using LayoutObject, DBObject and so. This is<br> not a code problem, or at least, not an easy one to spot.<br> <br> When I access the page I created, I got the output correctly formatted<br> from the query I run on an external DB, and, - and this is the problem -<br= > a long string just below the navigation menu containing a sequence of<br> numbers, that I've identified with the number of records that my querie= s<br> get.<br> </blockquote> <br></span> Maybe some part of the code you use (like a library to the connect to the b= ackend) has debugging print statements in it?<br> <br> You could try to run that code in isolation from the command line (that is,= not through the browser and web server) and see if it produces output.<br> <br> And/or you can try a trick like described in here:<br> <a href=3D"http://stackoverflow.com/a/3508679/14132" rel=3D"noreferrer" tar= get=3D"_blank">http://stackoverflow.com/a/3508679/14132</a><br> to capture output, but only from within Perl (if it calls a C library that = prints to STDOUT, this won't capture it).<br> <br> Hope this helps,<br> Moritz<br> <br>_______________________________________________<br> OTRS mailing list: dev - Webpage: <a href=3D"http://otrs.org/" rel=3D"noref= errer" target=3D"_blank">http://otrs.org/</a><br> Archive: <a href=3D"http://lists.otrs.org/pipermail/dev" rel=3D"noreferrer"= target=3D"_blank">http://lists.otrs.org/pipermail/dev</a><br> To unsubscribe: <a href=3D"http://lists.otrs.org/cgi-bin/listinfo/dev" rel= =3D"noreferrer" target=3D"_blank">http://lists.otrs.org/cgi-bin/listinfo/de= v</a><br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><di= v class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir= =3D"ltr"><span style=3D"color:rgb(50,100,246);font-family:'Courier New&= #39;;font-size:18px"><b>Lynx International Srl</b><span style=3D"font-size:= 12px;font-family:Times;color:rgb(0,0,0)">=C2=A0</span></span><span style=3D= "border-collapse:separate;border-spacing:0px"><div style=3D"word-wrap:break= -word"><span style=3D"border-collapse:separate;border-spacing:0px"><div sty= le=3D"word-wrap:break-word"><div style=3D"margin:0px;font-size:16px;font-fa= mily:'Courier New';color:rgb(119,119,119)"><b>Stefano Finetti</b></= div><div style=3D"margin:0px;font-size:16px;font-family:'Courier New= 9;;color:rgb(119,119,119)"><b><a href=3D"http://www.lynx-international.com"= target=3D"_blank">http://www.lynx-international.com</a></b></div><div styl= e=3D"margin:0px;font-size:16px;font-family:'Courier New';color:rgb(= 119,119,119);min-height:18px"><br></div><div style=3D"margin:0px;font-size:= 16px;font-family:'Courier New';color:rgb(119,119,119)"><b>Lynx Inte= rnational Srl is a part of AXED Group</b></div><div style=3D"margin:0px;fon= t-size:16px;font-family:'Courier New';color:rgb(119,119,119)">Via P= ier Luigi Nervi e/3 - Torre 6 - 04100 Latina</div><div style=3D"margin:0px;= font-size:16px;font-family:'Courier New';color:rgb(119,119,119)"><b= r></div></div></span></div></span></div></div></div></div></div> </div> <br> <span style=3D"color:rgb(153,153,153);font-family:'Courier New';fon= t-size:12px">This e-mail and any files transmitted contain documentation wh= ich is highly confidential and intended solely for the use of the individua= l or entity to whom they are addressed. All written data and other informat= ion in the documentation is and shall remain the property of the disclosing= party. If you are not the intended recipient you are hereby formally notif= ied that any disclosure, dissemination, forwarding, storing, copying or use= of any of the information is strictly prohibited and will be legally pursu= ed. If you received this in error, please contact the sender and destroy th= e documentation including deletion of the same from any computer. Thank you= .</span> --001a1143d2e0187704052c213d99-- --===============0118854430== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev --===============0118854430==--