Top "Syntax-error" questions

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

How do I get PHP errors to display?

I have checked my PHP ini file (php.ini) and display_errors is set and also error reporting is E_…

php error-handling syntax-error error-reporting
How to define a two-dimensional array?

I want to define a two-dimensional array without an initialized length like this: Matrix = [][] but it does not work... I've …

python matrix syntax-error
(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

I'm trying to read a .csv file into Python (Spyder) but I keep getting an error. My code: import csv …

python csv unicode syntax-error
JavaScript error (Uncaught SyntaxError: Unexpected end of input)

I have some JavaScript code that works in FireFox but not in Chrome or IE. In the Chrome JS Console …

javascript jquery syntax syntax-error indentation
PHP parse/syntax errors; and how to solve them

Everyone runs into syntax errors. Even experienced programmers make typos. For newcomers, it's just part of the learning process. However, …

php parsing debugging syntax-error
Chrome: Uncaught SyntaxError: Unexpected end of input

When loading my page in Google Chrome, I get a vague error in the console: Uncaught SyntaxError: Unexpected end of …

debugging google-chrome syntax-error
How to correct TypeError: Unicode-objects must be encoded before hashing?

I have this error: Traceback (most recent call last): File "python_md5_cracker.py", line 27, in <module> m.…

python python-3.x unicode syntax-error hashlib
PHP Notice: Undefined offset: 1 with array when reading data

I am getting this PHP error: PHP Notice: Undefined offset: 1 Here is the PHP code that throws it: $file_handle = …

php error-handling syntax-error undefined fatal-error
How can I fix MySQL error #1064?

When issuing a command to MySQL, I'm getting error #1064 "syntax error". What does it mean? How can I fix it?

mysql parsing syntax syntax-error mysql-error-1064
'Syntax Error: invalid syntax' for no apparent reason

I've been trying to get a fix and can't find why the error keeps appearing. Pmin,Pmax,w,fi1 and …

python syntax-error spyder