Archive

Failed to get DB handle: SQLSTATE[HYT00]: [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired PDOException Object ( [message:protected] => SQLSTATE[HYT00]: [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired [string:Exception:private] => [code:protected] => HYT00 [file:protected] => /var/www/html/gwcca/connect2.php [line:protected] => 9 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/html/gwcca/connect2.php [line] => 9 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => sqlsrv:Server=tcp:sql-02.public.865f89f1c61a.database.windows.net,3342;Database=ubr [1] => webquery [2] => pSRB2!$YbiCU ) ) [1] => Array ( [file] => /var/www/html/gwcca/wp-content/plugins/php-code-for-posts/Classes/Shortcode.php(95) : eval()'d code [line] => 2 [args] => Array ( [0] => /var/www/html/gwcca/connect2.php ) [function] => include ) [2] => Array ( [file] => /var/www/html/gwcca/wp-content/plugins/php-code-for-posts/Classes/Shortcode.php [line] => 95 [function] => eval ) [3] => Array ( [file] => /var/www/html/gwcca/wp-content/plugins/php-code-for-posts/Classes/Shortcode.php [line] => 45 [function] => do_shortcode [class] => PhpCodeForPosts_Shortcode [type] => :: [args] => Array ( [0] => PhpCodeForPosts_Snippet Object ( [id:protected] => 14 [name:protected] => GWCCA - Event list [slug:protected] => gwcca-event-list [description:protected] => Event tile on GWCCA index [code:protected] => connect_error){ $sql = $dbh->prepare("SELECT Top 5 * FROM vw_GWCCA_Events order by EventStart ASC"); $sql->execute(); while( $row = $sql->fetch()) { /*fpr sort */ $startD = date('n/j/Y',strtotime($row[EventStart])); $endD = date('n/j/Y', strtotime($row[EventStart])); if($startD == $endD){ $myDate = $startD; }else{ $myDate = $startD.' - '.$endD; } if($row[AnchorSpace]=="Georgia Dome"){ echo "Dome event"; }elseif($row[AnchorSpace]=="Centennial Park"){ echo "Park event"; }else{ echo "GWCC event"; } echo "
"; //EVENT PAGES include(locate_template('myContent-eventLinks.php')); echo "
"; echo "
".$myDate."
"; echo "
"; } } ?> [shared:protected] => 0 ) [1] => Array ( [snippet] => 14 [slug] => [param] => ) ) ) [4] => Array ( [file] => /var/www/html/gwcca/wp-includes/shortcodes.php [line] => 356 [function] => handle_shortcode [class] => PhpCodeForPosts_Shortcode [type] => :: [args] => Array ( [0] => Array ( [snippet] => 14 [slug] => [param] => ) [1] => [2] => php ) ) [5] => Array ( [function] => do_shortcode_tag [args] => Array ( [0] => Array ( [0] => [php snippet=14] [1] => [2] => php [3] => snippet=14 [4] => [5] => [6] => ) ) ) [6] => Array ( [file] => /var/www/html/gwcca/wp-includes/shortcodes.php [line] => 228 [function] => preg_replace_callback [args] => Array ( [0] => /\[(\[?)(php)(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)/ [1] => do_shortcode_tag [2] => [php snippet=14] ) ) [7] => Array ( [file] => /var/www/html/gwcca/wp-includes/class-wp-hook.php [line] => 307 [function] => do_shortcode [args] => Array ( [0] => [php snippet=14] ) ) [8] => Array ( [file] => /var/www/html/gwcca/wp-includes/plugin.php [line] => 189 [function] => apply_filters [class] => WP_Hook [type] => -> [args] => Array ( [0] => [php snippet=14] [1] => Array ( [0] => [php snippet=14] ) ) ) [9] => Array ( [file] => /var/www/html/gwcca/wp-includes/post-template.php [line] => 253 [function] => apply_filters [args] => Array ( [0] => the_content [1] => [php snippet=14] ) ) [10] => Array ( [file] => /var/www/html/gwcca/wp-content/themes/gwcca2018/archive.php [line] => 81 [function] => the_content [args] => Array ( ) ) [11] => Array ( [file] => /var/www/html/gwcca/wp-includes/template-loader.php [line] => 106 [args] => Array ( [0] => /var/www/html/gwcca/wp-content/themes/gwcca2018/archive.php ) [function] => include ) [12] => Array ( [file] => /var/www/html/gwcca/wp-blog-header.php [line] => 19 [args] => Array ( [0] => /var/www/html/gwcca/wp-includes/template-loader.php ) [function] => require_once ) [13] => Array ( [file] => /var/www/html/gwcca/index.php [line] => 17 [args] => Array ( [0] => /var/www/html/gwcca/wp-blog-header.php ) [function] => require ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => HYT00 [1] => 0 [2] => [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired ) ) 1