This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
After a merge of my development and master branch I ran into the following error which confuses me a bit:
Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '<', expecting function (T_FUNCTION) in /Users/abel/Sites/myboilie.dev/modules/cms/Classes/CodeParser.php(294) : eval()'d code:4
The page looks like this:
title = "home"
url = "/"
layout = "home"
is_hidden = 0`
[viewBag]
localeUrl[en] = "/home"
==
<div class="row">
<div class="col-xs-4">
<div class="card">
<div class="card-header"><strong><i class="fa fa-lightbulb-o blue"></i>Introductie</strong></div>
<div class="card-block">...
It looks as if somehow October has forgotten how to process pages. This happens on all pages, the backend is working fine.
Last updated
It looks like there is some weird escaping happening. This is not a valid syntax: localeUrl\[en\]
, as it should be localeUrl[en]
. Can you check why certain characters are escaped with this sign \
?
Sorry, my bad. I was messing around with getting the code to show properly here in the post. Those backslashes weren't in the actual page code.
Can you check the Event Log
to find out where exactly the error is happening? It may be in the Layout or one Page section, or in a partial - and then you can paste the contents of that page here. Looks like you have some malformed code section in on of your pages.
Thanks, I've managed to find the problem. Some php open tags were added during the merge in the middle of a partial. I have no clue how that happened but everything is working again now.
1-5 of 5