Re: [dev] Strange behavior in layout output

2016-02-19 Thread Finetti, Stefano
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 :

> 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 *

*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.
___
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

Re: [dev] Strange behavior in layout output

2016-02-19 Thread Moritz Lenz

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


smime.p7s
Description: S/MIME cryptographic signature
___
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

[dev] Strange behavior in layout output

2016-02-19 Thread Finetti, Stefano
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.

The absolutely strange thing is that I didn't put ANY print, echo or
something like that in the code, and that all the output is directed
through LayoutObject->Block with name and data.
The template files has the correct names for RenderBlockStart and Stop and
[% Data.Variables | html %] Section. In fact, inside the RenderBlocks all
the output is fine.

Since it's quite difficult even to explain the problem, I made a screenshot
of what I'm talking about.

[image: Immagine incorporata 1]

I've filtered out the output for privacy, but here is the strange output
just below "Dashboard".
I'm not using any customized layout (i.e. no .pm files in Output/HTML/,
only .tt files in Output/HTML/Standard/).

This has been haunting me for days now, without any luck.
I might also add that those numbers are inserted between two 
apparently outside from normal HTML code:

**
**
**
*1234567891011121314151617181920*
**

As you can see, the first div is the NavigationContainer (the OTRS Menu),
while the last is the MainBox container, which is used in OTRS to generate
the "main" contents page.

(The numbers are a sequence: 1 2 3 4 5 6 7 8 9 10 11 12 etc. etc.)

-- 
*Lynx International Srl*
*Stefano Finetti*
*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.
___
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