MyBB Support

DVZ Shoutbox Jquery error [FIXED XD]

Submitted by kikizon, , Thread ID: 101534

Thread Closed
kikizon
Novice
Level:
0
Reputation:
0
Posts:
44
Likes:
0
Credits:
4
12-09-2018, 06:53 PM
This post was last modified: 12-09-2018, 07:40 PM by kikizon
#1
Hi all, actually I'm getting a error with this plugin

Error:
Code:
Uncaught SyntaxError: Unexpected end of JSON input
  at JSON.parse (<anonymous>)
  at Function.n.parseJSON (jquery.js?ver=1813:4)
  at Object.success (dvz_shoutbox.js:97)
  at i (jquery.js?ver=1813:2)
  at Object.fireWith [as resolveWith] (jquery.js?ver=1813:2)
  at y (jquery.js?ver=1813:4)
  at XMLHttpRequest.c (jquery.js?ver=1813:4)

Im using Mybb 1.8.18 Default jquery plugins

Fixed xd

Answer:
Code:
//I check var data lenght

var n = data.replace(/\s/g, '').length

//And I replace:

if(data)
//-->
if(n)

This solve my problem by now

Users browsing this thread: 1 Guest(s)