500 | Internal Server Error | PropelException
Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2002] No such file or directory]
stack trace
- at ()
in SF_ROOT_DIR/lib/vendor/propel/propel1/runtime/lib/Propel.php line 688 ...
- $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- $con->setAttribute(PropelPDO::PROPEL_ATTR_CONNECTION_NAME, $name);
- } catch (PDOException $e) {
- throw new PropelException("Unable to open PDO connection", $e);
- }
- // load any connection options from the config file
- at Propel::initConnection(array('dsn' => 'mysql:dbname=site;host=localhost', 'user' => 'site', 'password' => 'jsdjhs74pwm74_4jn', 'classname' => 'DebugPDO', 'options' => array('ATTR_PERSISTENT' => 1), 'settings' => array('charset' => array('value' => 'utf8'), 'queries' => array())), 'propel')
in SF_ROOT_DIR/lib/vendor/propel/propel1/runtime/lib/Propel.php line 586 ...
- throw new PropelException('No connection information in your runtime configuration file for datasource [' . $name . ']');
- }
- // initialize master connection
- $con = Propel::initConnection($conparams, $name);
- self::$connectionMap[$name]['master'] = $con;
- }
- at Propel::getMasterConnection('propel')
in SF_ROOT_DIR/lib/vendor/propel/propel1/runtime/lib/Propel.php line 612 ...
- if (empty($slaveconfigs)) {
- // no slaves configured for this datasource
- // fallback to the master connection
- self::$connectionMap[$name]['slave'] = self::getMasterConnection($name);
- } else {
- // Initialize a new slave
- if (isset($slaveconfigs['connection']['dsn'])) {
- at Propel::getSlaveConnection('propel')
in SF_ROOT_DIR/lib/vendor/propel/propel1/runtime/lib/Propel.php line 563 ...
- if ($mode != Propel::CONNECTION_READ || self::$forceMasterConnection) {
- return self::getMasterConnection($name);
- } else {
- return self::getSlaveConnection($name);
- }
- }
- at Propel::getConnection('propel', 'read')
in SF_ROOT_DIR/lib/vendor/propel/propel1/runtime/lib/query/ModelCriteria.php line 1223 ...
- public function find($con = null)
- {
- if ($con === null) {
- $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ);
- }
- $this->basePreSelect($con);
- $criteria = $this->isKeepQuery() ? clone $this : $this;
- at ModelCriteria->find()
in SF_ROOT_DIR/plugins/sfPhastPlugin/lib/core/sfPhastFrontendRouting.class.php line 34 ...
- $keys[] = '/';
- }
- $pages = (new PageQuery)->forRouting($keys)->find()->getData();
- usort($pages, function($a, $b) {
- $a = $a->getURI();
- $b = $b->getURI();
- at sfPhastFrontendRouting->parse('/')
in SF_ROOT_DIR/cache/frontend/dev/config/config_factories.yml.php line 96 ...
- 'extra_parameters_as_query_string' => true,
- 'cache' => NULL,
- ))));
- if ($parameters = $this->factories['routing']->parse($this->factories['request']->getPathInfo()))
- {
- $this->factories['request']->addRequestParameters($parameters);
- }
- at require('/site/cache/frontend/dev/config/config_factories.yml.php')
in SF_ROOT_DIR/lib/vendor/symfony/symfony1/lib/util/sfContext.class.php line 155 ...
- }
- // include the factories configuration
- require($this->configuration->getConfigCache()->checkConfig('config/factories.yml'));
- $this->dispatcher->notify(new sfEvent($this, 'context.load_factories'));
- at sfContext->loadFactories()
in SF_ROOT_DIR/lib/vendor/symfony/symfony1/lib/util/sfContext.class.php line 77 ...
- try
- {
- $this->loadFactories();
- }
- catch (sfException $e)
- {
- at sfContext->initialize(object('frontendConfiguration'))
in SF_ROOT_DIR/lib/vendor/symfony/symfony1/lib/util/sfContext.class.php line 60 ...
- throw new sfFactoryException(sprintf('Class "%s" is not of the type sfContext.', $class));
- }
- self::$instances[$name]->initialize($configuration);
- return self::$instances[$name];
- }
- at sfContext::createInstance(object('frontendConfiguration'))
in SF_ROOT_DIR/web/frontend.php line 10 ...
- }else{
- $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', false);
- }
- sfContext::createInstance($configuration)->dispatch();
-
symfony settings ...
app_host: yurist-dotsenko.ru
app_mailing_from: 'Dotsenko <noreply@yurist-dotsenko.ru>'
app_mailing_queue: 100
app_sfImageTransformPlugin_default_adapter: GD
app_sfImageTransformPlugin_default_image:
mime_type: image/png
filename: Untitled.png
width: 100
height: 100
color: '#FFFFFF'
app_sfImageTransformPlugin_font_dir: /usr/share/fonts/truetype/msttcorefonts
app_sfImageTransformPlugin_mime_type:
auto_detect: true
library: gd_mime_type
app_url_index: /
mod_global_partial_view_class: sfTwig
sf_admin_module_web_dir: /sfPropelORMPlugin
sf_admin_web_dir: /sf/sf_admin
sf_app: frontend
sf_app_base_cache_dir: /site/cache/frontend
sf_app_cache_dir: /site/cache/frontend/dev
sf_app_config_dir: /site/apps/frontend/config
sf_app_dir: /site/apps/frontend
sf_app_i18n_dir: /site/apps/frontend/i18n
sf_app_lib_dir: /site/apps/frontend/lib
sf_app_module_dir: /site/apps/frontend/modules
sf_app_template_dir: /site/apps/frontend/templates
sf_apps_dir: /site/apps
sf_cache: false
sf_cache_dir: /site/cache
sf_charset: utf-8
sf_check_lock: false
sf_compressed: false
sf_config_cache_dir: /site/cache/frontend/dev/config
sf_config_dir: /site/config
sf_csrf_secret: f085699f1bc5a3c94d4669513fd01167aa52fdc3
sf_data_dir: /site/data
sf_debug: true
sf_default_culture: en
sf_enabled_modules:
- default
sf_environment: dev
sf_error_404_action: error404
sf_error_404_module: page
sf_error_reporting: 32767
sf_escaping_method: ESC_SPECIALCHARS
sf_escaping_strategy: false
sf_etag: false
sf_file_link_format: null
sf_i18n: false
sf_i18n_cache_dir: /site/cache/frontend/dev/i18n
sf_lib_dir: /site/lib
sf_log_dir: /site/log
sf_logging_enabled: true
sf_login_action: login
sf_login_module: default
sf_module_cache_dir: /site/cache/frontend/dev/modules
sf_module_disabled_action: disabled
sf_module_disabled_module: default
sf_no_script_name: false
sf_orm: propel
sf_phing_path: /site/lib/vendor/phing/phing
sf_plugins_dir: /site/plugins
sf_propel_generator_path: /site/lib/vendor/propel/propel1/generator/lib
sf_propel_path: /site/lib/vendor/propel/propel1
sf_root_dir: /site
sf_secure_action: secure
sf_secure_module: default
sf_standard_helpers:
0: Partial
1: Cache
2: Text
100: Custom
101: Phast
sf_symfony_lib_dir: /site/lib/vendor/symfony/symfony1/lib
sf_template_cache_dir: /site/cache/frontend/dev/template
sf_test_cache_dir: /site/cache/frontend/dev/test
sf_test_dir: /site/test
sf_twig_lib_dir: /site/lib/vendor/twig/twig/lib
sf_upload_dir: /site/web/uploads
sf_use_database: true
sf_web_debug: false
sf_web_debug_web_dir: /sf/sf_web_debug
sf_web_dir: /site/web
request ...
options:
path_info_key: PATH_INFO
path_info_array: SERVER
http_port: null
https_port: null
default_format: null
logging: '1'
relative_url_root: null
formats: { txt: text/plain, js: [application/javascript, application/x-javascript, text/javascript], css: text/css, json: [application/json, application/x-json], xml: [text/xml, application/xml, application/x-xml], rdf: application/rdf+xml, atom: application/atom+xml }
no_script_name: false
parameterHolder: { }
attributeHolder: { }
response ...
status:
code: 500
text: 'Internal Server Error'
options:
http_protocol: HTTP/1.0
logging: '1'
charset: utf-8
send_http_headers: true
content_type: 'text/html; charset=utf-8'
cookies: { }
httpHeaders:
Content-Type: 'text/html; charset=utf-8'
javascripts: { }
stylesheets: { }
metas: { }
httpMetas: { }
global vars ...
cookie: { }
env: { }
files: { }
get: { }
post: { }
server:
DOCUMENT_ROOT: /site/web
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: '*/*'
HTTP_CONNECTION: close
HTTP_HOST: yurist-dotsenko.ru
HTTP_USER_AGENT: claudebot
HTTP_X_FORWARDED_FOR: 34.205.246.61
HTTP_X_REAL_IP: 34.205.246.61
PATH: '/sbin:/usr/sbin:/bin:/usr/bin'
PHP_SELF: /frontend.php
QUERY_STRING: ''
REDIRECT_STATUS: '200'
REDIRECT_URL: /
REMOTE_ADDR: 34.205.246.61
REMOTE_PORT: '38281'
REQUEST_METHOD: GET
REQUEST_TIME: 1711617104
REQUEST_TIME_FLOAT: 1711617104.143
REQUEST_URI: /
SCRIPT_FILENAME: /site/web/frontend.php
SCRIPT_NAME: /frontend.php
SERVER_ADDR: 127.0.0.1
SERVER_ADMIN: hostmaster@overbyte.ru
SERVER_NAME: yurist-dotsenko.ru
SERVER_PORT: '80'
SERVER_PROTOCOL: HTTP/1.0
SERVER_SIGNATURE: ''
SERVER_SOFTWARE: Apache