How to find 'unexpected token'

Once it's running
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
sbourke
Posts:10
Joined:01 Feb 2011 20:35
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
How to find 'unexpected token'

Post by sbourke » 23 Aug 2011 10:02

Hi Guys,

I've got a problem with a file I generated, Gephi says I've a unexpected token at line 33,684

I've no idea how to debug this, can anyone give me some pointers please :-)

Does line 33,684 mean somewhere in between its broken ? I'm assuming if thats the casae maybe a label has some invalid text or something to tht effect.

Is it possible to set Gephi up so I can step through it much like I would with a debugger to find the actual entry thats bad?

P.s can the ID of a node be too large? I'm using Facebook ID's

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: How to find 'unexpected token'

Post by seinecle » 25 Aug 2011 08:38

Hi!

Indeed this error msg tells you to look at the corresponding line of your network file to find the error. The actual error can be a few lines before or after though (as usual when debugging).

It would be helpful if you posted here the file (if possible), or a sample of it. Also, which network format is it?

Best,

Clement

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable