Exception detected!

Connection failed: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

Ip-address: 54.80.148.252
Found in /home/hypeit/public_html/application/Library/Hype/Database/PDOConnection.php - on line - 42

Backtrace:

1 <ROOT>/application/Library/Hype/Database/AdapterAbstract.php line 97Hype\Database\PDOConnection->connect()
  • Source
  • 90 $this->name = (string)$name;
    91 $this->user = (string)$user;
    92 $this->password = (string)$password;
    93 $this->cache = $cache;
    94 $this->showErrors = (boolean)$showErrors;
    95
    96 if(!$this->connected)
    97 $this->connect();
    98 }
    99
    100 abstract protected function connect();
    101
    102 /**
    103 * Quote a column identifier and alias.
    104 *
2 <ROOT>/application/Library/Hype/Bootstrap/Bootstrap.php line 190Hype\Database\AdapterAbstract->__construct(hostname, name, user, password, cache, showErrors)
  • Source
  • Arguments
  • 183 $this->query = new Query(
    184 $this->options['database']['host'],
    185 $this->options['database']['dbname'],
    186 $this->options['database']['dbuser'],
    187 $this->options['database']['dbpassword'],
    188 $services['cache'],
    189 $this->options['database']['showErrors']
    190 );
    191
    192 $services['modelMapper'] = $modelMapper = new Factory($this->query, $cache);
    193 }
    194
    195 include_once(APPLICATION_PATH.'/Config/routes.php');
    196 $this->serviceHandler->handleRequest($services);
    197 }
  • hostname string (9) "localhost"
    name string (6) "hypeit"
    user string (8) "hypeitnl"
    password string (9) "rejeqy2ap"
    cache object Hype\Cache\Cache (6)
    • object (6)
    • Static class properties (2)
    • Available methods (7)
    • private cacheTypes -> array (0)
      private arrayCache -> object Hype\Cache\ArrayCache (1)
      • object (1)
      • Available methods (11)
      • private session -> object Hype\Handlers\Session\SessionHandler (1)
        • object (1)
        • Available methods (6)
        • private session -> array (1)
          'collection' => string (90) "O:27:"Hype\Collection\GenericList":1:{s:37:"Hype\Collection …"
          O:27:"Hype\Collection\GenericList":1:{s:37:"Hype\Collection\GenericListelements";a:0:{}}
        • public __construct(Hype\Handlers\Request\RequestHandler $requestHandler)
          Constructor
          @param RequestHandler $requestHandler
          
          Defined in <ROOT>/application/Library/Hype/Handlers/Session/SessionHandler.php line 43
          public get($key)
          Defined in <ROOT>/application/Library/Hype/Handlers/Session/SessionHandler.php line 73
          public has($key) -> bool Whether the key was found in the session.
          Checks if a key exists in the session.
          @param string $key The name of the key.
          @return bool Whether the key was found in the session.
          
          Defined in <ROOT>/application/Library/Hype/Handlers/Session/SessionHandler.php line 63
          public remove($key)
          Removes a value from the session by the given key.
          @param string $key The name of the key.
          
          Defined in <ROOT>/application/Library/Hype/Handlers/Session/SessionHandler.php line 82
          public reset()
          Resets the session removing all elements.
          
          Defined in <ROOT>/application/Library/Hype/Handlers/Session/SessionHandler.php line 90
          public set($key, $value)
          Inserts a new value by the given key using the setter.
          @param string $key The index key.
          @param mixed $value The value.
          
          Defined in <ROOT>/application/Library/Hype/Handlers/Session/SessionHandler.php line 53
      • public __construct(Hype\Handlers\Session\SessionHandler $session)
        Constructor.
        Adds a new GenericList to the collection of this session, if none exists.
        @param SessionHandler $session The session used to store the results in.
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 44
        public __toString()
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 53
        public contains($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 79
        public delete($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 98
        public fetch($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 88
        public flush()
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 145
        public isValid($id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 109
        public save($result, $id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 55
        final protected saveIdToList($id)
        Saves the key to the list to enable removing by prefix.
        This list is used in order to invalidate cache entries when they are
        updated at run-time.
        @param string $id The key to save.
        
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 37
        private getCollectionFromSession() -> GenericList The unserialized collection from the session.
        Gets the collection which is saved in the session.
        @return GenericList The unserialized collection from the session.
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 128
        private saveCollectionToSession(Hype\Collection\GenericList $collection)
        Save the collection to the session, after serialization.
        @param GenericList $collection The collection to save in the session.
        
        Defined in <ROOT>/application/Library/Hype/Cache/ArrayCache.php line 137
      private fileCache -> object Hype\Cache\FileCache (2)
      • object (2)
      • Available methods (9)
      • private cacheDir -> string (5) "/tmp/"
        private extension -> string (5) ".data"
      • public __construct($cacheDir)
        Constructor.
        @param string $cacheDir The path to the directory where the cache files are stored.
        
        Defined in <ROOT>/application/Library/Hype/Cache/FileCache.php line 47
        public __toString()
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 53
        public contains($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/FileCache.php line 71
        public delete($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/FileCache.php line 93
        public fetch($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/FileCache.php line 80
        public flush()
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/FileCache.php line 125
        public isValid($id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/FileCache.php line 102
        public save($result, $id, $ttl)
        In addition, $ttl can't be removed because of the implemented Interface.
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/FileCache.php line 56
        final protected saveIdToList($id)
        Saves the key to the list to enable removing by prefix.
        This list is used in order to invalidate cache entries when they are
        updated at run-time.
        @param string $id The key to save.
        
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 37
      private memCache -> object Hype\Cache\MemCache (1)
      • object (1)
      • Available methods (9)
      • private memCache -> object Memcached (0)
        • Static class properties (86)
        • Available methods (50)
        • constant OPT_COMPRESSION :: integer -1001
          constant OPT_COMPRESSION_TYPE :: integer -1004
          constant OPT_PREFIX_KEY :: integer -1002
          constant OPT_SERIALIZER :: integer -1003
          constant HAVE_IGBINARY :: integer 0
          constant HAVE_JSON :: integer 0
          constant HAVE_SESSION :: integer 1
          constant HAVE_SASL :: integer 0
          constant OPT_HASH :: integer 2
          constant HASH_DEFAULT :: integer 0
          constant HASH_MD5 :: integer 1
          constant HASH_CRC :: integer 2
          constant HASH_FNV1_64 :: integer 3
          constant HASH_FNV1A_64 :: integer 4
          constant HASH_FNV1_32 :: integer 5
          constant HASH_FNV1A_32 :: integer 6
          constant HASH_HSIEH :: integer 7
          constant HASH_MURMUR :: integer 8
          constant OPT_DISTRIBUTION :: integer 9
          constant DISTRIBUTION_MODULA :: integer 0
          constant DISTRIBUTION_CONSISTENT :: integer 1
          constant DISTRIBUTION_VIRTUAL_BUCKET :: integer 6
          constant OPT_LIBKETAMA_COMPATIBLE :: integer 16
          constant OPT_LIBKETAMA_HASH :: integer 17
          constant OPT_TCP_KEEPALIVE :: integer 32
          constant OPT_BUFFER_WRITES :: integer 10
          constant OPT_BINARY_PROTOCOL :: integer 18
          constant OPT_NO_BLOCK :: integer 0
          constant OPT_TCP_NODELAY :: integer 1
          constant OPT_SOCKET_SEND_SIZE :: integer 4
          constant OPT_SOCKET_RECV_SIZE :: integer 5
          constant OPT_CONNECT_TIMEOUT :: integer 14
          constant OPT_RETRY_TIMEOUT :: integer 15
          constant OPT_SEND_TIMEOUT :: integer 19
          constant OPT_RECV_TIMEOUT :: integer 20
          constant OPT_POLL_TIMEOUT :: integer 8
          constant OPT_CACHE_LOOKUPS :: integer 6
          constant OPT_SERVER_FAILURE_LIMIT :: integer 21
          constant OPT_AUTO_EJECT_HOSTS :: integer 28
          constant OPT_HASH_WITH_PREFIX_KEY :: integer 25
          constant OPT_NOREPLY :: integer 26
          constant OPT_SORT_HOSTS :: integer 12
          constant OPT_VERIFY_KEY :: integer 13
          constant OPT_USE_UDP :: integer 27
          constant OPT_NUMBER_OF_REPLICAS :: integer 29
          constant OPT_RANDOMIZE_REPLICA_READ :: integer 30
          constant OPT_REMOVE_FAILED_SERVERS :: integer 35
          constant RES_SUCCESS :: integer 0
          constant RES_FAILURE :: integer 1
          constant RES_HOST_LOOKUP_FAILURE :: integer 2
          constant RES_UNKNOWN_READ_FAILURE :: integer 7
          constant RES_PROTOCOL_ERROR :: integer 8
          constant RES_CLIENT_ERROR :: integer 9
          constant RES_SERVER_ERROR :: integer 10
          constant RES_WRITE_FAILURE :: integer 5
          constant RES_DATA_EXISTS :: integer 12
          constant RES_NOTSTORED :: integer 14
          constant RES_NOTFOUND :: integer 16
          constant RES_PARTIAL_READ :: integer 18
          constant RES_SOME_ERRORS :: integer 19
          constant RES_NO_SERVERS :: integer 20
          constant RES_END :: integer 21
          constant RES_ERRNO :: integer 26
          constant RES_BUFFERED :: integer 32
          constant RES_TIMEOUT :: integer 31
          constant RES_BAD_KEY_PROVIDED :: integer 33
          constant RES_STORED :: integer 15
          constant RES_DELETED :: integer 22
          constant RES_STAT :: integer 24
          constant RES_ITEM :: integer 25
          constant RES_NOT_SUPPORTED :: integer 28
          constant RES_FETCH_NOTFINISHED :: integer 30
          constant RES_SERVER_MARKED_DEAD :: integer 35
          constant RES_UNKNOWN_STAT_KEY :: integer 36
          constant RES_INVALID_HOST_PROTOCOL :: integer 34
          constant RES_MEMORY_ALLOCATION_FAILURE :: integer 17
          constant RES_CONNECTION_SOCKET_CREATE_FAILURE :: integer 11
          constant RES_PAYLOAD_FAILURE :: integer -1001
          constant SERIALIZER_PHP :: integer 1
          constant SERIALIZER_IGBINARY :: integer 2
          constant SERIALIZER_JSON :: integer 3
          constant SERIALIZER_JSON_ARRAY :: integer 4
          constant COMPRESSION_FASTLZ :: integer 2
          constant COMPRESSION_ZLIB :: integer 1
          constant GET_PRESERVE_ORDER :: integer 1
          constant GET_ERROR_RETURN_VALUE :: bool FALSE
        • public __construct($persistent_id, $callback)
          public add($key, $value, $expiration)
          public addByKey($server_key, $key, $value, $expiration)
          public addServer($host, $port, $weight)
          public addServers(array $servers)
          public append($key, $value, $expiration)
          public appendByKey($server_key, $key, $value, $expiration)
          public cas($cas_token, $key, $value, $expiration)
          public casByKey($cas_token, $server_key, $key, $value, $expiration)
          public decrement($key, $offset, $initial_value, $expiry)
          public decrementByKey($server_key, $key, $offset, $initial_value, $expiry)
          public delete($key, $time)
          public deleteByKey($server_key, $key, $time)
          public deleteMulti($keys, $time)
          public deleteMultiByKey($server_key, $keys, $time)
          public fetch()
          public fetchAll()
          public flush($delay)
          public get($key, $cache_cb, &$cas_token)
          public getAllKeys()
          public getByKey($server_key, $key, $cache_cb, &$cas_token)
          public getDelayed(array $keys, $with_cas, $value_cb)
          public getDelayedByKey($server_key, array $keys, $with_cas, $value_cb)
          public getMulti(array $keys, &$cas_tokens, $flags)
          public getMultiByKey($server_key, array $keys, &$cas_tokens, $flags)
          public getOption($option)
          public getResultCode()
          public getResultMessage()
          public getServerByKey($server_key)
          public getServerList()
          public getStats()
          public getVersion()
          public increment($key, $offset, $initial_value, $expiry)
          public incrementByKey($server_key, $key, $offset, $initial_value, $expiry)
          public isPersistent()
          public isPristine()
          public prepend($key, $value, $expiration)
          public prependByKey($server_key, $key, $value, $expiration)
          public quit()
          public replace($key, $value, $expiration)
          public replaceByKey($server_key, $key, $value, $expiration)
          public resetServerList()
          public set($key, $value, $expiration)
          public setByKey($server_key, $key, $value, $expiration)
          public setMulti(array $items, $expiration)
          public setMultiByKey($server_key, array $items, $expiration)
          public setOption($option, $value)
          public setOptions($options)
          public touch($key, $expiration)
          public touchByKey($server_key, $key, $expiration)
      • public __construct()
        Constructor for MemCache initializing a memcached object
        and setting up the server to connect the cache
        
        Defined in <ROOT>/application/Library/Hype/Cache/MemCache.php line 42
        public __toString()
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 53
        public contains($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/MemCache.php line 65
        public delete($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/MemCache.php line 81
        public fetch($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/MemCache.php line 73
        public flush()
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/MemCache.php line 97
        public isValid($id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/MemCache.php line 89
        public save($result, $id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/MemCache.php line 53
        final protected saveIdToList($id)
        Saves the key to the list to enable removing by prefix.
        This list is used in order to invalidate cache entries when they are
        updated at run-time.
        @param string $id The key to save.
        
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 37
      private xCache -> object Hype\Cache\XCache (0)
      • Available methods (8)
      • public __toString()
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 53
        public contains($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/XCache.php line 50
        public delete($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/XCache.php line 70
        public fetch($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/XCache.php line 58
        public flush()
        {@inheritdoc}
        @todo replace xcache_clear_cache with foreach and delete function
        
        Defined in <ROOT>/application/Library/Hype/Cache/XCache.php line 87
        public isValid($id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/XCache.php line 78
        public save($result, $id, $ttl) -> bool Whether the result was saved in the cache.
        Saves the result in cache.
        @param mixed $result The result that will be saved in cache.
        @param string $id The identifier of the cached result.
        @param int $ttl The lifespan of the cache.
        @return bool Whether the result was saved in the cache.
        
        Defined in <ROOT>/application/Library/Hype/Cache/XCache.php line 38
        final protected saveIdToList($id)
        Saves the key to the list to enable removing by prefix.
        This list is used in order to invalidate cache entries when they are
        updated at run-time.
        @param string $id The key to save.
        
        Inherited from Hype\Cache\AbstractHelper
        Defined in <ROOT>/application/Library/Hype/Cache/AbstractHelper.php line 37
      private noCache -> object Hype\Cache\NoCache (0)
      • Available methods (6)
      • public contains($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/NoCache.php line 39
        public delete($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/NoCache.php line 49
        public fetch($id)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/NoCache.php line 44
        public flush()
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/NoCache.php line 59
        public isValid($id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/NoCache.php line 54
        public save($result, $id, $ttl)
        {@inheritdoc}
        
        Defined in <ROOT>/application/Library/Hype/Cache/NoCache.php line 34
    • constant DEFAULT_TTL :: integer 3600
      constant CACHE_KEY_LIST :: string (10) "cachedkeys"
    • public __construct(Hype\Handlers\Session\SessionHandler $session, $cacheDir)
      Constructor.
      @param SessionHandler $session The session used in ArrayCache.
      @param string $cacheDir The cache directory used in FileCache.
      
      Defined in <ROOT>/application/Library/Hype/Cache/Cache.php line 84
      public buildCacheIdentifier($prefix, array $parameters = array()) -> string The identifier for the cached result.
      Builds a cache identifier for the cached result by the specified prefix and parameters.
      @param string $prefix The prefix for the cache identifier.
      @param array $parameters The parameters used to identify.
      @return string The identifier for the cached result.
      
      Defined in <ROOT>/application/Library/Hype/Cache/Cache.php line 212
      public deleteByPrefix(array $prefixes)
      Delete cache keys by the given prefixes.
      Searches in all cache types to delete the prefixes.
      @param array $prefixes The prefixes to search for.
      
      Defined in <ROOT>/application/Library/Hype/Cache/Cache.php line 183
      public flush()
      Removes all cache from all cache types
      
      Defined in <ROOT>/application/Library/Hype/Cache/Cache.php line 152
      public getAllKeys() -> GenericList The keys retrieved in a list.
      Retrieves all keys used in all cache types.
      @return GenericList The keys retrieved in a list.
      
      Defined in <ROOT>/application/Library/Hype/Cache/Cache.php line 164
      public getCacheType($className) -> CachingInterface The caching interface used for caching.
      Gets the cache type by the given class name.
      @param string $className The name of the class which has set a cache type.
      @return CachingInterface The caching interface used for caching.
      @throws DefaultException
      
      Defined in <ROOT>/application/Library/Hype/Cache/Cache.php line 132
      public setCacheType($cacheType, $className)
      Sets the type of caching to be used.
      @param string $cacheType The type of caching.
      @param string $className The name of the mapper in which the caching is placed.
      @throws DefaultException when the specified cache type cannot be used.
      
      Defined in <ROOT>/application/Library/Hype/Cache/Cache.php line 99
    showErrors bool TRUE
3 <ROOT>/application/Library/Hype/Bootstrap/Bootstrap.php line 99Hype\Bootstrap\Bootstrap->registerDefaultServices()
  • Source
  • 92 public function run()
    93 {
    94 session_start();
    95 $this->options = $this->application->getOptions();
    96 $this->initTemplateEngine();
    97
    98 try {
    99 $this->registerDefaultServices();
    100 $this->registerServices();
    101 $this->initTemplateExtensions();
    102 $this->initControllerHandler();
    103 } catch (RouteException $exception) {
    104 $response = new Response(null, Response::HTTP_NOT_FOUND);
    105 $exceptionHandler = new ExceptionHandler($this->environment, $exception, $response);
    106 echo $exceptionHandler->render404();
4 <ROOT>/application/Library/Hype/Application.php line 45Hype\Bootstrap\Bootstrap->run()
  • Source
  • 38 }
    39
    40 /**
    41 * Command the bootstrap to run the application
    42 */
    43 public function run()
    44 {
    45 $this->getBootstrap()->run();
    46 }
    47
    48 /**
    49 * Retrieves the options set in the config.
    50 * @return array The options set.
    51 */
    52 public function getOptions()
5 <ROOT>/index.php line 46Hype_Application->run()
  • Source
  • 39 )));
    40
    41 require_once(APPLICATION_PATH . '/Config/config.php');
    42 require_once(APPLICATION_PATH . '/Config/constants.php');
    43 require_once(APPLICATION_PATH . '/Vendor/autoload.php');
    44 require_once('Hype/Application.php');
    45 $application = new Hype_Application($options);
    46 $application->run();