Closed viniciuswebdev closed 11 years ago
login.twig
is not provided by Silex. Without the source of its line 6, there is no way to help you
Thanks @stof
the first lines of login.twig, seems right:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Title</title>
{% block stylesheets %}
<link href="{{ 'public/bootstrap/css/bootstrap.min.css' }}" type="text/css" rel="stylesheet" />
<link href="{{ 'public/css/style.css' }}" type="text/css" rel="stylesheet" />
{% endblock %}
</head>
<body>
I don't see any \
here
The only thing I found in the Internet http://stackoverflow.com/questions/13125007/unexpected-character-in-input-ascii-92-state-1-in-a-silex-application i don't know if may be related, thanks for help
Misconfiguration in your php.ini? http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
Thanks @reenl i tried turn on/off but still have this problem, is working fine locally but in production server I get this error.
does your app work on a newer php version?
indeed it looks like an escaping issue, like @reenl already supposed. Where do all those escape chars come from in the stacktrace....?
Maybe your file contains bad newlines or a BOM?
@staabm yes, it is working right on a 5.4 version, but I don`t know if the problem is with version or configuration differences.
This is the full template file:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Gerador de assinaturas</title>
{% block stylesheets %}
<link href="{{ 'public/bootstrap/css/bootstrap.min.css' }}" type="text/css" rel="stylesheet" />
<link href="{{ 'public/css/style.css' }}" type="text/css" rel="stylesheet" />
{% endblock %}
</head>
<body>
<div class="container">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="signature-container">
<h4>Acesso Restrito</h4>
<br>
<form action="/" method="POST" role="form">
{% if invalid %}
<div class="alert alert-danger">Credenciais inválidas</div>
{% endif %}
<div class="form-group">
<label>Login</label>
<input required="required" name="login" class="form-control">
</div>
<div class="form-group">
<label>Senha</label>
<input required="required" type="password" name="password" class="form-control" >
</div>
<button type="submit" class="btn btn-success">Login</button>
</form>
<div>
</div>
<div class="col-md-3"></div>
</div>
</body>
Closing as support should be done on the mailing-list.
Im getting this error on twig, is my php version old for Silex?
php -v
Thanks!
Full error