Phalcon Framework 4.1.2

ErrorException: Phalcon\Mvc\View\Engine\Volt\Compiler::compileFile(): write of 623 bytes failed with errno=28 No space left on device

/var/www/httpdocs/www/app/Web.php (90)
#0Phalcon\Mvc\View\Engine\Volt\Compiler->compileFile
#1Phalcon\Mvc\View\Engine\Volt\Compiler->compile
#2Phalcon\Mvc\View\Engine\Volt\Compiler->statementList
#3Phalcon\Mvc\View\Engine\Volt\Compiler->compileSource
#4Phalcon\Mvc\View\Engine\Volt\Compiler->compileFile
#5Phalcon\Mvc\View\Engine\Volt\Compiler->compile
#6Phalcon\Mvc\View\Engine\Volt->render
#7Phalcon\Mvc\View->engineRender
#8Phalcon\Mvc\View->processRender
#9Phalcon\Mvc\View->render
#10Phalcon\Mvc\Application->handle
/var/www/httpdocs/www/app/Web.php (90)
  1. <?php
  2. use Phalcon\Mvc\Application,
  3. Phalcon\Di\FactoryDefault,
  4. Phalcon\Config\Adapter\Yaml;
  5.  
  6. define('BASE_PATH', dirname(__DIR__));
  7. define('APP_PATH', __DIR__);
  8.  
  9. // The FactoryDefault Dependency Injector automatically register the right services providing a full stack framework
  10. $di = new FactoryDefault();
  11.  
  12. // Load application services
  13. require APP_PATH . '/config/services.php';
  14.  
  15. // Read the configuration
  16. $config = $di->getConfig();
  17.  
  18. define('APP_PUBLIC_PATH', BASE_PATH . '/' . $config->path->publicDir);
  19.  
  20. // Debugging
  21. if ($config->debug)
  22. {
  23. error_reporting(E_ALL);
  24. ini_set('display_errors', 1);
  25. (new \Phalcon\Debug())
  26. ->listen()
  27. ->listenExceptions()
  28. ->listenLowSeverity();
  29. }
  30.  
  31. // Auto-loader configuration
  32. $di->getLoader();
  33.  
  34. // Create an application
  35. $application = new Application($di);
  36.  
  37. // Register the front and back end offices
  38. $application->registerModules(
  39. array(
  40. 'backend' => array(
  41. 'className' => 'Rochatelain\Modules\Backend\Module',
  42. 'path' => APP_PATH . '/modules/Backend/Module.php',
  43. ),
  44. 'frontend' => array(
  45. 'className' => 'Rochatelain\Modules\Frontend\Module',
  46. 'path' => APP_PATH . '/modules/Frontend/Module.php',
  47. ),
  48. )
  49. );
  50.  
  51. $locale = "en-US";
  52. if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
  53. $locale = Locale::acceptFromHttp($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
  54. setlocale(LC_ALL, $locale);
  55.  
  56.  
  57. /*try {
  58. // Handle the request
  59. $response = $application->handle();
  60.  
  61. $response->send();
  62. } catch (\Exception $e) {
  63. echo 'Exception: ', $e->getMessage();
  64. }*/
  65.  
  66. // Restricted area ?
  67. if ($config->restricted_access)
  68. {
  69. session_start();
  70. if (isset($_POST['pwd']))
  71. {
  72. if (isset($_SESSION['restricted_access_last_try']) && (time() - 1 < $_SESSION['restricted_access_last_try']))
  73. die("Trop de tentatives, patientez un instant et réessayez.");
  74. $_SESSION['restricted_access_last_try'] = time();
  75. if ($_POST['pwd'] == $config->restricted_access_password)
  76. $_SESSION['restricted_access'] = true;
  77. }
  78.  
  79. if (!isset($_SESSION['restricted_access']))
  80. {
  81. include 'restricted_access.php';
  82. die();
  83. }
  84. }
  85.  
  86. // Handle the request
  87. if ($config->debug)
  88. echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
  89. else
  90. {
  91. try {
  92. echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
  93. } catch(Error $exception)
  94. {
  95. if (!file_exists(BASE_PATH . '/logs/errors.log'))
  96. file_put_contents(BASE_PATH . '/logs/errors.log', "");
  97. // Log error
  98. $ex = "### " . date('Y-m-d H:i:s') . "\n"
  99. . $exception->getMessage()
  100. . "\nin " . $exception->getFile() . " (" . $exception->getLine() . ")\n\n";
  101. file_put_contents(BASE_PATH . '/logs/errors.log', $ex, FILE_APPEND | LOCK_EX);
  102. if ($_SERVER['REQUEST_URI'] != '/internal-error')
  103. header('Location: /internal-error');
  104. else
  105. die("Erreur interne - merci de contacter le support");
  106. }
  107. }
#11require(/var/www/httpdocs/www/app/Web.php)
/var/www/httpdocs/www/public/index.php (7)
  1. <?php
  2. // phpinfo(); die();
  3.  
  4. use Phalcon\Mvc\Application,
  5. Phalcon\Config\Adapter\Yaml;
  6.  
  7. require('../app/Web.php');