FINALLY found out what was causing the parse error .Corrected the shorthand php syntax, changed it back to normal