Inserting HTML code in de <HEAD>
Posted by: pacctono (200.8.165.---)
Date: February 19, 2012 03:39AM

I have an app that works on Linux. I had to update my app to work on wamp 2, but now I got some HTML code in the <HEAD> section and FF (google chrome too) are giving me error because of this. Looks like is a memory problem. The inserted code is:

"<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' ..."

can anybody help me?

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: stevenmartin99 (Moderator)
Date: February 19, 2012 09:10AM

simple.. dont do it!

your wrong to be doing it. code doesnt go in the head.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: pacctono (200.8.165.---)
Date: February 20, 2012 09:34PM

Well, the problem is that I am not inserting that code. I do not know how it is getting in there. I am not doing it!

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: stevenmartin99 (Moderator)
Date: February 20, 2012 10:12PM

oh ok , disable xdebug on the wamp menu

left click wamp> php> settings > ensure all xdebug modules are deactivated

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: pacctono (200.8.165.---)
Date: February 20, 2012 11:33PM

Well, looks like that is not the problem, all xdebug modules are (and were) deactivated:

(XDebug) : Remote debug
(XDebug) : Profiler
(XDebug) : Profiler Enable Trigger

I have activated:

output buffering
y2k compliance
expose PHP
display errors
display startup errors
log errors
report memleaks
track errors
file uploads
allow url open

In my app, I have, baside HTML, a lot of PHP, JavaScript. Also, a lot of <?php include ...?>. At the beginning, it loads data throught ajax.

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: stevenmartin99 (Moderator)
Date: February 20, 2012 11:37PM

Bit the line says

"<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' ..."

so xdebug is on..

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: pacctono (200.8.165.---)
Date: February 20, 2012 11:44PM

xdebug is not on
But I solved the problem deactivating:

display errors
display startup errors
log errors

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: stevenmartin99 (Moderator)
Date: February 20, 2012 11:49PM

not exactly, these are php settings for logging errors.

they do not output into the header. ill take a look myself tomor to see why xdebug is outputting into them.


turning off all errors isnt a good solution to this.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Inserting HTML code in de <HEAD>
Posted by: RiggsFolly (---.as13285.net)
Date: February 29, 2012 02:45AM

That code is generated by XDEBUG which is a PHP debugging tool that is part of wamp now.
Its a great help for PHP programmers who want to write good clean code.

It means that your PHP code has errors in it.

Fix your php code and it will stop producing errors.

A much better solution than turning error reporting off. Especially for the poor coder that gets to maintain it some time later.

Options: ReplyQuote


Sorry, only registered users may post in this forum.