SunPosition Calculator Locations List

DB_Error::__set_state(array( 'error_message_prefix' => '', 'mode' => 1, 'level' => 1024, 'code' => -24, 'message' => 'DB Error: connect failed', 'userinfo' => ' [nativecode=Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)] ** mysql://sunposit_app:8rvsDpu#EWEu@localhost/sunposit_main', 'backtrace' => array ( 0 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/pear/DB.php', 'line' => 967, 'function' => '__construct', 'class' => 'PEAR_Error', 'type' => '->', 'args' => array ( 0 => 'DB Error: connect failed', 1 => -24, 2 => 1, 3 => 1024, 4 => ' [nativecode=Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)]', ), ), 1 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/pear/PEAR.php', 'line' => 575, 'function' => '__construct', 'class' => 'DB_Error', 'object' => NULL, 'type' => '->', 'args' => array ( 0 => -24, 1 => 1, 2 => 1024, 3 => ' [nativecode=Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)]', ), ), 2 => array ( 'function' => '_raiseError', 'class' => 'PEAR', 'object' => DB_mysql::__set_state(array( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'features' => array ( 'limit' => 'alter', 'new_link' => '4.2.0', 'numrows' => true, 'pconnect' => true, 'prepare' => false, 'ssl' => false, 'transactions' => true, ), 'errorcode_map' => array ( 1004 => -15, 1005 => -15, 1006 => -15, 1007 => -5, 1008 => -17, 1022 => -5, 1044 => -26, 1046 => -14, 1048 => -3, 1049 => -27, 1050 => -5, 1051 => -18, 1054 => -19, 1061 => -5, 1062 => -5, 1064 => -2, 1091 => -4, 1100 => -21, 1136 => -22, 1142 => -26, 1146 => -18, 1216 => -3, 1217 => -3, 1356 => -13, 1451 => -3, 1452 => -3, ), 'connection' => false, 'dsn' => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 'autocommit' => true, 'transaction_opcount' => 0, '_db' => '', 'fetchmode' => 1, 'fetchmode_object_class' => 'stdClass', 'was_connected' => NULL, 'last_query' => '', 'options' => array ( 'result_buffering' => 500, 'persistent' => false, 'ssl' => false, 'debug' => 2, 'seqname_format' => '%s_seq', 'autofree' => false, 'portability' => 63, 'optimize' => 'performance', ), 'last_parameters' => array ( ), 'prepare_tokens' => array ( ), 'prepare_types' => array ( ), 'prepared_queries' => array ( ), '_last_query_manip' => false, '_next_query_manip' => false, '_debug' => false, '_default_error_mode' => NULL, '_default_error_options' => NULL, '_default_error_handler' => '', '_error_class' => 'DB_Error', '_expected_errors' => array ( ), )), 'type' => '->', 'args' => array ( 0 => DB_mysql::__set_state(array( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'features' => array ( 'limit' => 'alter', 'new_link' => '4.2.0', 'numrows' => true, 'pconnect' => true, 'prepare' => false, 'ssl' => false, 'transactions' => true, ), 'errorcode_map' => array ( 1004 => -15, 1005 => -15, 1006 => -15, 1007 => -5, 1008 => -17, 1022 => -5, 1044 => -26, 1046 => -14, 1048 => -3, 1049 => -27, 1050 => -5, 1051 => -18, 1054 => -19, 1061 => -5, 1062 => -5, 1064 => -2, 1091 => -4, 1100 => -21, 1136 => -22, 1142 => -26, 1146 => -18, 1216 => -3, 1217 => -3, 1356 => -13, 1451 => -3, 1452 => -3, ), 'connection' => false, 'dsn' => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 'autocommit' => true, 'transaction_opcount' => 0, '_db' => '', 'fetchmode' => 1, 'fetchmode_object_class' => 'stdClass', 'was_connected' => NULL, 'last_query' => '', 'options' => array ( 'result_buffering' => 500, 'persistent' => false, 'ssl' => false, 'debug' => 2, 'seqname_format' => '%s_seq', 'autofree' => false, 'portability' => 63, 'optimize' => 'performance', ), 'last_parameters' => array ( ), 'prepare_tokens' => array ( ), 'prepare_types' => array ( ), 'prepared_queries' => array ( ), '_last_query_manip' => false, '_next_query_manip' => false, '_debug' => false, '_default_error_mode' => NULL, '_default_error_options' => NULL, '_default_error_handler' => '', '_error_class' => 'DB_Error', '_expected_errors' => array ( ), )), 1 => NULL, 2 => -24, 3 => NULL, 4 => NULL, 5 => ' [nativecode=Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)]', 6 => 'DB_Error', 7 => true, ), ), 3 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/pear/PEAR.php', 'line' => 224, 'function' => 'call_user_func_array', 'args' => array ( 0 => array ( 0 => 'PEAR', 1 => '_raiseError', ), 1 => array ( 0 => DB_mysql::__set_state(array( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'features' => array ( 'limit' => 'alter', 'new_link' => '4.2.0', 'numrows' => true, 'pconnect' => true, 'prepare' => false, 'ssl' => false, 'transactions' => true, ), 'errorcode_map' => array ( 1004 => -15, 1005 => -15, 1006 => -15, 1007 => -5, 1008 => -17, 1022 => -5, 1044 => -26, 1046 => -14, 1048 => -3, 1049 => -27, 1050 => -5, 1051 => -18, 1054 => -19, 1061 => -5, 1062 => -5, 1064 => -2, 1091 => -4, 1100 => -21, 1136 => -22, 1142 => -26, 1146 => -18, 1216 => -3, 1217 => -3, 1356 => -13, 1451 => -3, 1452 => -3, ), 'connection' => false, 'dsn' => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 'autocommit' => true, 'transaction_opcount' => 0, '_db' => '', 'fetchmode' => 1, 'fetchmode_object_class' => 'stdClass', 'was_connected' => NULL, 'last_query' => '', 'options' => array ( 'result_buffering' => 500, 'persistent' => false, 'ssl' => false, 'debug' => 2, 'seqname_format' => '%s_seq', 'autofree' => false, 'portability' => 63, 'optimize' => 'performance', ), 'last_parameters' => array ( ), 'prepare_tokens' => array ( ), 'prepare_types' => array ( ), 'prepared_queries' => array ( ), '_last_query_manip' => false, '_next_query_manip' => false, '_debug' => false, '_default_error_mode' => NULL, '_default_error_options' => NULL, '_default_error_handler' => '', '_error_class' => 'DB_Error', '_expected_errors' => array ( ), )), 1 => NULL, 2 => -24, 3 => NULL, 4 => NULL, 5 => ' [nativecode=Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)]', 6 => 'DB_Error', 7 => true, ), ), ), 4 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/pear/DB/common.php', 'line' => 1907, 'function' => '__call', 'class' => 'PEAR', 'object' => DB_mysql::__set_state(array( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'features' => array ( 'limit' => 'alter', 'new_link' => '4.2.0', 'numrows' => true, 'pconnect' => true, 'prepare' => false, 'ssl' => false, 'transactions' => true, ), 'errorcode_map' => array ( 1004 => -15, 1005 => -15, 1006 => -15, 1007 => -5, 1008 => -17, 1022 => -5, 1044 => -26, 1046 => -14, 1048 => -3, 1049 => -27, 1050 => -5, 1051 => -18, 1054 => -19, 1061 => -5, 1062 => -5, 1064 => -2, 1091 => -4, 1100 => -21, 1136 => -22, 1142 => -26, 1146 => -18, 1216 => -3, 1217 => -3, 1356 => -13, 1451 => -3, 1452 => -3, ), 'connection' => false, 'dsn' => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 'autocommit' => true, 'transaction_opcount' => 0, '_db' => '', 'fetchmode' => 1, 'fetchmode_object_class' => 'stdClass', 'was_connected' => NULL, 'last_query' => '', 'options' => array ( 'result_buffering' => 500, 'persistent' => false, 'ssl' => false, 'debug' => 2, 'seqname_format' => '%s_seq', 'autofree' => false, 'portability' => 63, 'optimize' => 'performance', ), 'last_parameters' => array ( ), 'prepare_tokens' => array ( ), 'prepare_types' => array ( ), 'prepared_queries' => array ( ), '_last_query_manip' => false, '_next_query_manip' => false, '_debug' => false, '_default_error_mode' => NULL, '_default_error_options' => NULL, '_default_error_handler' => '', '_error_class' => 'DB_Error', '_expected_errors' => array ( ), )), 'type' => '->', 'args' => array ( 0 => 'raiseError', 1 => array ( 0 => NULL, 1 => -24, 2 => NULL, 3 => NULL, 4 => ' [nativecode=Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)]', 5 => 'DB_Error', 6 => true, ), ), ), 5 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/pear/DB/common.php', 'line' => 1907, 'function' => 'raiseError', 'class' => 'PEAR', 'object' => DB_mysql::__set_state(array( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'features' => array ( 'limit' => 'alter', 'new_link' => '4.2.0', 'numrows' => true, 'pconnect' => true, 'prepare' => false, 'ssl' => false, 'transactions' => true, ), 'errorcode_map' => array ( 1004 => -15, 1005 => -15, 1006 => -15, 1007 => -5, 1008 => -17, 1022 => -5, 1044 => -26, 1046 => -14, 1048 => -3, 1049 => -27, 1050 => -5, 1051 => -18, 1054 => -19, 1061 => -5, 1062 => -5, 1064 => -2, 1091 => -4, 1100 => -21, 1136 => -22, 1142 => -26, 1146 => -18, 1216 => -3, 1217 => -3, 1356 => -13, 1451 => -3, 1452 => -3, ), 'connection' => false, 'dsn' => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 'autocommit' => true, 'transaction_opcount' => 0, '_db' => '', 'fetchmode' => 1, 'fetchmode_object_class' => 'stdClass', 'was_connected' => NULL, 'last_query' => '', 'options' => array ( 'result_buffering' => 500, 'persistent' => false, 'ssl' => false, 'debug' => 2, 'seqname_format' => '%s_seq', 'autofree' => false, 'portability' => 63, 'optimize' => 'performance', ), 'last_parameters' => array ( ), 'prepare_tokens' => array ( ), 'prepare_types' => array ( ), 'prepared_queries' => array ( ), '_last_query_manip' => false, '_next_query_manip' => false, '_debug' => false, '_default_error_mode' => NULL, '_default_error_options' => NULL, '_default_error_handler' => '', '_error_class' => 'DB_Error', '_expected_errors' => array ( ), )), 'type' => '->', 'args' => array ( 0 => NULL, 1 => -24, 2 => NULL, 3 => NULL, 4 => ' [nativecode=Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)]', 5 => 'DB_Error', 6 => true, ), ), 6 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/pear/DB/mysql.php', 'line' => 252, 'function' => 'raiseError', 'class' => 'DB_common', 'object' => DB_mysql::__set_state(array( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'features' => array ( 'limit' => 'alter', 'new_link' => '4.2.0', 'numrows' => true, 'pconnect' => true, 'prepare' => false, 'ssl' => false, 'transactions' => true, ), 'errorcode_map' => array ( 1004 => -15, 1005 => -15, 1006 => -15, 1007 => -5, 1008 => -17, 1022 => -5, 1044 => -26, 1046 => -14, 1048 => -3, 1049 => -27, 1050 => -5, 1051 => -18, 1054 => -19, 1061 => -5, 1062 => -5, 1064 => -2, 1091 => -4, 1100 => -21, 1136 => -22, 1142 => -26, 1146 => -18, 1216 => -3, 1217 => -3, 1356 => -13, 1451 => -3, 1452 => -3, ), 'connection' => false, 'dsn' => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 'autocommit' => true, 'transaction_opcount' => 0, '_db' => '', 'fetchmode' => 1, 'fetchmode_object_class' => 'stdClass', 'was_connected' => NULL, 'last_query' => '', 'options' => array ( 'result_buffering' => 500, 'persistent' => false, 'ssl' => false, 'debug' => 2, 'seqname_format' => '%s_seq', 'autofree' => false, 'portability' => 63, 'optimize' => 'performance', ), 'last_parameters' => array ( ), 'prepare_tokens' => array ( ), 'prepare_types' => array ( ), 'prepared_queries' => array ( ), '_last_query_manip' => false, '_next_query_manip' => false, '_debug' => false, '_default_error_mode' => NULL, '_default_error_options' => NULL, '_default_error_handler' => '', '_error_class' => 'DB_Error', '_expected_errors' => array ( ), )), 'type' => '->', 'args' => array ( 0 => -24, 1 => NULL, 2 => NULL, 3 => NULL, 4 => 'Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)', ), ), 7 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/pear/DB.php', 'line' => 557, 'function' => 'connect', 'class' => 'DB_mysql', 'object' => DB_mysql::__set_state(array( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'features' => array ( 'limit' => 'alter', 'new_link' => '4.2.0', 'numrows' => true, 'pconnect' => true, 'prepare' => false, 'ssl' => false, 'transactions' => true, ), 'errorcode_map' => array ( 1004 => -15, 1005 => -15, 1006 => -15, 1007 => -5, 1008 => -17, 1022 => -5, 1044 => -26, 1046 => -14, 1048 => -3, 1049 => -27, 1050 => -5, 1051 => -18, 1054 => -19, 1061 => -5, 1062 => -5, 1064 => -2, 1091 => -4, 1100 => -21, 1136 => -22, 1142 => -26, 1146 => -18, 1216 => -3, 1217 => -3, 1356 => -13, 1451 => -3, 1452 => -3, ), 'connection' => false, 'dsn' => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 'autocommit' => true, 'transaction_opcount' => 0, '_db' => '', 'fetchmode' => 1, 'fetchmode_object_class' => 'stdClass', 'was_connected' => NULL, 'last_query' => '', 'options' => array ( 'result_buffering' => 500, 'persistent' => false, 'ssl' => false, 'debug' => 2, 'seqname_format' => '%s_seq', 'autofree' => false, 'portability' => 63, 'optimize' => 'performance', ), 'last_parameters' => array ( ), 'prepare_tokens' => array ( ), 'prepare_types' => array ( ), 'prepared_queries' => array ( ), '_last_query_manip' => false, '_next_query_manip' => false, '_debug' => false, '_default_error_mode' => NULL, '_default_error_options' => NULL, '_default_error_handler' => '', '_error_class' => 'DB_Error', '_expected_errors' => array ( ), )), 'type' => '->', 'args' => array ( 0 => array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => 'sunposit_app', 'password' => '8rvsDpu#EWEu', 'protocol' => 'tcp', 'hostspec' => 'localhost', 'port' => false, 'socket' => false, 'database' => 'sunposit_main', ), 1 => false, ), ), 8 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/NPear.php', 'line' => 77, 'function' => 'connect', 'class' => 'DB', 'type' => '::', 'args' => array ( 0 => 'mysql://sunposit_app:8rvsDpu#EWEu@localhost/sunposit_main', 1 => array ( 'debug' => 2, 'portability' => 63, ), ), ), 9 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/components/NPear/NPear.php', 'line' => 151, 'function' => 'db_init', 'class' => 'NPear', 'type' => '::', 'args' => array ( ), ), 10 => array ( 'file' => '/home/sunposit/public_html/sunposition/spc/application/entity/location.php', 'line' => 135, 'function' => 'getOne', 'class' => 'NPear', 'type' => '::', 'args' => array ( 0 => 'SELECT count(location_id) FROM `locations` WHERE `global` <=1', ), ), 11 => array ( 'file' => '/home/sunposit/public_html/sunposition/_sploader.php', 'line' => 125, 'function' => 'getLocationsCntMembers', 'class' => 'LocationEntity', 'type' => '::', 'args' => array ( ), ), 12 => array ( 'file' => '/home/sunposit/public_html/sunposition/locationlist.php', 'line' => 201, 'function' => 'display', 'args' => array ( 0 => '/home/sunposit/public_html/sunposition/sptemplates/login.tpl', ), ), 13 => array ( 'file' => '/home/sunposit/public_html/sunposition/index.php', 'line' => 387, 'args' => array ( 0 => '/home/sunposit/public_html/sunposition/locationlist.php', ), 'function' => 'include_once', ), ), 'callback' => NULL, ))
Failed connecting to database