Top "Syntax-error" questions

A syntax error occurs when a program does not follow the syntactical rules of the programming language.

No visible cause for "Unexpected token ILLEGAL"

I'm getting this JavaScript error on my console: Uncaught SyntaxError: Unexpected token ILLEGAL This is my code: It's super simple, …

javascript syntax-error illegal-characters
What is unexpected T_VARIABLE in PHP?

I get this PHP error: Parse error: syntax error, unexpected T_VARIABLE From this line: $list[$i][$docinfo['attrs']['@…

php syntax-error
Laravel: Error [PDOException]: Could not Find Driver in PostgreSQL

I'm trying to connect with PostgreSQL database through Laravel in order to do a php artisan migrate but doesn't seem …

php database postgresql laravel syntax-error
Calling a Sub in VBA

This my simplified script: Sub SomeOtherSub(Stattyp As String) 'Daty and the other variables are defined here CatSubProduktAreakum(Stattyp, Daty + …

vba syntax-error call
Notice: Trying to get property of non-object error

i am trying to get data from: http://api.convoytrucking.net/api.php?api_key=public&show=player&…

php syntax-error notice
syntax error when using command line in python

I am a beginner to python and am at the moment having trouble using the command line. I have a …

python command-line syntax-error
Python print statement “Syntax Error: invalid syntax”

Why is Python giving me a syntax error at the simple print statement on line 9? import hashlib, sys m = hashlib.…

python python-3.x syntax syntax-error
JavaScript: SyntaxError: missing ) after argument list

I am getting the error: SyntaxError: missing ) after argument list With this javascript: var nav = document.getElementsByClassName('nav-coll'); for (var …

javascript syntax-error dom-events
SyntaxError: cannot assign to operator

def RandomString (length,distribution): string = "" for t in distribution: ((t[1])/length) * t[1] += string return shuffle (string) This returns a syntax …

python syntax-error
Python: SyntaxError: keyword can't be an expression

In a Python script I call a function from rpy2, but I get this error: #using an R module res = …

python syntax syntax-error keyword