Local Community

Parse error on line 1043

Issue Summary

Site suddenly stopped working and now gives a parse error. Other sites still work.
“Parse error on line 1043:…”

Troubleshooting Questions

  • This happens only for this one page that suddenly stopped working.

  • Yes, I can create a new, plain WordPress site in Local and access it in a Browser.


Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

System Details

  • Local version: 6.1.7
  • OS: Windows Pro, 21H2

Excerpt from log:

{"thread":"main","class":"SiteProcessManagerService","stack":"Error: Parse error on line 1043:\n...e #{{assignment_key + 1}}</h5> \n-----------------------^\nExpecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'OPEN_BLOCK_PARAMS', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', 'SEP', got 'INVALID'\n at Parser.parseError (%%appPath%%\\node_modules\\handlebars\\dist\\cjs\\handlebars\\compiler\\parser.js:267:19)\n at Parser.parse (%%appPath%%\\node_modules\\handlebars\\dist\\cjs\\handlebars\\compiler\\parser.js:336:30)\n at parseWithoutProcessing (%%appPath%%\\node_modules\\handlebars\\dist\\cjs\\handlebars\\compiler\\base.js:46:33)\n at HandlebarsEnvironment.parse (%%appPath%%\\node_modules\\handlebars\\dist\\cjs\\handlebars\\compiler\\base.js:52:13)\n at compileInput (%%appPath%%\\node_modules\\handlebars\\dist\\cjs\\handlebars\\compiler\\compiler.js:508:19)\n at ret (%%appPath%%\\node_modules\\handlebars\\dist\\cjs\\handlebars\\compiler\\compiler.js:517:18)\n at ConfigTemplatesService.<anonymous> (%%appPath%%\\main\\sites\\ConfigTemplatesService.js:1:1533)\n at Generator.next (<anonymous>)\n at n (%%appPath%%\\main\\sites\\ConfigTemplatesService.js:1:132)","level":"error","message":"Unable to start site.","timestamp":"2021-11-23T18:06:24.405Z"} {"localVersion":"6.1.7+5610","osPlatform":"win32","osRelease":"10.0.19044","windowsEdition":"Microsoft Windows 10 Pro","linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2021-11-23T18:12:57.434Z"}

local-lightning.log (147.2 KB)

It’s interesting to me that on the line right before these errors started showing, there is this message:

Compiling service configs...

That’s the point in time that Local is compiling the various server configuration files into something that will be used to serve the site.

Have you made any customizations to the files in the conf folder for the site? Maybe some sort of adjustment to a PHP setting?

Yes, that’s a possibility.
I was playing around with some things regarding “Pretty Permalinks”, although I’m not 100% sure that was it and also don’t know anymore what the changes were.

I guess we can close this issue then. User error, not bug.
Thank you for helping. :slight_smile:

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.