Problems with JSON

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
PauetValencia
User
Posts: 11

Problems with JSON

Post by PauetValencia »

Hi Everyone

I try to up a photo and the phpmaker give me this error:

SyntaxError: Unexpected end of input

Anyone know how solve?

Thanks a lot


danielc
User
Posts: 1601

Post by danielc »

Post your line with error (few lines above and few lines below).


Webmaster
User
Posts: 9427

Post by Webmaster »

Press F12 in your browser and view the HTTP response from the server.


PauetValencia
User
Posts: 11

Post by PauetValencia »

Hi Everyone

I up a png and the php give me this answer

SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

Question:
Accept application/json, text/javascript, /; q=0.01
Accept-Encoding gzip, deflate
Accept-Language es-ar,es;q=0.8,en-us;q=0.5,en;q=0.3
Content-Length 27627
Content-Type multipart/form-data; boundary=---------------------------20882914332517
Cookie __utma=256953865.1475565306.1368993033.1400765331.1409829319.11; __utmz=256953865.1377513244.4.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); PHPSESSID=nq4pv66bk7kn96ebr113rvnok3
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
X-Requested-With XMLHttpRequest

Response:

Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection Keep-Alive
Content-Type text/html; charset=UTF-8
Date Wed, 01 Oct 2014 07:07:32 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive timeout=15, max=99
Pragma no-cache
Server Apache
Transfer-Encoding chunked

No obtain response.

BR


Webmaster
User
Posts: 9427

Post by Webmaster »

If the HTTP response is blank, you may have PHP error not displayed.

  1. Configure your php.ini to display all errors.
  2. Make sure you have specified a file upload folder (see PH Settings -> General -> File Upload in the help file) and grant write permission for the folder to the web server user.

Post Reply