There was a problem with a Velocity script
Pageogp-tags
ErrorInvocation of method 'include' in class com.prestosports.render.ContentEngineInvoker threw exception java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections" at ogp-tags[line 3, column 14]
Page source:
1: #if ($request.getAttribute("pageObj"))
2: 
3:     $website.include("options")
4:     #set ($pageObj = $request.getAttribute("pageObj"))
5:     #set ($options = $request.getAttribute("options"))
6: 
7: 	#set ($canonicalUrl = "//${website.profile.preferredDomain}")
8: 	#if ($pageObj.url.startsWith("/"))
9: 		#set ($canonicalUrl = "${canonicalUrl}${pageObj.url}")
10: 	#else
11: 		#set ($canonicalUrl = "${canonicalUrl}/${pageObj.url}")
12: 	#end
13: 	
14: 	<link rel="canonical" href="$canonicalUrl" />
15:     <meta property="fb:app_id" content="280467664480" />
16:     
17:     #if ($!options.get("og_twitter_account"))
18:         <meta name="twitter:card" content="summary_large_image" />
19:         <meta name="twitter:site" content="@$options.get("og_twitter_account")" />
20:         <meta name="twitter:creator" content="@$options.get("og_twitter_account")" />
21: 
22:         #if ($pageObj.thumbnailURL)
23:              <meta name="twitter:image" content="http://${request.serverName}${pageObj.thumbnailURL}?max_width=550&max_height=550" />
24:         #elseif ($pageObj.contentType == "loki/youtube")
25:             <meta name="twitter:image" content="http://img.youtube.com/vi/${pageObj.dataAsString}/0.jpg" />
26:         #else
27:             <meta name="twitter:image" content="http://${request.serverName}/images/setup/thumbnail_default.jpg?max_width=550&max_height=550" />
28:         #end
29:     #end
30: 
31:     #if ($pageObj.contentType.startsWith("statcrew/"))
32:       $website.includeAgain("${pageObj}?tmpl=boxscore-meta-template")
33:     #else
34:       <meta property="og:title" #if ($pageObj.title.length() > 0) content="$pageObj.title" #else content="$website.profile.siteName" #end />
35:       <meta property="og:description" #if ($pageObj.leadIn.length() > 0) content="$pageObj.leadIn" #elseif ($pageObj.title.length() > 0) content="$pageObj.title" #else content="$website.profile.siteName" #end />
36:       #if ($pageObj.thumbnailURL)
37:         <meta property="og:image" content="http://${request.serverName}${pageObj.thumbnailURL}?max_width=600&max_height=600" />
38:         <meta property="og:image:secure_url" content="https://${request.serverName}${pageObj.thumbnailURL}?max_width=600&max_height=600" />
39:         <meta property="og:image:width" content="600" />
40:         <meta property="og:image:height" content="600" />
41:       #elseif ($pageObj.contentType == "loki/youtube")
42:         <meta property="og:image" content="http://img.youtube.com/vi/${pageObj.dataAsString}/0.jpg" />
43:       #else
44:         <meta property="og:image" content="http://${request.serverName}/images/setup/thumbnail_default.jpg?max_width=600&max_height=600" />
45:       #end
46:     #end
47: 
48:     <meta property="og:site_name" content="$website.profile.siteName" />
49:     <meta property="og:url" content="${canonicalUrl}" />
50: 
51:     #if ($pageObj.contentType == "loki/tinymce") ## article
52:       <meta property="og:type" content="article" />
53:       #if ($pageObj.date)
54:         <meta property="article:published_time" content="${formatter.formatDate($pageObj.date, "yyyy-MM-dd")}" />
55:       #end
56: 
57:     #elseif ($pageObj.contentType == "video/x-flv" || $pageObj.contentType == "loki/video" || $pageObj.contentType == "loki/youtube") ## video
58: 
59:       <meta property="og:type" content="video" />
60: 
61:       #if ($pageObj.contentType == "video/x-flv" || $pageObj.contentType == "loki/video")
62:         <meta property="og:video" content="http://${request.serverName}/info/player/5.0/mediaplayer.swf?file=${website.includeAgain("$pageObj.url?tmpl=video-url-template")}&autostart=true" />
63:       #else
64:         <meta property="og:video" content="https://www.youtube.com/v/${pageObj.dataAsString}?version=3&amp;autohide=1" />
65:         <meta property="og:video:secure_url" content="https://www.youtube.com/v/${pageObj.dataAsString}?version=3&amp;autohide=1" />
66:       #end
67: 
68:     <meta property="og:video:type" content="application/x-shockwave-flash" />
69:     <meta property="og:video:width" content="480" />
70:     <meta property="og:video:height" content="360" />
71: 
72:     #end
73: 
74: 
75: #end ## getAttribute

Skip to navigation Skip to content Skip to footer