NetBeansIDE 8.1
HTML5 / JS Application

Windows 10 Home
4.00 GB
VAIO Computer
i3 CPU
64-bit OS

Wampserver 2.4
— Apache 2.4.4
— Php 5.4.12
— Mysql 5.6.12

 

zend_extension = “c:\wamp\bin\php\php5.4.12\ext\php_xdebug-2.4.0-5.4-vc9-x86_64.dll”

Problem

Xdebug was adding html before JSON

<br />

<font size=’1′><table class=’xdebug-error xe-notice’ dir=’ltr’ border=’1′ cellspacing=’0′ cellpadding=’1′>

……….

……….

{your JSON value}

 

Solution

1. Disable Xdebug and restart wamp.

2. php.ini variables disable showerror, html_errors

3. log errors instead of show errors

 

[Notes: Had disabled Anti Virus Software. Also Xdebug enabled now. And the program seems to work now. Maybe Disable and Enable issue. ]

Xdebug interfering with Json Output
Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *