Internal Server Error

Exception: Can not find endif for after3

    in /var/www/html/martini-git/src/core/PageSection.php at line 628

#0 /var/www/html/martini-git/src/core/PageSection.php(224): PageSection->actionIf(Array, false)
#1 /var/www/html/martini-git/src/core/PageSection.php(195): PageSection->finalise()
#2 /var/www/html/martini-git/src/web.php(1230): PageSection->asHttpResponse(true)
#3 /var/www/html/martini-git/src/web.php(583): RequestHandler->postProcess(Object(MartiniResponse), 1710834902, true)
#4 /var/www/html/martini-git/src/web.php(107): RequestHandler->handleRequestInternal(Object(HttpRequest))
#5 /var/www/html/martini-git/lib/http.php(77): RequestHandler->handleRequest(Object(HttpRequest))
#6 /var/www/html/martini-git/htdocs/index.php(155): HttpApplication->run()
#7 {main}