Web ページを読み込むとエラー 500 が表示されます。
Web デバッグ ツールバーの読み込み中にエラーが発生しました (500: 内部サーバー エラー)。プロファイラーを開きますか?
apache2 ログは次のエラーを送信します。
[error] [client 192.168.13.119] PHP Fatal error: Out of memory (allocated 42467328) (tried to allocate 261900 bytes) in /var/www/visual-immersion/path/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php on line 135, referer: http://local.visual-immersion.com/app_dev.php/
php.ini でメモリのサイズを 512 または 1024 に増やしました。明らかにサーバーを再起動しましたが、成功しませんでした。
どこに問題があるのか 見つけることができず、かなり絶望的になります。さらに情報が必要な場合は教えてください(カーネル構成...) よろしくお願いします。
編集:私の一般的な見解:
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<meta name="description" content="toto ">
<meta name="robots" content= 'index, follow'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no'/>
<meta charset="UTF-8" />
<title>{% block title %}test {% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="" />
</head>
<body>
<header>
<div class="container">
<h1 id="main-title"><img src="" alt="logo"/> Title</h1>
</div>
</header>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
私のバンドル ビュー:
{% extends "::layout.html.twig" %}
{% block body %}
Hello!
{% endblock %}
私のコントローラーアクション:
class SiteController extends Controller
{
public function indexAction()
{
return $this->render('visualimmersionVisualImmersionSiteBundle:Site:index.html.twig');
}
}