Notice (8) : Trying to get property 'id' of non-object [APP/Controller/ProductsController.php , line 2750 ]Code Context
$product_details = $this -> ProductDetails -> find ()-> where ([ 'product_id' => $product -> id ])-> all ()-> toArray ();
$slug = 'sauvignon-blanc-1'
$session = object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => (int) 3600
[protected] _isCLI => false
}
$pcfValues_gpv = [
(int) 86 => 'Aglianico',
(int) 87 => 'Aglianico del Vulture',
(int) 88 => 'Albana',
(int) 89 => 'Albarossa',
(int) 90 => 'Aleatico',
(int) 91 => 'Alicante',
(int) 92 => 'Arneis',
(int) 115 => 'Barbera',
(int) 116 => 'Bardolino',
(int) 117 => 'Biancatenera',
(int) 118 => 'Bianco d'Alessano',
(int) 119 => 'Bombino',
(int) 120 => 'Bonarda',
(int) 121 => 'Bonvino',
(int) 122 => 'Bosco',
(int) 123 => 'Bovale Sardo',
(int) 124 => 'Cabernet Franc',
(int) 125 => 'Cabernet Sauvignon',
(int) 126 => 'Canaiolo',
(int) 127 => 'Cannonau',
(int) 128 => 'Carignan',
(int) 129 => 'Carignano',
(int) 130 => 'Carmenere',
(int) 131 => 'Carricante',
(int) 132 => 'Catarratto',
(int) 133 => 'Cerasuolo',
(int) 134 => 'Chardonnay',
(int) 135 => 'Chenin Blanc',
(int) 136 => 'Cinsault',
(int) 137 => 'Coda di Volpe',
(int) 138 => 'Colombana',
(int) 139 => 'Colombard',
(int) 140 => 'Colorino',
(int) 141 => 'Cortese',
(int) 142 => 'Corvina',
(int) 143 => 'Corvinone',
(int) 144 => 'Counoise',
(int) 145 => 'Croatina',
(int) 146 => 'Dolcetto',
(int) 147 => 'Drupeggio',
(int) 148 => 'Falanghina',
(int) 149 => 'Fiano',
(int) 150 => 'Freisa',
(int) 151 => 'Friulano',
(int) 152 => 'Gaglioppo',
(int) 153 => 'Gamay Noir',
(int) 154 => 'Garganega',
(int) 155 => 'Gewurztraminer',
(int) 156 => 'Glera',
(int) 157 => 'Grappa',
(int) 158 => 'Grecanico',
(int) 159 => 'Grechetto',
(int) 160 => 'Greco',
(int) 161 => 'Greco di Tufo',
(int) 162 => 'Greco Nero',
(int) 163 => 'Grenache',
(int) 164 => 'Grignolino',
(int) 165 => 'Grillo',
(int) 166 => 'Gros Manseng',
(int) 167 => 'Insolia',
(int) 168 => 'Lacrima',
(int) 169 => 'Lagrein',
(int) 170 => 'Lambrusco Maestri',
(int) 171 => 'Lambrusco Marani',
(int) 172 => 'Magliocco',
(int) 173 => 'Malbec',
(int) 174 => 'Malvasia',
(int) 175 => 'Malvasia di Candia',
(int) 177 => 'Malvasia di Lazio',
(int) 178 => 'Malvasia Nera',
(int) 179 => 'Mantonico',
(int) 180 => 'Marsanne',
(int) 181 => 'Merlot',
(int) 182 => 'Molinara',
(int) 183 => 'Monica',
(int) 184 => 'Montepulciano',
(int) 185 => 'Montepulciano d'Abruzzo',
(int) 186 => 'Moscato',
(int) 187 => 'Moscato Bianco',
(int) 188 => 'Moscato Giallo',
(int) 189 => 'Mourvedre',
(int) 190 => 'Muscadelle',
(int) 191 => 'Muscat',
(int) 192 => 'N/A',
(int) 193 => 'Nasco',
(int) 194 => 'Nebbiolo',
(int) 195 => 'Negroamaro',
(int) 196 => 'Nerello Mascalese',
(int) 197 => 'Nero d'Avola',
(int) 198 => 'Nuragus',
(int) 199 => 'Ormeasco',
(int) 200 => 'Oseleta',
(int) 201 => 'Pais',
(int) 202 => 'Passerina',
(int) 203 => 'Pecorino',
(int) 204 => 'Pepella',
(int) 205 => 'Petit Manseng',
(int) 206 => 'Petit Verdot',
(int) 207 => 'Petite Sirah',
(int) 208 => 'Picolit',
(int) 209 => 'Picpoul',
(int) 210 => 'Piedirosso',
(int) 211 => 'Pigato',
(int) 212 => 'Pignolo',
(int) 213 => 'Pinot Bianco',
(int) 214 => 'Pinot Grigio',
(int) 215 => 'Pinot Gris',
(int) 216 => 'Pinot Meunier',
(int) 217 => 'Pinot Nero',
(int) 218 => 'Pinot Noir',
(int) 219 => 'Pinotage',
(int) 220 => 'Pitz'e Carroga',
(int) 221 => 'Plavac Mali',
(int) 222 => 'Primitivo',
(int) 223 => 'Procanico',
(int) 224 => 'Prugnolo Gentile',
(int) 225 => 'Raboso',
(int) 226 => 'Refosco',
(int) 227 => 'Ribolla Gialla',
(int) 228 => 'Ribolla Nera',
(int) 229 => 'Riesling',
(int) 230 => 'Riesling Renano',
(int) 231 => 'Rolle',
(int) 232 => 'Rondinella',
(int) 233 => 'Rossese',
(int) 234 => 'Rossetto',
(int) 235 => 'Roussanne',
(int) 236 => 'Ruche',
(int) 237 => 'Sagrantino',
(int) 238 => 'Sangiovese',
(int) 239 => 'Sangiovese Grosso',
(int) 240 => 'Sauvignon Blanc',
(int) 241 => 'Schioppettino',
(int) 242 => 'Sciascinoso',
(int) 243 => 'Semillon',
(int) 244 => 'Shiraz',
(int) 245 => 'Sylvaner',
(int) 246 => 'Syrah',
(int) 247 => 'Tazzelenghe',
(int) 248 => 'Tempranillo',
(int) 249 => 'Tonda di Cagliari',
(int) 250 => 'Torrontes',
(int) 251 => 'Trebbiano',
(int) 252 => 'Trebbiano di Lugana',
(int) 253 => 'Trebbiano di Soave',
(int) 254 => 'Trebbiano Toscano',
(int) 255 => 'Ugni Blanc',
(int) 256 => 'Verdeca',
(int) 257 => 'Verdejo',
(int) 258 => 'Verdelho',
(int) 259 => 'Verdicchio',
(int) 260 => 'Vermentino',
(int) 261 => 'Vernaccia',
(int) 262 => 'Viognier',
(int) 263 => 'Viura',
(int) 264 => 'Zinfandel',
(int) 369 => 'Toscano'
]
$arrCountryFlags = [
(int) 54 => '20210518_ICON_1621318586.png',
(int) 55 => '20210518_ICON_1621318535.png',
(int) 56 => '20210518_ICON_1621318509.png',
(int) 57 => '20210518_ICON_1621318823.png',
(int) 58 => '20210518_ICON_1621318562.png',
(int) 59 => '20210518_ICON_1621318610.png',
(int) 60 => '20210518_ICON_1621318459.png',
(int) 61 => '20210518_ICON_1621318438.png',
(int) 62 => '20210518_ICON_1621318391.png',
(int) 63 => '20210518_ICON_1621318485.png'
]
$product = null App\Controller\ProductsController::downloadPDF() - APP/Controller/ProductsController.php, line 2750
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 610
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 98
[main] - ROOT/webroot/index.php, line 40 Warning (512) : Unable to emit headers. Headers sent in file=/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 [CORE/src/Http/ResponseEmitter.php , line 51 ]Code Context if ( Configure :: read ( 'debug' )) {
trigger_error ( $message , E_USER_WARNING );
} else {
$response = object(Cake\Http\Response) {
'status' => (int) 500,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Error: Impossible to generate condition with empty list of values for field (product_id) </title>
<link href="/favicon.ico" type="image/x-icon" rel="icon"/><link href="/favicon.ico" type="image/x-icon" rel="shortcut icon"/> <style>
body {
font: 14px helvetica, arial, sans-serif;
color: #222;
background-color: #f8f8f8;
padding:0;
margin: 0;
max-height: 100%;
}
.code-dump,
pre {
background: #fefefe;
border: 1px solid #ddd;
padding: 5px;
white-space: pre-wrap;
}
header {
background-color: #C3232D;
color: #ffffff;
padding: 16px 10px;
border-bottom: 3px solid #626262;
}
.header-title {
margin: 0;
font-weight: normal;
font-size: 30px;
line-height: 64px;
}
.header-type {
opacity: 0.75;
display: block;
font-size: 16px;
line-height: 1;
}
.header-help {
font-size: 12px;
line-height: 1;
position: absolute;
top: 30px;
right: 16px;
}
.header-help a {
color: #fff;
}
.error-nav {
float: left;
width: 30%;
}
.error-contents {
padding: 10px 1%;
float: right;
width: 68%;
}
.error,
.error-subheading {
font-size: 18px;
margin-top: 0;
padding: 10px;
border: 1px solid #EDBD26;
}
.error-subheading {
background: #1798A5;
color: #fff;
border: 1px solid #02808C;
}
.error {
background: #ffd54f;
}
.customize {
opacity: 0.6;
}
.stack-trace {
list-style: none;
margin: 0;
padding: 0;
}
.stack-frame {
padding: 10px;
border-bottom: 1px solid #212121;
}
.stack-frame:last-child {
border-bottom: none;
}
.stack-frame a {
display: block;
color: #212121;
text-decoration: none;
}
.stack-frame.active {
background: #e5e5e5;
}
.stack-frame a:hover {
text-decoration: underline;
}
.stack-file,
.stack-function {
display: block;
margin-bottom: 5px;
}
.stack-frame-file,
.stack-file {
font-family: consolas, monospace;
}
.stack-function {
font-weight: bold;
}
.stack-file {
font-size: 0.9em;
word-wrap: break-word;
}
.stack-details {
background: #ececec;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
border: 1px solid #ababab;
padding: 10px;
margin-bottom: 18px;
}
.stack-frame-args {
float: right;
}
.toggle-link {
color: #1798A5;
text-decoration: none;
}
.toggle-link:hover {
text-decoration: underline;
}
.toggle-vendor-frames {
padding: 5px;
display: block;
text-align: center;
}
.code-excerpt {
width: 100%;
margin: 5px 0;
background: #fefefe;
}
.code-highlight {
display: block;
background: #fff59d;
}
.excerpt-line {
padding-left: 2px;
}
.excerpt-number {
background: #f6f6f6;
width: 50px;
text-align: right;
color: #666;
border-right: 1px solid #ddd;
padding: 2px;
}
.excerpt-number:after {
content: attr(data-number);
}
table {
text-align: left;
}
th, td {
padding: 4px;
}
th {
border-bottom: 1px solid #ccc;
}
</style>
</head>
<body>
<header>
<h1 class="header-title">
Impossible to generate condition with empty list of values for field (product_id) <span class="header-type">Cake\Database\Exception</span>
</h1>
<div class="header-help">
<a target="_blank" href="https://book.cakephp.org/3.0/">Documentation</a>
<a target="_blank" href="https://api.cakephp.org/">API</a>
</div>
</header>
<div class="error-contents">
<div id="stack-frame-0" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/Comparison.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-0">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="156"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_value </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="157"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $template </span><span style="color: #007700">= </span><span style="color: #DD0000">'%s %s (%s)'</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="158"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $value </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_value</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="159"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="160"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">list(</span><span style="color: #0000BB">$template</span><span style="color: #007700">, </span><span style="color: #0000BB">$value</span><span style="color: #007700">) = </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_stringExpression</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="161"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="162"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="163"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #0000BB">$template</span><span style="color: #007700">, </span><span style="color: #0000BB">$field</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_operator</span><span style="color: #007700">, </span><span style="color: #0000BB">$value</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="164"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-0" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-1" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/QueryExpression.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-1">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="554"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_conditions </span><span style="color: #007700">as </span><span style="color: #0000BB">$part</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="555"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$part </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Query</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="556"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $part </span><span style="color: #007700">= </span><span style="color: #DD0000">'(' </span><span style="color: #007700">. </span><span style="color: #0000BB">$part</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">) . </span><span style="color: #DD0000">')'</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="557"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} elseif (</span><span style="color: #0000BB">$part </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="558"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $part </span><span style="color: #007700">= </span><span style="color: #0000BB">$part</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="559"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="560"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$part</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="561"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts</span><span style="color: #007700">[] = </span><span style="color: #0000BB">$part</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="562"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-1" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-2" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-2">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="130"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="131"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="132"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="133"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$parts </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="134"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= [</span><span style="color: #0000BB">$parts</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">)];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="135"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="136"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_templates</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">])) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_stringifyExpressions</span><span style="color: #007700">((array)</span><span style="color: #0000BB">$parts</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="138"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-2" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-3" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-3">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="305"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">traverse</span><span style="color: #007700">(callable </span><span style="color: #0000BB">$visitor</span><span style="color: #007700">, array </span><span style="color: #0000BB">$parts </span><span style="color: #007700">= [])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="306"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="307"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= </span><span style="color: #0000BB">$parts </span><span style="color: #007700">?: </span><span style="color: #0000BB">array_keys</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_parts</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="308"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$parts </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="309"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $visitor</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_parts</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">], </span><span style="color: #0000BB">$name</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="310"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-3" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-4" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-4">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $sql </span><span style="color: #007700">= </span><span style="color: #DD0000">''</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $type </span><span style="color: #007700">= </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">type</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">traverse</span><span style="color: #007700">(</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sqlCompiler</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">),</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">->{</span><span style="color: #DD0000">'_' </span><span style="color: #007700">. </span><span style="color: #0000BB">$type </span><span style="color: #007700">. </span><span style="color: #DD0000">'Parts'</span><span style="color: #007700">}</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="101"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="102"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// Propagate bound parameters from sub-queries if the</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="103"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// placeholders can be found in the SQL statement.</span></span></code></td>
</tr>
</table>
<div id="stack-args-4" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-5" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-5">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="414"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $processor </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">newCompiler</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="415"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $translator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">queryTranslator</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">type</span><span style="color: #007700">());</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="416"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$translator</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="417"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="418"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return [</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$processor</span><span style="color: #007700">-></span><span style="color: #0000BB">compile</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">)];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="419"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="420"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="421"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="422"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* {@</span><span style="color: #0000BB">inheritDoc</span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-5" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-6" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-6">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="315"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">string</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="316"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="317"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">Query $query</span><span style="color: #007700">, </span><span style="color: #0000BB">ValueBinder $generator</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="318"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="319"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDriver</span><span style="color: #007700">()-></span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">)[</span><span style="color: #0000BB">1</span><span style="color: #007700">];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="320"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="321"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="322"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="323"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes the provided query after compiling it </span><span style="color: #007700">for </span><span style="color: #0000BB">the specific driver</span></span></code></td>
</tr>
</table>
<div id="stack-args-6" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-7" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-7">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="276"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $generator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="277"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $generator</span><span style="color: #007700">-></span><span style="color: #0000BB">resetCount</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="280"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getConnection</span><span style="color: #007700">()-></span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="281"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="282"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="283"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="284"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Will iterate over every specified part</span><span style="color: #007700">. </span><span style="color: #0000BB">Traversing functions can aggregate</span></span></code></td>
</tr>
</table>
<div id="stack-args-7" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-8" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-8">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1118"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">triggerBeforeFind</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1119"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1120"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_transformQuery</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1121"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1122"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">parent</span><span style="color: #007700">::</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$binder</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1123"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1124"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1125"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1126"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes this query </span><span style="color: #007700">and </span><span style="color: #0000BB">returns a ResultSet object containing the results</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-8" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-9" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver/Mysql.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-9">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="134"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="135"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="136"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $isObject </span><span style="color: #007700">= </span><span style="color: #0000BB">$query </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Query</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="138"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$isObject </span><span style="color: #007700">? </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">() : </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="139"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= new </span><span style="color: #0000BB">MysqlStatement</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="140"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$isObject </span><span style="color: #007700">&& </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">isBufferedResultsEnabled</span><span style="color: #007700">() === </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="141"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $result</span><span style="color: #007700">-></span><span style="color: #0000BB">bufferResults</span><span style="color: #007700">(</span><span style="color: #0000BB">false</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="142"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-9" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-10" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-10">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="271"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="272"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="273"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="274"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDisconnectRetry</span><span style="color: #007700">()-></span><span style="color: #0000BB">run</span><span style="color: #007700">(function () use (</span><span style="color: #0000BB">$sql</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="275"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_driver</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="276"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="277"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_logQueries</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_newLogger</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-10" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-11" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-11">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">do {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$action</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $e</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="70"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="71"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">strategy</span><span style="color: #007700">-></span><span style="color: #0000BB">shouldRetry</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">, </span><span style="color: #0000BB">$retryCount</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="72"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-11" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-12" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-12">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_newLogger</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="280"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="281"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="282"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">});</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="283"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="284"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="285"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="286"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes a query using $params </span><span style="color: #007700">for </span><span style="color: #0000BB">interpolating values </span><span style="color: #007700">and </span><span style="color: #0000BB">$types </span><span style="color: #007700">as </span><span style="color: #0000BB">a hint </span><span style="color: #007700">for </span><span style="color: #0000BB">each</span></span></code></td>
</tr>
</table>
<div id="stack-args-12" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-13" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-13">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="328"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="329"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">Query $query</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="330"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="331"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDisconnectRetry</span><span style="color: #007700">()-></span><span style="color: #0000BB">run</span><span style="color: #007700">(function () use (</span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="332"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="333"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">()-></span><span style="color: #0000BB">attachTo</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="334"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="335"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="336"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-13" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-14" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-14">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">do {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$action</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $e</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="70"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="71"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">strategy</span><span style="color: #007700">-></span><span style="color: #0000BB">shouldRetry</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">, </span><span style="color: #0000BB">$retryCount</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="72"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-14" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-15" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-15">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="333"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">()-></span><span style="color: #0000BB">attachTo</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="334"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="335"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="336"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="337"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">});</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="338"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="339"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="340"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="341"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes a SQL statement </span><span style="color: #007700">and </span><span style="color: #0000BB">returns the Statement object </span><span style="color: #007700">as </span><span style="color: #0000BB">result</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-15" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-16" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-16">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="215"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return \</span><span style="color: #0000BB">Cake</span><span style="color: #007700">\</span><span style="color: #0000BB">Database</span><span style="color: #007700">\</span><span style="color: #0000BB">StatementInterface</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="216"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="217"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">execute</span><span style="color: #007700">()</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="218"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="219"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="220"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_iterator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_decorateStatement</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="221"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_dirty </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="222"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="223"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_iterator</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-16" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-17" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-17">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1138"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return new </span><span style="color: #0000BB">$decorator</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_results</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1139"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1140"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1141"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEagerLoader</span><span style="color: #007700">()-></span><span style="color: #0000BB">loadExternal</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1142"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1143"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return new </span><span style="color: #0000BB">ResultSet</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1144"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1145"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-17" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-18" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-18">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="305"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="306"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">-></span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="307"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="308"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!isset(</span><span style="color: #0000BB">$results</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="309"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_decorateResults</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_execute</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="310"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">-></span><span style="color: #0000BB">store</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$results</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-18" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-19" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-19">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1084"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'You cannot call all() on a non-select query. Use execute() instead.'</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1085"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1086"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1087"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1088"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_all</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1089"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1090"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1091"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1092"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Trigger the beforeFind event on the query</span><span style="color: #DD0000">'s repository object.</span></span></code></td>
</tr>
</table>
<div id="stack-args-19" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-20" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-20">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="322"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="323"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="324"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">toArray</span><span style="color: #007700">()</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="325"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="326"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">all</span><span style="color: #007700">()-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="327"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="328"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="329"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="330"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Register a </span><span style="color: #007700">new </span><span style="color: #0000BB">MapReduce routine to be executed on top of the database results</span></span></code></td>
</tr>
</table>
<div id="stack-args-20" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-21" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/AppController.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-21">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if(!empty(</span><span style="color: #0000BB">$products</span><span style="color: #007700">))</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $proReviews </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">ProductReviews</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'list'</span><span style="color: #007700">,[</span><span style="color: #DD0000">'keyField'</span><span style="color: #007700">=></span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">, </span><span style="color: #DD0000">'valueField'</span><span style="color: #007700">=></span><span style="color: #DD0000">'pro_avg_rating'</span><span style="color: #007700">])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="314"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">-></span><span style="color: #0000BB">select </span><span style="color: #007700">([</span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">,</span><span style="color: #DD0000">'pro_avg_rating'</span><span style="color: #007700">=> </span><span style="color: #DD0000">'avg(rating)'</span><span style="color: #007700">])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="315"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">-></span><span style="color: #0000BB">where</span><span style="color: #007700">([</span><span style="color: #DD0000">'product_id IN ' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$arrUniqueProIds</span><span style="color: #007700">])-></span><span style="color: #0000BB">group</span><span style="color: #007700">(</span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">)-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="316"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="317"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// pr($products);die;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="318"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">for(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">$i </span><span style="color: #007700">< </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$products</span><span style="color: #007700">);</span><span style="color: #0000BB">$i</span><span style="color: #007700">++)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="319"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
</table>
<div id="stack-args-21" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-22" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/ProductsController.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-22">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="2769"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">//$products = $productsQuery->group (['Products.id'])->all()->toArray();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2770"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">//</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2771"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $products </span><span style="color: #007700">= </span><span style="color: #0000BB">$productsQuery</span><span style="color: #007700">-> </span><span style="color: #0000BB">all</span><span style="color: #007700">()-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2772"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> pr</span><span style="color: #007700">(</span><span style="color: #0000BB">$products</span><span style="color: #007700">);die;*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2773"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $arrProductWithDetails </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">setProductCFDetailsNew</span><span style="color: #007700">(</span><span style="color: #0000BB">$products </span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2774"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2775"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $product_details </span><span style="color: #007700">= </span><span style="color: #0000BB">$arrProductWithDetails</span><span style="color: #007700">[</span><span style="color: #0000BB">$product</span><span style="color: #007700">-></span><span style="color: #0000BB">id</span><span style="color: #007700">]; </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2776"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2777"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $strGrapeVariNames </span><span style="color: #007700">= </span><span style="color: #DD0000">''</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-22" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-23" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Controller/Controller.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-23">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="606"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="607"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/* @var callable $callable */</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="608"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $callable </span><span style="color: #007700">= [</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'action'</span><span style="color: #007700">)];</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="609"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="610"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">$callable</span><span style="color: #007700">(...</span><span style="color: #0000BB">array_values</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'pass'</span><span style="color: #007700">)));</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="611"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="612"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">response </span><span style="color: #007700">= </span><span style="color: #0000BB">$result</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="613"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="614"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-23" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-24" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-24">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="116"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="117"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$result</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="118"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="119"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="120"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$controller</span><span style="color: #007700">-></span><span style="color: #0000BB">invokeAction</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="121"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$response </span><span style="color: #007700">!== </span><span style="color: #0000BB">null </span><span style="color: #007700">&& !(</span><span style="color: #0000BB">$response </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="122"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw new </span><span style="color: #0000BB">LogicException</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller actions can only return Cake\Http\Response or null.'</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="123"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="124"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-24" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-25" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-25">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="90"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="91"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $controller </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">factory</span><span style="color: #007700">-></span><span style="color: #0000BB">create</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="93"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'return'</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-25" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-26" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/BaseApplication.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-26">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="231"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return \</span><span style="color: #0000BB">Psr</span><span style="color: #007700">\</span><span style="color: #0000BB">Http</span><span style="color: #007700">\</span><span style="color: #0000BB">Message</span><span style="color: #007700">\</span><span style="color: #0000BB">ResponseInterface</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="232"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="233"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">ServerRequestInterface $request</span><span style="color: #007700">, </span><span style="color: #0000BB">ResponseInterface $response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="234"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="235"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDispatcher</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="236"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="237"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="238"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="239"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Get the ActionDispatcher</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-26" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-27" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-27">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-27" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-28" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-28">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="158"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="159"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="160"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $matching </span><span style="color: #007700">= </span><span style="color: #0000BB">Router</span><span style="color: #007700">::</span><span style="color: #0000BB">getRouteCollection</span><span style="color: #007700">()-></span><span style="color: #0000BB">getMiddleware</span><span style="color: #007700">(</span><span style="color: #0000BB">$middleware</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="161"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$matching</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="162"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="163"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="164"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $matching</span><span style="color: #007700">[] = </span><span style="color: #0000BB">$next</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="165"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $middleware </span><span style="color: #007700">= new </span><span style="color: #0000BB">MiddlewareQueue</span><span style="color: #007700">(</span><span style="color: #0000BB">$matching</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="166"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $runner </span><span style="color: #007700">= new </span><span style="color: #0000BB">Runner</span><span style="color: #007700">();</span></span></code></td>
</tr>
</table>
<div id="stack-args-28" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-29" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-29">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-29" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-30" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-30">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="84"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="85"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="86"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $url </span><span style="color: #007700">= </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getUri</span><span style="color: #007700">()-></span><span style="color: #0000BB">getPath</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="87"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'..'</span><span style="color: #007700">) !== </span><span style="color: #0000BB">false </span><span style="color: #007700">|| </span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'.'</span><span style="color: #007700">) === </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="88"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="89"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="90"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="91"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'/.'</span><span style="color: #007700">) !== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
</table>
<div id="stack-args-30" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-31" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-31">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-31" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-32" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-32">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="93"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Throwable $exception</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">handleException</span><span style="color: #007700">(</span><span style="color: #0000BB">$exception</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $exception</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">handleException</span><span style="color: #007700">(</span><span style="color: #0000BB">$exception</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
</table>
<div id="stack-args-32" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-33" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-33">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-33" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-34" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-34">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="47"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="48"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware </span><span style="color: #007700">= </span><span style="color: #0000BB">$middleware</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="49"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="50"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="51"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="52"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="53"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="54"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="55"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @</span><span style="color: #0000BB">param </span><span style="color: #007700">\</span><span style="color: #0000BB">Psr</span><span style="color: #007700">\</span><span style="color: #0000BB">Http</span><span style="color: #007700">\</span><span style="color: #0000BB">Message</span><span style="color: #007700">\</span><span style="color: #0000BB">ServerRequestInterface $request The server request</span></span></code></td>
</tr>
</table>
<div id="stack-args-34" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-35" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-35">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatchEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Server.buildMiddleware'</span><span style="color: #007700">, [</span><span style="color: #DD0000">'middleware' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$middleware</span><span style="color: #007700">]);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">app</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">runner</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">$middleware</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!(</span><span style="color: #0000BB">$response </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ResponseInterface</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="101"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw new </span><span style="color: #0000BB">RuntimeException</span><span style="color: #007700">(</span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="102"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'Application did not create a response. Got "%s" instead.'</span><span style="color: #007700">,</span></span></code></td>
</tr>
</table>
<div id="stack-args-35" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-36" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/webroot/index.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-36">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="36"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">// Bind your application to the server.</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="37"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB">$server </span><span style="color: #007700">= new </span><span style="color: #0000BB">Server</span><span style="color: #007700">(new </span><span style="color: #0000BB">Application</span><span style="color: #007700">(</span><span style="color: #0000BB">dirname</span><span style="color: #007700">(</span><span style="color: #0000BB">__DIR__</span><span style="color: #007700">) . </span><span style="color: #DD0000">'/config'</span><span style="color: #007700">));</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="38"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="39"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">// Run the request/response through the application and emit the response.</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="40"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">$server</span><span style="color: #007700">-></span><span style="color: #0000BB">emit</span><span style="color: #007700">(</span><span style="color: #0000BB">$server</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="41"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-36" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div class="error-suggestion">
<h3>Could this be caused by using Auto-Tables?</h3>
<p>
Some of the Table objects in your application were created by instantiating "<strong>Cake\ORM\Table</strong>"
instead of any other specific subclass.
</p>
<p>This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:</p>
<ul>
<li>The class for the specified table does not exist.</li>
<li>The Table was created with a typo: <strong><em>$this->getTableLocator()->get('Atricles');</em></strong></li>
<li>The class file has a typo in the name or incorrect namespace: <strong><em>class Atricles extends Table</em></strong></li>
<li>The file containing the class has a typo or incorrect casing: <strong><em>Atricles.php</em></strong></li>
<li>The Table was used using associations but the association has a typo: <strong><em>$this->belongsTo('Atricles')</em></strong></li>
<li>The table class resides in a Plugin but <strong><em>no plugin notation</em></strong> was used in the association definition.</li>
</ul>
<br/>
<p>Please try correcting the issue for the following table aliases:</p>
<ul>
<li><strong>Settings</strong></li>
<li><strong>FaqSetups</strong></li>
<li><strong>SearchSetups</strong></li>
</ul>
<br/>
</div>
<p class="customize">
If you want to customize this error message, create
<em>src/Template/Error/error500.ctp</em>
</p>
</div>
<div class="error-nav">
<a href="#" class="toggle-link toggle-vendor-frames">toggle vendor stack frames</a>
<ul class="stack-trace">
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-0">
<span class="stack-function">⟩ Cake\Database\Expression\Comparison->_stringExpression</span>
<span class="stack-file">
CORE/src/Database/Expression/Comparison.php, line 160 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-1">
<span class="stack-function">⟩ Cake\Database\Expression\Comparison->sql</span>
<span class="stack-file">
CORE/src/Database/Expression/QueryExpression.php, line 558 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-2">
<span class="stack-function">⟩ Cake\Database\Expression\QueryExpression->sql</span>
<span class="stack-file">
CORE/src/Database/QueryCompiler.php, line 134 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-3">
<span class="stack-function">⟩ Cake\Database\QueryCompiler->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 309 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-4">
<span class="stack-function">⟩ Cake\Database\Query->traverse</span>
<span class="stack-file">
CORE/src/Database/QueryCompiler.php, line 99 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-5">
<span class="stack-function">⟩ Cake\Database\QueryCompiler->compile</span>
<span class="stack-file">
CORE/src/Database/Driver.php, line 418 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-6">
<span class="stack-function">⟩ Cake\Database\Driver->compileQuery</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 319 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-7">
<span class="stack-function">⟩ Cake\Database\Connection->compileQuery</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 280 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-8">
<span class="stack-function">⟩ Cake\Database\Query->sql</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1122 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-9">
<span class="stack-function">⟩ Cake\ORM\Query->sql</span>
<span class="stack-file">
CORE/src/Database/Driver/Mysql.php, line 138 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-10">
<span class="stack-function">⟩ Cake\Database\Driver\Mysql->prepare</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 275 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-11">
<span class="stack-function">⟩ Cake\Database\Connection->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Core/Retry/CommandRetry.php, line 68 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-12">
<span class="stack-function">⟩ Cake\Core\Retry\CommandRetry->run</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 282 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-13">
<span class="stack-function">⟩ Cake\Database\Connection->prepare</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 332 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-14">
<span class="stack-function">⟩ Cake\Database\Connection->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Core/Retry/CommandRetry.php, line 68 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-15">
<span class="stack-function">⟩ Cake\Core\Retry\CommandRetry->run</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 337 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-16">
<span class="stack-function">⟩ Cake\Database\Connection->run</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 219 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-17">
<span class="stack-function">⟩ Cake\Database\Query->execute</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1141 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-18">
<span class="stack-function">⟩ Cake\ORM\Query->_execute</span>
<span class="stack-file">
CORE/src/Datasource/QueryTrait.php, line 309 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-19">
<span class="stack-function">⟩ Cake\ORM\Query->_all</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1088 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-20">
<span class="stack-function">⟩ Cake\ORM\Query->all</span>
<span class="stack-file">
CORE/src/Datasource/QueryTrait.php, line 326 </span>
</a>
</li>
<li class="stack-frame app-frame">
<a href="#" data-target="stack-frame-21">
<span class="stack-function">⟩ Cake\ORM\Query->toArray</span>
<span class="stack-file">
APP/Controller/AppController.php, line 315 </span>
</a>
</li>
<li class="stack-frame app-frame">
<a href="#" data-target="stack-frame-22">
<span class="stack-function">⟩ App\Controller\AppController->setProductCFDetailsNew</span>
<span class="stack-file">
APP/Controller/ProductsController.php, line 2773 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-23">
<span class="stack-function">⟩ App\Controller\ProductsController->downloadPDF</span>
<span class="stack-file">
CORE/src/Controller/Controller.php, line 610 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-24">
<span class="stack-function">⟩ Cake\Controller\Controller->invokeAction</span>
<span class="stack-file">
CORE/src/Http/ActionDispatcher.php, line 120 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-25">
<span class="stack-function">⟩ Cake\Http\ActionDispatcher->_invoke</span>
<span class="stack-file">
CORE/src/Http/ActionDispatcher.php, line 94 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-26">
<span class="stack-function">⟩ Cake\Http\ActionDispatcher->dispatch</span>
<span class="stack-file">
CORE/src/Http/BaseApplication.php, line 235 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-27">
<span class="stack-function">⟩ Cake\Http\BaseApplication->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-28">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-29">
<span class="stack-function">⟩ Cake\Routing\Middleware\RoutingMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-30">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Routing/Middleware/AssetMiddleware.php, line 88 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-31">
<span class="stack-function">⟩ Cake\Routing\Middleware\AssetMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-32">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-33">
<span class="stack-function">⟩ Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-34">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 51 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-35">
<span class="stack-function">⟩ Cake\Http\Runner->run</span>
<span class="stack-file">
CORE/src/Http/Server.php, line 98 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-36">
<span class="stack-function">⟩ Cake\Http\Server->run</span>
<span class="stack-file">
ROOT/webroot/index.php, line 40 </span>
</a>
</li>
</ul>
</div>
<script type="text/javascript">
function bindEvent(selector, eventName, listener) {
var els = document.querySelectorAll(selector);
for (var i = 0, len = els.length; i < len; i++) {
els[i].addEventListener(eventName, listener, false);
}
}
function toggleElement(el) {
if (el.style.display === 'none') {
el.style.display = 'block';
} else {
el.style.display = 'none';
}
}
function each(els, cb) {
var i, len;
for (i = 0, len = els.length; i < len; i++) {
cb(els[i], i);
}
}
window.addEventListener('load', function() {
bindEvent('.stack-frame-args', 'click', function(event) {
var target = this.dataset['target'];
var el = document.getElementById(target);
toggleElement(el);
event.preventDefault();
});
var details = document.querySelectorAll('.stack-details');
var frames = document.querySelectorAll('.stack-frame');
bindEvent('.stack-frame a', 'click', function(event) {
each(frames, function(el) {
el.classList.remove('active');
});
this.parentNode.classList.add('active');
each(details, function(el) {
el.style.display = 'none';
});
var target = document.getElementById(this.dataset['target']);
toggleElement(target);
event.preventDefault();
});
bindEvent('.toggle-vendor-frames', 'click', function(event) {
each(frames, function(el) {
if (el.classList.contains('vendor-frame')) {
toggleElement(el);
}
});
event.preventDefault();
});
});
</script>
</body>
</html>
'
}
$maxBufferLength = (int) 8192
$file = '/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 853
$message = 'Unable to emit headers. Headers sent in file=/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php line=853' Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 51
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php , line 152 ]Code Context $response -> getStatusCode (),
( $reasonPhrase ? ' ' . $reasonPhrase : '' )
));
$response = object(Cake\Http\Response) {
'status' => (int) 500,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Error: Impossible to generate condition with empty list of values for field (product_id) </title>
<link href="/favicon.ico" type="image/x-icon" rel="icon"/><link href="/favicon.ico" type="image/x-icon" rel="shortcut icon"/> <style>
body {
font: 14px helvetica, arial, sans-serif;
color: #222;
background-color: #f8f8f8;
padding:0;
margin: 0;
max-height: 100%;
}
.code-dump,
pre {
background: #fefefe;
border: 1px solid #ddd;
padding: 5px;
white-space: pre-wrap;
}
header {
background-color: #C3232D;
color: #ffffff;
padding: 16px 10px;
border-bottom: 3px solid #626262;
}
.header-title {
margin: 0;
font-weight: normal;
font-size: 30px;
line-height: 64px;
}
.header-type {
opacity: 0.75;
display: block;
font-size: 16px;
line-height: 1;
}
.header-help {
font-size: 12px;
line-height: 1;
position: absolute;
top: 30px;
right: 16px;
}
.header-help a {
color: #fff;
}
.error-nav {
float: left;
width: 30%;
}
.error-contents {
padding: 10px 1%;
float: right;
width: 68%;
}
.error,
.error-subheading {
font-size: 18px;
margin-top: 0;
padding: 10px;
border: 1px solid #EDBD26;
}
.error-subheading {
background: #1798A5;
color: #fff;
border: 1px solid #02808C;
}
.error {
background: #ffd54f;
}
.customize {
opacity: 0.6;
}
.stack-trace {
list-style: none;
margin: 0;
padding: 0;
}
.stack-frame {
padding: 10px;
border-bottom: 1px solid #212121;
}
.stack-frame:last-child {
border-bottom: none;
}
.stack-frame a {
display: block;
color: #212121;
text-decoration: none;
}
.stack-frame.active {
background: #e5e5e5;
}
.stack-frame a:hover {
text-decoration: underline;
}
.stack-file,
.stack-function {
display: block;
margin-bottom: 5px;
}
.stack-frame-file,
.stack-file {
font-family: consolas, monospace;
}
.stack-function {
font-weight: bold;
}
.stack-file {
font-size: 0.9em;
word-wrap: break-word;
}
.stack-details {
background: #ececec;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
border: 1px solid #ababab;
padding: 10px;
margin-bottom: 18px;
}
.stack-frame-args {
float: right;
}
.toggle-link {
color: #1798A5;
text-decoration: none;
}
.toggle-link:hover {
text-decoration: underline;
}
.toggle-vendor-frames {
padding: 5px;
display: block;
text-align: center;
}
.code-excerpt {
width: 100%;
margin: 5px 0;
background: #fefefe;
}
.code-highlight {
display: block;
background: #fff59d;
}
.excerpt-line {
padding-left: 2px;
}
.excerpt-number {
background: #f6f6f6;
width: 50px;
text-align: right;
color: #666;
border-right: 1px solid #ddd;
padding: 2px;
}
.excerpt-number:after {
content: attr(data-number);
}
table {
text-align: left;
}
th, td {
padding: 4px;
}
th {
border-bottom: 1px solid #ccc;
}
</style>
</head>
<body>
<header>
<h1 class="header-title">
Impossible to generate condition with empty list of values for field (product_id) <span class="header-type">Cake\Database\Exception</span>
</h1>
<div class="header-help">
<a target="_blank" href="https://book.cakephp.org/3.0/">Documentation</a>
<a target="_blank" href="https://api.cakephp.org/">API</a>
</div>
</header>
<div class="error-contents">
<div id="stack-frame-0" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/Comparison.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-0">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="156"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_value </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="157"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $template </span><span style="color: #007700">= </span><span style="color: #DD0000">'%s %s (%s)'</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="158"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $value </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_value</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="159"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="160"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">list(</span><span style="color: #0000BB">$template</span><span style="color: #007700">, </span><span style="color: #0000BB">$value</span><span style="color: #007700">) = </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_stringExpression</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="161"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="162"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="163"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #0000BB">$template</span><span style="color: #007700">, </span><span style="color: #0000BB">$field</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_operator</span><span style="color: #007700">, </span><span style="color: #0000BB">$value</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="164"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-0" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-1" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/QueryExpression.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-1">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="554"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_conditions </span><span style="color: #007700">as </span><span style="color: #0000BB">$part</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="555"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$part </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Query</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="556"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $part </span><span style="color: #007700">= </span><span style="color: #DD0000">'(' </span><span style="color: #007700">. </span><span style="color: #0000BB">$part</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">) . </span><span style="color: #DD0000">')'</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="557"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} elseif (</span><span style="color: #0000BB">$part </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="558"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $part </span><span style="color: #007700">= </span><span style="color: #0000BB">$part</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="559"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="560"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$part</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="561"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts</span><span style="color: #007700">[] = </span><span style="color: #0000BB">$part</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="562"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-1" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-2" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-2">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="130"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="131"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="132"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="133"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$parts </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="134"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= [</span><span style="color: #0000BB">$parts</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">)];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="135"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="136"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_templates</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">])) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_stringifyExpressions</span><span style="color: #007700">((array)</span><span style="color: #0000BB">$parts</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="138"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-2" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-3" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-3">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="305"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">traverse</span><span style="color: #007700">(callable </span><span style="color: #0000BB">$visitor</span><span style="color: #007700">, array </span><span style="color: #0000BB">$parts </span><span style="color: #007700">= [])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="306"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="307"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= </span><span style="color: #0000BB">$parts </span><span style="color: #007700">?: </span><span style="color: #0000BB">array_keys</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_parts</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="308"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$parts </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="309"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $visitor</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_parts</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">], </span><span style="color: #0000BB">$name</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="310"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-3" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-4" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-4">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $sql </span><span style="color: #007700">= </span><span style="color: #DD0000">''</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $type </span><span style="color: #007700">= </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">type</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">traverse</span><span style="color: #007700">(</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sqlCompiler</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">),</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">->{</span><span style="color: #DD0000">'_' </span><span style="color: #007700">. </span><span style="color: #0000BB">$type </span><span style="color: #007700">. </span><span style="color: #DD0000">'Parts'</span><span style="color: #007700">}</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="101"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="102"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// Propagate bound parameters from sub-queries if the</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="103"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// placeholders can be found in the SQL statement.</span></span></code></td>
</tr>
</table>
<div id="stack-args-4" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-5" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-5">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="414"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $processor </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">newCompiler</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="415"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $translator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">queryTranslator</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">type</span><span style="color: #007700">());</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="416"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$translator</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="417"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="418"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return [</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$processor</span><span style="color: #007700">-></span><span style="color: #0000BB">compile</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">)];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="419"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="420"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="421"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="422"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* {@</span><span style="color: #0000BB">inheritDoc</span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-5" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-6" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-6">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="315"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">string</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="316"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="317"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">Query $query</span><span style="color: #007700">, </span><span style="color: #0000BB">ValueBinder $generator</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="318"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="319"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDriver</span><span style="color: #007700">()-></span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">)[</span><span style="color: #0000BB">1</span><span style="color: #007700">];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="320"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="321"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="322"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="323"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes the provided query after compiling it </span><span style="color: #007700">for </span><span style="color: #0000BB">the specific driver</span></span></code></td>
</tr>
</table>
<div id="stack-args-6" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-7" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-7">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="276"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $generator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="277"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $generator</span><span style="color: #007700">-></span><span style="color: #0000BB">resetCount</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="280"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getConnection</span><span style="color: #007700">()-></span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="281"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="282"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="283"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="284"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Will iterate over every specified part</span><span style="color: #007700">. </span><span style="color: #0000BB">Traversing functions can aggregate</span></span></code></td>
</tr>
</table>
<div id="stack-args-7" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-8" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-8">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1118"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">triggerBeforeFind</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1119"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1120"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_transformQuery</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1121"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1122"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">parent</span><span style="color: #007700">::</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$binder</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1123"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1124"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1125"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1126"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes this query </span><span style="color: #007700">and </span><span style="color: #0000BB">returns a ResultSet object containing the results</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-8" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-9" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver/Mysql.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-9">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="134"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="135"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="136"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $isObject </span><span style="color: #007700">= </span><span style="color: #0000BB">$query </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Query</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="138"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$isObject </span><span style="color: #007700">? </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">() : </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="139"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= new </span><span style="color: #0000BB">MysqlStatement</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="140"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$isObject </span><span style="color: #007700">&& </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">isBufferedResultsEnabled</span><span style="color: #007700">() === </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="141"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $result</span><span style="color: #007700">-></span><span style="color: #0000BB">bufferResults</span><span style="color: #007700">(</span><span style="color: #0000BB">false</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="142"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-9" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-10" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-10">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="271"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="272"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="273"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="274"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDisconnectRetry</span><span style="color: #007700">()-></span><span style="color: #0000BB">run</span><span style="color: #007700">(function () use (</span><span style="color: #0000BB">$sql</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="275"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_driver</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="276"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="277"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_logQueries</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_newLogger</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-10" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-11" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-11">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">do {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$action</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $e</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="70"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="71"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">strategy</span><span style="color: #007700">-></span><span style="color: #0000BB">shouldRetry</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">, </span><span style="color: #0000BB">$retryCount</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="72"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-11" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-12" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-12">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_newLogger</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="280"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="281"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="282"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">});</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="283"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="284"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="285"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="286"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes a query using $params </span><span style="color: #007700">for </span><span style="color: #0000BB">interpolating values </span><span style="color: #007700">and </span><span style="color: #0000BB">$types </span><span style="color: #007700">as </span><span style="color: #0000BB">a hint </span><span style="color: #007700">for </span><span style="color: #0000BB">each</span></span></code></td>
</tr>
</table>
<div id="stack-args-12" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-13" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-13">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="328"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="329"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">Query $query</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="330"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="331"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDisconnectRetry</span><span style="color: #007700">()-></span><span style="color: #0000BB">run</span><span style="color: #007700">(function () use (</span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="332"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="333"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">()-></span><span style="color: #0000BB">attachTo</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="334"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="335"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="336"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-13" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-14" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-14">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">do {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$action</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $e</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="70"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="71"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">strategy</span><span style="color: #007700">-></span><span style="color: #0000BB">shouldRetry</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">, </span><span style="color: #0000BB">$retryCount</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="72"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-14" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-15" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-15">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="333"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">()-></span><span style="color: #0000BB">attachTo</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="334"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="335"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="336"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="337"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">});</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="338"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="339"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="340"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="341"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes a SQL statement </span><span style="color: #007700">and </span><span style="color: #0000BB">returns the Statement object </span><span style="color: #007700">as </span><span style="color: #0000BB">result</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-15" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-16" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-16">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="215"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return \</span><span style="color: #0000BB">Cake</span><span style="color: #007700">\</span><span style="color: #0000BB">Database</span><span style="color: #007700">\</span><span style="color: #0000BB">StatementInterface</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="216"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="217"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">execute</span><span style="color: #007700">()</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="218"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="219"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="220"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_iterator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_decorateStatement</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="221"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_dirty </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="222"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="223"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_iterator</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-16" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-17" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-17">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1138"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return new </span><span style="color: #0000BB">$decorator</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_results</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1139"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1140"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1141"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEagerLoader</span><span style="color: #007700">()-></span><span style="color: #0000BB">loadExternal</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1142"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1143"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return new </span><span style="color: #0000BB">ResultSet</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1144"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1145"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-17" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-18" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-18">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="305"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="306"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">-></span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="307"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="308"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!isset(</span><span style="color: #0000BB">$results</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="309"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_decorateResults</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_execute</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="310"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">-></span><span style="color: #0000BB">store</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$results</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-18" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-19" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-19">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1084"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'You cannot call all() on a non-select query. Use execute() instead.'</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1085"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1086"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1087"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1088"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_all</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1089"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1090"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1091"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1092"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Trigger the beforeFind event on the query</span><span style="color: #DD0000">'s repository object.</span></span></code></td>
</tr>
</table>
<div id="stack-args-19" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-20" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-20">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="322"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="323"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="324"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">toArray</span><span style="color: #007700">()</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="325"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="326"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">all</span><span style="color: #007700">()-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="327"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="328"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="329"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="330"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Register a </span><span style="color: #007700">new </span><span style="color: #0000BB">MapReduce routine to be executed on top of the database results</span></span></code></td>
</tr>
</table>
<div id="stack-args-20" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-21" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/AppController.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-21">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if(!empty(</span><span style="color: #0000BB">$products</span><span style="color: #007700">))</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $proReviews </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">ProductReviews</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'list'</span><span style="color: #007700">,[</span><span style="color: #DD0000">'keyField'</span><span style="color: #007700">=></span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">, </span><span style="color: #DD0000">'valueField'</span><span style="color: #007700">=></span><span style="color: #DD0000">'pro_avg_rating'</span><span style="color: #007700">])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="314"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">-></span><span style="color: #0000BB">select </span><span style="color: #007700">([</span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">,</span><span style="color: #DD0000">'pro_avg_rating'</span><span style="color: #007700">=> </span><span style="color: #DD0000">'avg(rating)'</span><span style="color: #007700">])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="315"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">-></span><span style="color: #0000BB">where</span><span style="color: #007700">([</span><span style="color: #DD0000">'product_id IN ' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$arrUniqueProIds</span><span style="color: #007700">])-></span><span style="color: #0000BB">group</span><span style="color: #007700">(</span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">)-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="316"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="317"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// pr($products);die;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="318"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">for(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">$i </span><span style="color: #007700">< </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$products</span><span style="color: #007700">);</span><span style="color: #0000BB">$i</span><span style="color: #007700">++)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="319"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
</table>
<div id="stack-args-21" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-22" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/ProductsController.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-22">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="2769"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">//$products = $productsQuery->group (['Products.id'])->all()->toArray();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2770"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">//</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2771"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $products </span><span style="color: #007700">= </span><span style="color: #0000BB">$productsQuery</span><span style="color: #007700">-> </span><span style="color: #0000BB">all</span><span style="color: #007700">()-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2772"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> pr</span><span style="color: #007700">(</span><span style="color: #0000BB">$products</span><span style="color: #007700">);die;*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2773"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $arrProductWithDetails </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">setProductCFDetailsNew</span><span style="color: #007700">(</span><span style="color: #0000BB">$products </span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2774"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2775"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $product_details </span><span style="color: #007700">= </span><span style="color: #0000BB">$arrProductWithDetails</span><span style="color: #007700">[</span><span style="color: #0000BB">$product</span><span style="color: #007700">-></span><span style="color: #0000BB">id</span><span style="color: #007700">]; </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2776"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2777"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $strGrapeVariNames </span><span style="color: #007700">= </span><span style="color: #DD0000">''</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-22" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-23" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Controller/Controller.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-23">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="606"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="607"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/* @var callable $callable */</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="608"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $callable </span><span style="color: #007700">= [</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'action'</span><span style="color: #007700">)];</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="609"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="610"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">$callable</span><span style="color: #007700">(...</span><span style="color: #0000BB">array_values</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'pass'</span><span style="color: #007700">)));</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="611"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="612"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">response </span><span style="color: #007700">= </span><span style="color: #0000BB">$result</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="613"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="614"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-23" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-24" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-24">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="116"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="117"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$result</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="118"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="119"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="120"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$controller</span><span style="color: #007700">-></span><span style="color: #0000BB">invokeAction</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="121"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$response </span><span style="color: #007700">!== </span><span style="color: #0000BB">null </span><span style="color: #007700">&& !(</span><span style="color: #0000BB">$response </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="122"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw new </span><span style="color: #0000BB">LogicException</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller actions can only return Cake\Http\Response or null.'</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="123"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="124"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-24" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-25" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-25">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="90"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="91"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $controller </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">factory</span><span style="color: #007700">-></span><span style="color: #0000BB">create</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="93"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'return'</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-25" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-26" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/BaseApplication.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-26">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="231"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return \</span><span style="color: #0000BB">Psr</span><span style="color: #007700">\</span><span style="color: #0000BB">Http</span><span style="color: #007700">\</span><span style="color: #0000BB">Message</span><span style="color: #007700">\</span><span style="color: #0000BB">ResponseInterface</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="232"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="233"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">ServerRequestInterface $request</span><span style="color: #007700">, </span><span style="color: #0000BB">ResponseInterface $response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="234"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="235"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDispatcher</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="236"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="237"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="238"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="239"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Get the ActionDispatcher</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-26" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-27" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-27">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-27" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-28" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-28">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="158"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="159"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="160"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $matching </span><span style="color: #007700">= </span><span style="color: #0000BB">Router</span><span style="color: #007700">::</span><span style="color: #0000BB">getRouteCollection</span><span style="color: #007700">()-></span><span style="color: #0000BB">getMiddleware</span><span style="color: #007700">(</span><span style="color: #0000BB">$middleware</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="161"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$matching</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="162"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="163"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="164"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $matching</span><span style="color: #007700">[] = </span><span style="color: #0000BB">$next</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="165"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $middleware </span><span style="color: #007700">= new </span><span style="color: #0000BB">MiddlewareQueue</span><span style="color: #007700">(</span><span style="color: #0000BB">$matching</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="166"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $runner </span><span style="color: #007700">= new </span><span style="color: #0000BB">Runner</span><span style="color: #007700">();</span></span></code></td>
</tr>
</table>
<div id="stack-args-28" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-29" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-29">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-29" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-30" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-30">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="84"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="85"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="86"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $url </span><span style="color: #007700">= </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getUri</span><span style="color: #007700">()-></span><span style="color: #0000BB">getPath</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="87"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'..'</span><span style="color: #007700">) !== </span><span style="color: #0000BB">false </span><span style="color: #007700">|| </span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'.'</span><span style="color: #007700">) === </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="88"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="89"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="90"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="91"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'/.'</span><span style="color: #007700">) !== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
</table>
<div id="stack-args-30" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-31" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-31">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-31" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-32" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-32">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="93"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Throwable $exception</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">handleException</span><span style="color: #007700">(</span><span style="color: #0000BB">$exception</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $exception</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">handleException</span><span style="color: #007700">(</span><span style="color: #0000BB">$exception</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
</table>
<div id="stack-args-32" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-33" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-33">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-33" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-34" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-34">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="47"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="48"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware </span><span style="color: #007700">= </span><span style="color: #0000BB">$middleware</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="49"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="50"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="51"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="52"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="53"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="54"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="55"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @</span><span style="color: #0000BB">param </span><span style="color: #007700">\</span><span style="color: #0000BB">Psr</span><span style="color: #007700">\</span><span style="color: #0000BB">Http</span><span style="color: #007700">\</span><span style="color: #0000BB">Message</span><span style="color: #007700">\</span><span style="color: #0000BB">ServerRequestInterface $request The server request</span></span></code></td>
</tr>
</table>
<div id="stack-args-34" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-35" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-35">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatchEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Server.buildMiddleware'</span><span style="color: #007700">, [</span><span style="color: #DD0000">'middleware' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$middleware</span><span style="color: #007700">]);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">app</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">runner</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">$middleware</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!(</span><span style="color: #0000BB">$response </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ResponseInterface</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="101"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw new </span><span style="color: #0000BB">RuntimeException</span><span style="color: #007700">(</span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="102"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'Application did not create a response. Got "%s" instead.'</span><span style="color: #007700">,</span></span></code></td>
</tr>
</table>
<div id="stack-args-35" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-36" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/webroot/index.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-36">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="36"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">// Bind your application to the server.</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="37"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB">$server </span><span style="color: #007700">= new </span><span style="color: #0000BB">Server</span><span style="color: #007700">(new </span><span style="color: #0000BB">Application</span><span style="color: #007700">(</span><span style="color: #0000BB">dirname</span><span style="color: #007700">(</span><span style="color: #0000BB">__DIR__</span><span style="color: #007700">) . </span><span style="color: #DD0000">'/config'</span><span style="color: #007700">));</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="38"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="39"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">// Run the request/response through the application and emit the response.</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="40"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">$server</span><span style="color: #007700">-></span><span style="color: #0000BB">emit</span><span style="color: #007700">(</span><span style="color: #0000BB">$server</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="41"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-36" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div class="error-suggestion">
<h3>Could this be caused by using Auto-Tables?</h3>
<p>
Some of the Table objects in your application were created by instantiating "<strong>Cake\ORM\Table</strong>"
instead of any other specific subclass.
</p>
<p>This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:</p>
<ul>
<li>The class for the specified table does not exist.</li>
<li>The Table was created with a typo: <strong><em>$this->getTableLocator()->get('Atricles');</em></strong></li>
<li>The class file has a typo in the name or incorrect namespace: <strong><em>class Atricles extends Table</em></strong></li>
<li>The file containing the class has a typo or incorrect casing: <strong><em>Atricles.php</em></strong></li>
<li>The Table was used using associations but the association has a typo: <strong><em>$this->belongsTo('Atricles')</em></strong></li>
<li>The table class resides in a Plugin but <strong><em>no plugin notation</em></strong> was used in the association definition.</li>
</ul>
<br/>
<p>Please try correcting the issue for the following table aliases:</p>
<ul>
<li><strong>Settings</strong></li>
<li><strong>FaqSetups</strong></li>
<li><strong>SearchSetups</strong></li>
</ul>
<br/>
</div>
<p class="customize">
If you want to customize this error message, create
<em>src/Template/Error/error500.ctp</em>
</p>
</div>
<div class="error-nav">
<a href="#" class="toggle-link toggle-vendor-frames">toggle vendor stack frames</a>
<ul class="stack-trace">
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-0">
<span class="stack-function">⟩ Cake\Database\Expression\Comparison->_stringExpression</span>
<span class="stack-file">
CORE/src/Database/Expression/Comparison.php, line 160 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-1">
<span class="stack-function">⟩ Cake\Database\Expression\Comparison->sql</span>
<span class="stack-file">
CORE/src/Database/Expression/QueryExpression.php, line 558 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-2">
<span class="stack-function">⟩ Cake\Database\Expression\QueryExpression->sql</span>
<span class="stack-file">
CORE/src/Database/QueryCompiler.php, line 134 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-3">
<span class="stack-function">⟩ Cake\Database\QueryCompiler->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 309 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-4">
<span class="stack-function">⟩ Cake\Database\Query->traverse</span>
<span class="stack-file">
CORE/src/Database/QueryCompiler.php, line 99 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-5">
<span class="stack-function">⟩ Cake\Database\QueryCompiler->compile</span>
<span class="stack-file">
CORE/src/Database/Driver.php, line 418 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-6">
<span class="stack-function">⟩ Cake\Database\Driver->compileQuery</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 319 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-7">
<span class="stack-function">⟩ Cake\Database\Connection->compileQuery</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 280 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-8">
<span class="stack-function">⟩ Cake\Database\Query->sql</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1122 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-9">
<span class="stack-function">⟩ Cake\ORM\Query->sql</span>
<span class="stack-file">
CORE/src/Database/Driver/Mysql.php, line 138 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-10">
<span class="stack-function">⟩ Cake\Database\Driver\Mysql->prepare</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 275 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-11">
<span class="stack-function">⟩ Cake\Database\Connection->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Core/Retry/CommandRetry.php, line 68 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-12">
<span class="stack-function">⟩ Cake\Core\Retry\CommandRetry->run</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 282 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-13">
<span class="stack-function">⟩ Cake\Database\Connection->prepare</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 332 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-14">
<span class="stack-function">⟩ Cake\Database\Connection->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Core/Retry/CommandRetry.php, line 68 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-15">
<span class="stack-function">⟩ Cake\Core\Retry\CommandRetry->run</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 337 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-16">
<span class="stack-function">⟩ Cake\Database\Connection->run</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 219 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-17">
<span class="stack-function">⟩ Cake\Database\Query->execute</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1141 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-18">
<span class="stack-function">⟩ Cake\ORM\Query->_execute</span>
<span class="stack-file">
CORE/src/Datasource/QueryTrait.php, line 309 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-19">
<span class="stack-function">⟩ Cake\ORM\Query->_all</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1088 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-20">
<span class="stack-function">⟩ Cake\ORM\Query->all</span>
<span class="stack-file">
CORE/src/Datasource/QueryTrait.php, line 326 </span>
</a>
</li>
<li class="stack-frame app-frame">
<a href="#" data-target="stack-frame-21">
<span class="stack-function">⟩ Cake\ORM\Query->toArray</span>
<span class="stack-file">
APP/Controller/AppController.php, line 315 </span>
</a>
</li>
<li class="stack-frame app-frame">
<a href="#" data-target="stack-frame-22">
<span class="stack-function">⟩ App\Controller\AppController->setProductCFDetailsNew</span>
<span class="stack-file">
APP/Controller/ProductsController.php, line 2773 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-23">
<span class="stack-function">⟩ App\Controller\ProductsController->downloadPDF</span>
<span class="stack-file">
CORE/src/Controller/Controller.php, line 610 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-24">
<span class="stack-function">⟩ Cake\Controller\Controller->invokeAction</span>
<span class="stack-file">
CORE/src/Http/ActionDispatcher.php, line 120 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-25">
<span class="stack-function">⟩ Cake\Http\ActionDispatcher->_invoke</span>
<span class="stack-file">
CORE/src/Http/ActionDispatcher.php, line 94 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-26">
<span class="stack-function">⟩ Cake\Http\ActionDispatcher->dispatch</span>
<span class="stack-file">
CORE/src/Http/BaseApplication.php, line 235 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-27">
<span class="stack-function">⟩ Cake\Http\BaseApplication->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-28">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-29">
<span class="stack-function">⟩ Cake\Routing\Middleware\RoutingMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-30">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Routing/Middleware/AssetMiddleware.php, line 88 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-31">
<span class="stack-function">⟩ Cake\Routing\Middleware\AssetMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-32">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-33">
<span class="stack-function">⟩ Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-34">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 51 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-35">
<span class="stack-function">⟩ Cake\Http\Runner->run</span>
<span class="stack-file">
CORE/src/Http/Server.php, line 98 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-36">
<span class="stack-function">⟩ Cake\Http\Server->run</span>
<span class="stack-file">
ROOT/webroot/index.php, line 40 </span>
</a>
</li>
</ul>
</div>
<script type="text/javascript">
function bindEvent(selector, eventName, listener) {
var els = document.querySelectorAll(selector);
for (var i = 0, len = els.length; i < len; i++) {
els[i].addEventListener(eventName, listener, false);
}
}
function toggleElement(el) {
if (el.style.display === 'none') {
el.style.display = 'block';
} else {
el.style.display = 'none';
}
}
function each(els, cb) {
var i, len;
for (i = 0, len = els.length; i < len; i++) {
cb(els[i], i);
}
}
window.addEventListener('load', function() {
bindEvent('.stack-frame-args', 'click', function(event) {
var target = this.dataset['target'];
var el = document.getElementById(target);
toggleElement(el);
event.preventDefault();
});
var details = document.querySelectorAll('.stack-details');
var frames = document.querySelectorAll('.stack-frame');
bindEvent('.stack-frame a', 'click', function(event) {
each(frames, function(el) {
el.classList.remove('active');
});
this.parentNode.classList.add('active');
each(details, function(el) {
el.style.display = 'none';
});
var target = document.getElementById(this.dataset['target']);
toggleElement(target);
event.preventDefault();
});
bindEvent('.toggle-vendor-frames', 'click', function(event) {
each(frames, function(el) {
if (el.classList.contains('vendor-frame')) {
toggleElement(el);
}
});
event.preventDefault();
});
});
</script>
</body>
</html>
'
}
$reasonPhrase = 'Internal Server Error' header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 152
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 57
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php , line 181 ]Code Context foreach ( $values as $value ) {
header ( sprintf (
'%s: %s' ,
$response = object(Cake\Http\Response) {
'status' => (int) 500,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => '<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Error: Impossible to generate condition with empty list of values for field (product_id) </title>
<link href="/favicon.ico" type="image/x-icon" rel="icon"/><link href="/favicon.ico" type="image/x-icon" rel="shortcut icon"/> <style>
body {
font: 14px helvetica, arial, sans-serif;
color: #222;
background-color: #f8f8f8;
padding:0;
margin: 0;
max-height: 100%;
}
.code-dump,
pre {
background: #fefefe;
border: 1px solid #ddd;
padding: 5px;
white-space: pre-wrap;
}
header {
background-color: #C3232D;
color: #ffffff;
padding: 16px 10px;
border-bottom: 3px solid #626262;
}
.header-title {
margin: 0;
font-weight: normal;
font-size: 30px;
line-height: 64px;
}
.header-type {
opacity: 0.75;
display: block;
font-size: 16px;
line-height: 1;
}
.header-help {
font-size: 12px;
line-height: 1;
position: absolute;
top: 30px;
right: 16px;
}
.header-help a {
color: #fff;
}
.error-nav {
float: left;
width: 30%;
}
.error-contents {
padding: 10px 1%;
float: right;
width: 68%;
}
.error,
.error-subheading {
font-size: 18px;
margin-top: 0;
padding: 10px;
border: 1px solid #EDBD26;
}
.error-subheading {
background: #1798A5;
color: #fff;
border: 1px solid #02808C;
}
.error {
background: #ffd54f;
}
.customize {
opacity: 0.6;
}
.stack-trace {
list-style: none;
margin: 0;
padding: 0;
}
.stack-frame {
padding: 10px;
border-bottom: 1px solid #212121;
}
.stack-frame:last-child {
border-bottom: none;
}
.stack-frame a {
display: block;
color: #212121;
text-decoration: none;
}
.stack-frame.active {
background: #e5e5e5;
}
.stack-frame a:hover {
text-decoration: underline;
}
.stack-file,
.stack-function {
display: block;
margin-bottom: 5px;
}
.stack-frame-file,
.stack-file {
font-family: consolas, monospace;
}
.stack-function {
font-weight: bold;
}
.stack-file {
font-size: 0.9em;
word-wrap: break-word;
}
.stack-details {
background: #ececec;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
border: 1px solid #ababab;
padding: 10px;
margin-bottom: 18px;
}
.stack-frame-args {
float: right;
}
.toggle-link {
color: #1798A5;
text-decoration: none;
}
.toggle-link:hover {
text-decoration: underline;
}
.toggle-vendor-frames {
padding: 5px;
display: block;
text-align: center;
}
.code-excerpt {
width: 100%;
margin: 5px 0;
background: #fefefe;
}
.code-highlight {
display: block;
background: #fff59d;
}
.excerpt-line {
padding-left: 2px;
}
.excerpt-number {
background: #f6f6f6;
width: 50px;
text-align: right;
color: #666;
border-right: 1px solid #ddd;
padding: 2px;
}
.excerpt-number:after {
content: attr(data-number);
}
table {
text-align: left;
}
th, td {
padding: 4px;
}
th {
border-bottom: 1px solid #ccc;
}
</style>
</head>
<body>
<header>
<h1 class="header-title">
Impossible to generate condition with empty list of values for field (product_id) <span class="header-type">Cake\Database\Exception</span>
</h1>
<div class="header-help">
<a target="_blank" href="https://book.cakephp.org/3.0/">Documentation</a>
<a target="_blank" href="https://api.cakephp.org/">API</a>
</div>
</header>
<div class="error-contents">
<div id="stack-frame-0" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/Comparison.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-0">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="156"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_value </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="157"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $template </span><span style="color: #007700">= </span><span style="color: #DD0000">'%s %s (%s)'</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="158"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $value </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_value</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="159"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="160"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">list(</span><span style="color: #0000BB">$template</span><span style="color: #007700">, </span><span style="color: #0000BB">$value</span><span style="color: #007700">) = </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_stringExpression</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="161"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="162"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="163"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #0000BB">$template</span><span style="color: #007700">, </span><span style="color: #0000BB">$field</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_operator</span><span style="color: #007700">, </span><span style="color: #0000BB">$value</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="164"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-0" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-1" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/QueryExpression.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-1">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="554"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_conditions </span><span style="color: #007700">as </span><span style="color: #0000BB">$part</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="555"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$part </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Query</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="556"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $part </span><span style="color: #007700">= </span><span style="color: #DD0000">'(' </span><span style="color: #007700">. </span><span style="color: #0000BB">$part</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">) . </span><span style="color: #DD0000">')'</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="557"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} elseif (</span><span style="color: #0000BB">$part </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="558"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $part </span><span style="color: #007700">= </span><span style="color: #0000BB">$part</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="559"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="560"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$part</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="561"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts</span><span style="color: #007700">[] = </span><span style="color: #0000BB">$part</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="562"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-1" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-2" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-2">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="130"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="131"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="132"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="133"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$parts </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ExpressionInterface</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="134"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= [</span><span style="color: #0000BB">$parts</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$generator</span><span style="color: #007700">)];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="135"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="136"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_templates</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">])) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_stringifyExpressions</span><span style="color: #007700">((array)</span><span style="color: #0000BB">$parts</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="138"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-2" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-3" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-3">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="305"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">traverse</span><span style="color: #007700">(callable </span><span style="color: #0000BB">$visitor</span><span style="color: #007700">, array </span><span style="color: #0000BB">$parts </span><span style="color: #007700">= [])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="306"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="307"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $parts </span><span style="color: #007700">= </span><span style="color: #0000BB">$parts </span><span style="color: #007700">?: </span><span style="color: #0000BB">array_keys</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_parts</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="308"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$parts </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="309"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $visitor</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_parts</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">], </span><span style="color: #0000BB">$name</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="310"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-3" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-4" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-4">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $sql </span><span style="color: #007700">= </span><span style="color: #DD0000">''</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $type </span><span style="color: #007700">= </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">type</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">traverse</span><span style="color: #007700">(</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sqlCompiler</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">),</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">->{</span><span style="color: #DD0000">'_' </span><span style="color: #007700">. </span><span style="color: #0000BB">$type </span><span style="color: #007700">. </span><span style="color: #DD0000">'Parts'</span><span style="color: #007700">}</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="101"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="102"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// Propagate bound parameters from sub-queries if the</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="103"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// placeholders can be found in the SQL statement.</span></span></code></td>
</tr>
</table>
<div id="stack-args-4" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-5" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-5">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="414"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $processor </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">newCompiler</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="415"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $translator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">queryTranslator</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">type</span><span style="color: #007700">());</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="416"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$translator</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="417"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="418"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return [</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$processor</span><span style="color: #007700">-></span><span style="color: #0000BB">compile</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">)];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="419"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="420"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="421"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="422"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* {@</span><span style="color: #0000BB">inheritDoc</span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-5" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-6" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-6">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="315"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">string</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="316"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="317"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">Query $query</span><span style="color: #007700">, </span><span style="color: #0000BB">ValueBinder $generator</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="318"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="319"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDriver</span><span style="color: #007700">()-></span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">)[</span><span style="color: #0000BB">1</span><span style="color: #007700">];</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="320"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="321"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="322"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="323"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes the provided query after compiling it </span><span style="color: #007700">for </span><span style="color: #0000BB">the specific driver</span></span></code></td>
</tr>
</table>
<div id="stack-args-6" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-7" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-7">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="276"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $generator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="277"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $generator</span><span style="color: #007700">-></span><span style="color: #0000BB">resetCount</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="280"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getConnection</span><span style="color: #007700">()-></span><span style="color: #0000BB">compileQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$generator</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="281"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="282"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="283"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="284"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Will iterate over every specified part</span><span style="color: #007700">. </span><span style="color: #0000BB">Traversing functions can aggregate</span></span></code></td>
</tr>
</table>
<div id="stack-args-7" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-8" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-8">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1118"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">triggerBeforeFind</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1119"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1120"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_transformQuery</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1121"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1122"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">parent</span><span style="color: #007700">::</span><span style="color: #0000BB">sql</span><span style="color: #007700">(</span><span style="color: #0000BB">$binder</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1123"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1124"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1125"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1126"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes this query </span><span style="color: #007700">and </span><span style="color: #0000BB">returns a ResultSet object containing the results</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-8" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-9" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver/Mysql.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-9">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="134"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="135"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="136"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $isObject </span><span style="color: #007700">= </span><span style="color: #0000BB">$query </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Query</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="138"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$isObject </span><span style="color: #007700">? </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">sql</span><span style="color: #007700">() : </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="139"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= new </span><span style="color: #0000BB">MysqlStatement</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="140"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$isObject </span><span style="color: #007700">&& </span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">isBufferedResultsEnabled</span><span style="color: #007700">() === </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="141"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $result</span><span style="color: #007700">-></span><span style="color: #0000BB">bufferResults</span><span style="color: #007700">(</span><span style="color: #0000BB">false</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="142"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-9" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-10" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-10">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="271"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="272"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="273"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="274"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDisconnectRetry</span><span style="color: #007700">()-></span><span style="color: #0000BB">run</span><span style="color: #007700">(function () use (</span><span style="color: #0000BB">$sql</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="275"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_driver</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="276"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="277"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_logQueries</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_newLogger</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-10" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-11" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-11">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">do {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$action</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $e</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="70"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="71"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">strategy</span><span style="color: #007700">-></span><span style="color: #0000BB">shouldRetry</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">, </span><span style="color: #0000BB">$retryCount</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="72"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-11" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-12" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-12">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="278"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_newLogger</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="279"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="280"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="281"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="282"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">});</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="283"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="284"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="285"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="286"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes a query using $params </span><span style="color: #007700">for </span><span style="color: #0000BB">interpolating values </span><span style="color: #007700">and </span><span style="color: #0000BB">$types </span><span style="color: #007700">as </span><span style="color: #0000BB">a hint </span><span style="color: #007700">for </span><span style="color: #0000BB">each</span></span></code></td>
</tr>
</table>
<div id="stack-args-12" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-13" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-13">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="328"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="329"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">Query $query</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="330"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="331"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDisconnectRetry</span><span style="color: #007700">()-></span><span style="color: #0000BB">run</span><span style="color: #007700">(function () use (</span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="332"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="333"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">()-></span><span style="color: #0000BB">attachTo</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="334"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="335"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="336"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-13" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-14" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-14">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">do {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$action</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $e</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="70"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $lastException </span><span style="color: #007700">= </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="71"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">strategy</span><span style="color: #007700">-></span><span style="color: #0000BB">shouldRetry</span><span style="color: #007700">(</span><span style="color: #0000BB">$e</span><span style="color: #007700">, </span><span style="color: #0000BB">$retryCount</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="72"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw </span><span style="color: #0000BB">$e</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-14" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-15" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-15">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="333"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">getValueBinder</span><span style="color: #007700">()-></span><span style="color: #0000BB">attachTo</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="334"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $statement</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="335"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="336"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$statement</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="337"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">});</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="338"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="339"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="340"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="341"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Executes a SQL statement </span><span style="color: #007700">and </span><span style="color: #0000BB">returns the Statement object </span><span style="color: #007700">as </span><span style="color: #0000BB">result</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-15" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-16" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-16">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="215"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return \</span><span style="color: #0000BB">Cake</span><span style="color: #007700">\</span><span style="color: #0000BB">Database</span><span style="color: #007700">\</span><span style="color: #0000BB">StatementInterface</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="216"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="217"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">execute</span><span style="color: #007700">()</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="218"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="219"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="220"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_iterator </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_decorateStatement</span><span style="color: #007700">(</span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="221"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_dirty </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="222"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="223"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_iterator</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-16" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-17" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-17">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1137"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1138"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return new </span><span style="color: #0000BB">$decorator</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_results</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1139"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1140"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1141"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $statement </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEagerLoader</span><span style="color: #007700">()-></span><span style="color: #0000BB">loadExternal</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1142"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1143"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return new </span><span style="color: #0000BB">ResultSet</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$statement</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1144"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1145"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-17" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-18" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-18">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="305"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="306"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">-></span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="307"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="308"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!isset(</span><span style="color: #0000BB">$results</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="309"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_decorateResults</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_execute</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="310"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_cache</span><span style="color: #007700">-></span><span style="color: #0000BB">store</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$results</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
</table>
<div id="stack-args-18" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-19" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-19">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="1084"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'You cannot call all() on a non-select query. Use execute() instead.'</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1085"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1086"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1087"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1088"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_all</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1089"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1090"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1091"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="1092"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Trigger the beforeFind event on the query</span><span style="color: #DD0000">'s repository object.</span></span></code></td>
</tr>
</table>
<div id="stack-args-19" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-20" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-20">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="322"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="323"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="324"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">toArray</span><span style="color: #007700">()</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="325"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="326"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">all</span><span style="color: #007700">()-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="327"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="328"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="329"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="330"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Register a </span><span style="color: #007700">new </span><span style="color: #0000BB">MapReduce routine to be executed on top of the database results</span></span></code></td>
</tr>
</table>
<div id="stack-args-20" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-21" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/AppController.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-21">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="311"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if(!empty(</span><span style="color: #0000BB">$products</span><span style="color: #007700">))</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="312"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="313"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $proReviews </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">ProductReviews</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'list'</span><span style="color: #007700">,[</span><span style="color: #DD0000">'keyField'</span><span style="color: #007700">=></span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">, </span><span style="color: #DD0000">'valueField'</span><span style="color: #007700">=></span><span style="color: #DD0000">'pro_avg_rating'</span><span style="color: #007700">])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="314"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">-></span><span style="color: #0000BB">select </span><span style="color: #007700">([</span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">,</span><span style="color: #DD0000">'pro_avg_rating'</span><span style="color: #007700">=> </span><span style="color: #DD0000">'avg(rating)'</span><span style="color: #007700">])</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="315"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">-></span><span style="color: #0000BB">where</span><span style="color: #007700">([</span><span style="color: #DD0000">'product_id IN ' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$arrUniqueProIds</span><span style="color: #007700">])-></span><span style="color: #0000BB">group</span><span style="color: #007700">(</span><span style="color: #DD0000">'product_id'</span><span style="color: #007700">)-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="316"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="317"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// pr($products);die;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="318"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">for(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">$i </span><span style="color: #007700">< </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$products</span><span style="color: #007700">);</span><span style="color: #0000BB">$i</span><span style="color: #007700">++)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="319"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
</table>
<div id="stack-args-21" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-22" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/ProductsController.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-22">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="2769"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">//$products = $productsQuery->group (['Products.id'])->all()->toArray();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2770"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">//</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2771"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $products </span><span style="color: #007700">= </span><span style="color: #0000BB">$productsQuery</span><span style="color: #007700">-> </span><span style="color: #0000BB">all</span><span style="color: #007700">()-></span><span style="color: #0000BB">toArray</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2772"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> pr</span><span style="color: #007700">(</span><span style="color: #0000BB">$products</span><span style="color: #007700">);die;*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2773"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $arrProductWithDetails </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">setProductCFDetailsNew</span><span style="color: #007700">(</span><span style="color: #0000BB">$products </span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2774"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2775"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $product_details </span><span style="color: #007700">= </span><span style="color: #0000BB">$arrProductWithDetails</span><span style="color: #007700">[</span><span style="color: #0000BB">$product</span><span style="color: #007700">-></span><span style="color: #0000BB">id</span><span style="color: #007700">]; </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2776"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="2777"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $strGrapeVariNames </span><span style="color: #007700">= </span><span style="color: #DD0000">''</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-22" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-23" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Controller/Controller.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-23">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="606"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="607"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/* @var callable $callable */</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="608"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $callable </span><span style="color: #007700">= [</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'action'</span><span style="color: #007700">)];</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="609"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="610"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">$callable</span><span style="color: #007700">(...</span><span style="color: #0000BB">array_values</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'pass'</span><span style="color: #007700">)));</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="611"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="612"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">response </span><span style="color: #007700">= </span><span style="color: #0000BB">$result</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="613"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="614"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-23" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-24" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-24">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="116"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="117"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$result</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="118"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="119"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="120"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$controller</span><span style="color: #007700">-></span><span style="color: #0000BB">invokeAction</span><span style="color: #007700">();</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="121"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$response </span><span style="color: #007700">!== </span><span style="color: #0000BB">null </span><span style="color: #007700">&& !(</span><span style="color: #0000BB">$response </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">Response</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="122"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw new </span><span style="color: #0000BB">LogicException</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller actions can only return Cake\Http\Response or null.'</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="123"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="124"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-24" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-25" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-25">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="90"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="91"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $controller </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">factory</span><span style="color: #007700">-></span><span style="color: #0000BB">create</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="93"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">'return'</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-25" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-26" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/BaseApplication.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-26">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="231"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return \</span><span style="color: #0000BB">Psr</span><span style="color: #007700">\</span><span style="color: #0000BB">Http</span><span style="color: #007700">\</span><span style="color: #0000BB">Message</span><span style="color: #007700">\</span><span style="color: #0000BB">ResponseInterface</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="232"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="233"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">ServerRequestInterface $request</span><span style="color: #007700">, </span><span style="color: #0000BB">ResponseInterface $response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="234"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="235"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDispatcher</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="236"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="237"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="238"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="239"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* </span><span style="color: #0000BB">Get the ActionDispatcher</span><span style="color: #007700">.</span></span></code></td>
</tr>
</table>
<div id="stack-args-26" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-27" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-27">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-27" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-28" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-28">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="158"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="159"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="160"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $matching </span><span style="color: #007700">= </span><span style="color: #0000BB">Router</span><span style="color: #007700">::</span><span style="color: #0000BB">getRouteCollection</span><span style="color: #007700">()-></span><span style="color: #0000BB">getMiddleware</span><span style="color: #007700">(</span><span style="color: #0000BB">$middleware</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="161"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$matching</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="162"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="163"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="164"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $matching</span><span style="color: #007700">[] = </span><span style="color: #0000BB">$next</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="165"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $middleware </span><span style="color: #007700">= new </span><span style="color: #0000BB">MiddlewareQueue</span><span style="color: #007700">(</span><span style="color: #0000BB">$matching</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="166"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $runner </span><span style="color: #007700">= new </span><span style="color: #0000BB">Runner</span><span style="color: #007700">();</span></span></code></td>
</tr>
</table>
<div id="stack-args-28" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-29" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-29">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-29" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-30" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-30">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="84"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="85"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="86"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $url </span><span style="color: #007700">= </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">getUri</span><span style="color: #007700">()-></span><span style="color: #0000BB">getPath</span><span style="color: #007700">();</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="87"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'..'</span><span style="color: #007700">) !== </span><span style="color: #0000BB">false </span><span style="color: #007700">|| </span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'.'</span><span style="color: #007700">) === </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="88"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="89"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="90"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="91"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #DD0000">'/.'</span><span style="color: #007700">) !== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
</table>
<div id="stack-args-30" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-31" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-31">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-31" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-32" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-32">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="92"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="93"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$next</span><span style="color: #007700">)</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Throwable $exception</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">handleException</span><span style="color: #007700">(</span><span style="color: #0000BB">$exception</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} catch (</span><span style="color: #0000BB">Exception $exception</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">handleException</span><span style="color: #007700">(</span><span style="color: #0000BB">$exception</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></td>
</tr>
</table>
<div id="stack-args-32" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-33" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-33">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="61"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $next </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="62"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$next</span><span style="color: #007700">) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="63"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index</span><span style="color: #007700">++;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="64"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="65"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$next</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="66"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="67"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="68"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">// End of the queue</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="69"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$response</span><span style="color: #007700">;</span></span></code></td>
</tr>
</table>
<div id="stack-args-33" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-34" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-34">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="47"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">{</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="48"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">middleware </span><span style="color: #007700">= </span><span style="color: #0000BB">$middleware</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="49"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">index </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">;</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="50"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="51"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">__invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="52"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="53"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="54"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">/**</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="55"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @</span><span style="color: #0000BB">param </span><span style="color: #007700">\</span><span style="color: #0000BB">Psr</span><span style="color: #007700">\</span><span style="color: #0000BB">Http</span><span style="color: #007700">\</span><span style="color: #0000BB">Message</span><span style="color: #007700">\</span><span style="color: #0000BB">ServerRequestInterface $request The server request</span></span></code></td>
</tr>
</table>
<div id="stack-args-34" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-35" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-35">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="94"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="95"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatchEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Server.buildMiddleware'</span><span style="color: #007700">, [</span><span style="color: #DD0000">'middleware' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$middleware</span><span style="color: #007700">]);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="96"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> $middleware</span><span style="color: #007700">-></span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">app</span><span style="color: #007700">);</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="97"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="98"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">runner</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">(</span><span style="color: #0000BB">$middleware</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="99"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="100"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!(</span><span style="color: #0000BB">$response </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">ResponseInterface</span><span style="color: #007700">)) {</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="101"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">throw new </span><span style="color: #0000BB">RuntimeException</span><span style="color: #007700">(</span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="102"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'Application did not create a response. Got "%s" instead.'</span><span style="color: #007700">,</span></span></code></td>
</tr>
</table>
<div id="stack-args-35" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div id="stack-frame-36" style="display:none;" class="stack-details">
<span class="stack-frame-file">/var/www/vhosts/eurowines.co.uk/httpdocs/webroot/index.php</span>
<a href="#" class="toggle-link stack-frame-args" data-target="stack-args-36">toggle arguments</a>
<table class="code-excerpt" cellspacing="0" cellpadding="0">
<tr>
<td class="excerpt-number" data-number="36"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">// Bind your application to the server.</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="37"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB">$server </span><span style="color: #007700">= new </span><span style="color: #0000BB">Server</span><span style="color: #007700">(new </span><span style="color: #0000BB">Application</span><span style="color: #007700">(</span><span style="color: #0000BB">dirname</span><span style="color: #007700">(</span><span style="color: #0000BB">__DIR__</span><span style="color: #007700">) . </span><span style="color: #DD0000">'/config'</span><span style="color: #007700">));</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="38"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="39"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #FF8000">// Run the request/response through the application and emit the response.</span></span></code></td>
</tr>
<tr>
<td class="excerpt-number" data-number="40"></td>
<td class="excerpt-line"><span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">$server</span><span style="color: #007700">-></span><span style="color: #0000BB">emit</span><span style="color: #007700">(</span><span style="color: #0000BB">$server</span><span style="color: #007700">-></span><span style="color: #0000BB">run</span><span style="color: #007700">());</span></span></code></span></td>
</tr>
<tr>
<td class="excerpt-number" data-number="41"></td>
<td class="excerpt-line"><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></td>
</tr>
</table>
<div id="stack-args-36" style="display: none;">
<pre>No arguments</pre>
</div>
</div>
<div class="error-suggestion">
<h3>Could this be caused by using Auto-Tables?</h3>
<p>
Some of the Table objects in your application were created by instantiating "<strong>Cake\ORM\Table</strong>"
instead of any other specific subclass.
</p>
<p>This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:</p>
<ul>
<li>The class for the specified table does not exist.</li>
<li>The Table was created with a typo: <strong><em>$this->getTableLocator()->get('Atricles');</em></strong></li>
<li>The class file has a typo in the name or incorrect namespace: <strong><em>class Atricles extends Table</em></strong></li>
<li>The file containing the class has a typo or incorrect casing: <strong><em>Atricles.php</em></strong></li>
<li>The Table was used using associations but the association has a typo: <strong><em>$this->belongsTo('Atricles')</em></strong></li>
<li>The table class resides in a Plugin but <strong><em>no plugin notation</em></strong> was used in the association definition.</li>
</ul>
<br/>
<p>Please try correcting the issue for the following table aliases:</p>
<ul>
<li><strong>Settings</strong></li>
<li><strong>FaqSetups</strong></li>
<li><strong>SearchSetups</strong></li>
</ul>
<br/>
</div>
<p class="customize">
If you want to customize this error message, create
<em>src/Template/Error/error500.ctp</em>
</p>
</div>
<div class="error-nav">
<a href="#" class="toggle-link toggle-vendor-frames">toggle vendor stack frames</a>
<ul class="stack-trace">
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-0">
<span class="stack-function">⟩ Cake\Database\Expression\Comparison->_stringExpression</span>
<span class="stack-file">
CORE/src/Database/Expression/Comparison.php, line 160 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-1">
<span class="stack-function">⟩ Cake\Database\Expression\Comparison->sql</span>
<span class="stack-file">
CORE/src/Database/Expression/QueryExpression.php, line 558 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-2">
<span class="stack-function">⟩ Cake\Database\Expression\QueryExpression->sql</span>
<span class="stack-file">
CORE/src/Database/QueryCompiler.php, line 134 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-3">
<span class="stack-function">⟩ Cake\Database\QueryCompiler->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 309 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-4">
<span class="stack-function">⟩ Cake\Database\Query->traverse</span>
<span class="stack-file">
CORE/src/Database/QueryCompiler.php, line 99 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-5">
<span class="stack-function">⟩ Cake\Database\QueryCompiler->compile</span>
<span class="stack-file">
CORE/src/Database/Driver.php, line 418 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-6">
<span class="stack-function">⟩ Cake\Database\Driver->compileQuery</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 319 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-7">
<span class="stack-function">⟩ Cake\Database\Connection->compileQuery</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 280 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-8">
<span class="stack-function">⟩ Cake\Database\Query->sql</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1122 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-9">
<span class="stack-function">⟩ Cake\ORM\Query->sql</span>
<span class="stack-file">
CORE/src/Database/Driver/Mysql.php, line 138 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-10">
<span class="stack-function">⟩ Cake\Database\Driver\Mysql->prepare</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 275 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-11">
<span class="stack-function">⟩ Cake\Database\Connection->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Core/Retry/CommandRetry.php, line 68 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-12">
<span class="stack-function">⟩ Cake\Core\Retry\CommandRetry->run</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 282 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-13">
<span class="stack-function">⟩ Cake\Database\Connection->prepare</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 332 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-14">
<span class="stack-function">⟩ Cake\Database\Connection->Cake\Database\{closure}</span>
<span class="stack-file">
CORE/src/Core/Retry/CommandRetry.php, line 68 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-15">
<span class="stack-function">⟩ Cake\Core\Retry\CommandRetry->run</span>
<span class="stack-file">
CORE/src/Database/Connection.php, line 337 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-16">
<span class="stack-function">⟩ Cake\Database\Connection->run</span>
<span class="stack-file">
CORE/src/Database/Query.php, line 219 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-17">
<span class="stack-function">⟩ Cake\Database\Query->execute</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1141 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-18">
<span class="stack-function">⟩ Cake\ORM\Query->_execute</span>
<span class="stack-file">
CORE/src/Datasource/QueryTrait.php, line 309 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-19">
<span class="stack-function">⟩ Cake\ORM\Query->_all</span>
<span class="stack-file">
CORE/src/ORM/Query.php, line 1088 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-20">
<span class="stack-function">⟩ Cake\ORM\Query->all</span>
<span class="stack-file">
CORE/src/Datasource/QueryTrait.php, line 326 </span>
</a>
</li>
<li class="stack-frame app-frame">
<a href="#" data-target="stack-frame-21">
<span class="stack-function">⟩ Cake\ORM\Query->toArray</span>
<span class="stack-file">
APP/Controller/AppController.php, line 315 </span>
</a>
</li>
<li class="stack-frame app-frame">
<a href="#" data-target="stack-frame-22">
<span class="stack-function">⟩ App\Controller\AppController->setProductCFDetailsNew</span>
<span class="stack-file">
APP/Controller/ProductsController.php, line 2773 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-23">
<span class="stack-function">⟩ App\Controller\ProductsController->downloadPDF</span>
<span class="stack-file">
CORE/src/Controller/Controller.php, line 610 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-24">
<span class="stack-function">⟩ Cake\Controller\Controller->invokeAction</span>
<span class="stack-file">
CORE/src/Http/ActionDispatcher.php, line 120 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-25">
<span class="stack-function">⟩ Cake\Http\ActionDispatcher->_invoke</span>
<span class="stack-file">
CORE/src/Http/ActionDispatcher.php, line 94 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-26">
<span class="stack-function">⟩ Cake\Http\ActionDispatcher->dispatch</span>
<span class="stack-file">
CORE/src/Http/BaseApplication.php, line 235 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-27">
<span class="stack-function">⟩ Cake\Http\BaseApplication->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-28">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-29">
<span class="stack-function">⟩ Cake\Routing\Middleware\RoutingMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-30">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Routing/Middleware/AssetMiddleware.php, line 88 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-31">
<span class="stack-function">⟩ Cake\Routing\Middleware\AssetMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-32">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-33">
<span class="stack-function">⟩ Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 65 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-34">
<span class="stack-function">⟩ Cake\Http\Runner->__invoke</span>
<span class="stack-file">
CORE/src/Http/Runner.php, line 51 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-35">
<span class="stack-function">⟩ Cake\Http\Runner->run</span>
<span class="stack-file">
CORE/src/Http/Server.php, line 98 </span>
</a>
</li>
<li class="stack-frame vendor-frame">
<a href="#" data-target="stack-frame-36">
<span class="stack-function">⟩ Cake\Http\Server->run</span>
<span class="stack-file">
ROOT/webroot/index.php, line 40 </span>
</a>
</li>
</ul>
</div>
<script type="text/javascript">
function bindEvent(selector, eventName, listener) {
var els = document.querySelectorAll(selector);
for (var i = 0, len = els.length; i < len; i++) {
els[i].addEventListener(eventName, listener, false);
}
}
function toggleElement(el) {
if (el.style.display === 'none') {
el.style.display = 'block';
} else {
el.style.display = 'none';
}
}
function each(els, cb) {
var i, len;
for (i = 0, len = els.length; i < len; i++) {
cb(els[i], i);
}
}
window.addEventListener('load', function() {
bindEvent('.stack-frame-args', 'click', function(event) {
var target = this.dataset['target'];
var el = document.getElementById(target);
toggleElement(el);
event.preventDefault();
});
var details = document.querySelectorAll('.stack-details');
var frames = document.querySelectorAll('.stack-frame');
bindEvent('.stack-frame a', 'click', function(event) {
each(frames, function(el) {
el.classList.remove('active');
});
this.parentNode.classList.add('active');
each(details, function(el) {
el.style.display = 'none';
});
var target = document.getElementById(this.dataset['target']);
toggleElement(target);
event.preventDefault();
});
bindEvent('.toggle-vendor-frames', 'click', function(event) {
each(frames, function(el) {
if (el.classList.contains('vendor-frame')) {
toggleElement(el);
}
});
event.preventDefault();
});
});
</script>
</body>
</html>
'
}
$cookies = []
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8' header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Error: Impossible to generate condition with empty list of values for field (product_id)
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/Comparison.php
toggle arguments
if ( $this -> _value instanceof ExpressionInterface ) {
$template = '%s %s (%s)' ;
$value = $this -> _value -> sql ( $generator );
} else {
list( $template , $value ) = $this -> _stringExpression ( $generator );
}
return sprintf ( $template , $field , $this -> _operator , $value );
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Expression/QueryExpression.php
toggle arguments
foreach ( $this -> _conditions as $part ) {
if ( $part instanceof Query ) {
$part = '(' . $part -> sql ( $generator ) . ')' ;
} elseif ( $part instanceof ExpressionInterface ) {
$part = $part -> sql ( $generator );
}
if ( strlen ( $part )) {
$parts [] = $part ;
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php
toggle arguments
) {
return;
}
if ( $parts instanceof ExpressionInterface ) {
$parts = [ $parts -> sql ( $generator )];
}
if (isset( $this -> _templates [ $name ])) {
$parts = $this -> _stringifyExpressions ((array) $parts , $generator );
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php
toggle arguments
public function traverse (callable $visitor , array $parts = [])
{
$parts = $parts ?: array_keys ( $this -> _parts );
foreach ( $parts as $name ) {
$visitor ( $this -> _parts [ $name ], $name );
}
return $this ;
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/QueryCompiler.php
toggle arguments
$sql = '' ;
$type = $query -> type ();
$query -> traverse (
$this -> _sqlCompiler ( $sql , $query , $generator ),
$this ->{ '_' . $type . 'Parts' }
);
// Propagate bound parameters from sub-queries if the
// placeholders can be found in the SQL statement.
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver.php
toggle arguments
$processor = $this -> newCompiler ();
$translator = $this -> queryTranslator ( $query -> type ());
$query = $translator ( $query );
return [ $query , $processor -> compile ( $query , $generator )];
}
/**
* {@ inheritDoc }
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
* @return string
*/
public function compileQuery ( Query $query , ValueBinder $generator )
{
return $this -> getDriver ()-> compileQuery ( $query , $generator )[ 1 ];
}
/**
* Executes the provided query after compiling it for the specific driver
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php
toggle arguments
$generator = $this -> getValueBinder ();
$generator -> resetCount ();
}
return $this -> getConnection ()-> compileQuery ( $this , $generator );
}
/**
* Will iterate over every specified part . Traversing functions can aggregate
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php
toggle arguments
$this -> triggerBeforeFind ();
$this -> _transformQuery ();
return parent :: sql ( $binder );
}
/**
* Executes this query and returns a ResultSet object containing the results .
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Driver/Mysql.php
toggle arguments
public function prepare ( $query )
{
$this -> connect ();
$isObject = $query instanceof Query ;
$statement = $this -> _connection -> prepare ( $isObject ? $query -> sql () : $query );
$result = new MysqlStatement ( $statement , $this );
if ( $isObject && $query -> isBufferedResultsEnabled () === false ) {
$result -> bufferResults ( false );
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
*/
public function prepare ( $sql )
{
return $this -> getDisconnectRetry ()-> run (function () use ( $sql ) {
$statement = $this -> _driver -> prepare ( $sql );
if ( $this -> _logQueries ) {
$statement = $this -> _newLogger ( $statement );
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php
toggle arguments
$lastException = null ;
do {
try {
return $action ();
} catch ( Exception $e ) {
$lastException = $e ;
if (! $this -> strategy -> shouldRetry ( $e , $retryCount )) {
throw $e ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
$statement = $this -> _newLogger ( $statement );
}
return $statement ;
});
}
/**
* Executes a query using $params for interpolating values and $types as a hint for each
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
*/
public function run ( Query $query )
{
return $this -> getDisconnectRetry ()-> run (function () use ( $query ) {
$statement = $this -> prepare ( $query );
$query -> getValueBinder ()-> attachTo ( $statement );
$statement -> execute ();
return $statement ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php
toggle arguments
$lastException = null ;
do {
try {
return $action ();
} catch ( Exception $e ) {
$lastException = $e ;
if (! $this -> strategy -> shouldRetry ( $e , $retryCount )) {
throw $e ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
$query -> getValueBinder ()-> attachTo ( $statement );
$statement -> execute ();
return $statement ;
});
}
/**
* Executes a SQL statement and returns the Statement object as result .
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Database/Query.php
toggle arguments
* @return \ Cake \ Database \ StatementInterface
*/
public function execute ()
{
$statement = $this -> _connection -> run ( $this );
$this -> _iterator = $this -> _decorateStatement ( $statement );
$this -> _dirty = false ;
return $this -> _iterator ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php
toggle arguments
return new $decorator ( $this -> _results );
}
$statement = $this -> getEagerLoader ()-> loadExternal ( $this , $this -> execute ());
return new ResultSet ( $this , $statement );
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php
toggle arguments
if ( $this -> _cache ) {
$results = $this -> _cache -> fetch ( $this );
}
if (!isset( $results )) {
$results = $this -> _decorateResults ( $this -> _execute ());
if ( $this -> _cache ) {
$this -> _cache -> store ( $this , $results );
}
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/ORM/Query.php
toggle arguments
'You cannot call all() on a non-select query. Use execute() instead.'
);
}
return $this -> _all ();
}
/**
* Trigger the beforeFind event on the query 's repository object.
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php
toggle arguments
* @return array
*/
public function toArray ()
{
return $this -> all ()-> toArray ();
}
/**
* Register a new MapReduce routine to be executed on top of the database results
/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/AppController.php
toggle arguments
if(!empty( $products ))
{
$proReviews = $this -> ProductReviews -> find ( 'list' ,[ 'keyField' => 'product_id' , 'valueField' => 'pro_avg_rating' ])
-> select ([ 'product_id' , 'pro_avg_rating' => 'avg(rating)' ])
-> where ([ 'product_id IN ' => $arrUniqueProIds ])-> group ( 'product_id' )-> toArray ();
// pr($products);die;
for( $i = 0 ; $i < count ( $products ); $i ++)
{
/var/www/vhosts/eurowines.co.uk/httpdocs/src/Controller/ProductsController.php
toggle arguments
//$products = $productsQuery->group (['Products.id'])->all()->toArray();
//
$products = $productsQuery -> all ()-> toArray ();
pr ( $products );die;*/
$arrProductWithDetails = $this -> setProductCFDetailsNew ( $products );
$product_details = $arrProductWithDetails [ $product -> id ];
$strGrapeVariNames = '' ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Controller/Controller.php
toggle arguments
}
/* @var callable $callable */
$callable = [ $this , $request -> getParam ( 'action' )];
$result = $callable (... array_values ( $request -> getParam ( 'pass' )));
if ( $result instanceof Response ) {
$this -> response = $result ;
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php
toggle arguments
if ( $result instanceof Response ) {
return $result ;
}
$response = $controller -> invokeAction ();
if ( $response !== null && !( $response instanceof Response )) {
throw new LogicException ( 'Controller actions can only return Cake\Http\Response or null.' );
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php
toggle arguments
} else {
$controller = $this -> factory -> create ( $request , $response );
}
$response = $this -> _invoke ( $controller );
if ( $request -> getParam ( 'return' )) {
return $response ;
}
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/BaseApplication.php
toggle arguments
* @return \ Psr \ Http \ Message \ ResponseInterface
*/
public function __invoke ( ServerRequestInterface $request , ResponseInterface $response , $next )
{
return $this -> getDispatcher ()-> dispatch ( $request , $response );
}
/**
* Get the ActionDispatcher .
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
$next = $this -> middleware -> get ( $this -> index );
if ( $next ) {
$this -> index ++;
return $next ( $request , $response , $this );
}
// End of the queue
return $response ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php
toggle arguments
);
}
$matching = Router :: getRouteCollection ()-> getMiddleware ( $middleware );
if (! $matching ) {
return $next ( $request , $response );
}
$matching [] = $next ;
$middleware = new MiddlewareQueue ( $matching );
$runner = new Runner ();
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
$next = $this -> middleware -> get ( $this -> index );
if ( $next ) {
$this -> index ++;
return $next ( $request , $response , $this );
}
// End of the queue
return $response ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php
toggle arguments
public function __invoke ( $request , $response , $next )
{
$url = $request -> getUri ()-> getPath ();
if ( strpos ( $url , '..' ) !== false || strpos ( $url , '.' ) === false ) {
return $next ( $request , $response );
}
if ( strpos ( $url , '/.' ) !== false ) {
return $next ( $request , $response );
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
$next = $this -> middleware -> get ( $this -> index );
if ( $next ) {
$this -> index ++;
return $next ( $request , $response , $this );
}
// End of the queue
return $response ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php
toggle arguments
*/
public function __invoke ( $request , $response , $next )
{
try {
return $next ( $request , $response );
} catch ( Throwable $exception ) {
return $this -> handleException ( $exception , $request , $response );
} catch ( Exception $exception ) {
return $this -> handleException ( $exception , $request , $response );
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
$next = $this -> middleware -> get ( $this -> index );
if ( $next ) {
$this -> index ++;
return $next ( $request , $response , $this );
}
// End of the queue
return $response ;
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
{
$this -> middleware = $middleware ;
$this -> index = 0 ;
return $this -> __invoke ( $request , $response );
}
/**
* @ param \ Psr \ Http \ Message \ ServerRequestInterface $request The server request
/var/www/vhosts/eurowines.co.uk/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php
toggle arguments
}
$this -> dispatchEvent ( 'Server.buildMiddleware' , [ 'middleware' => $middleware ]);
$middleware -> add ( $this -> app );
$response = $this -> runner -> run ( $middleware , $request , $response );
if (!( $response instanceof ResponseInterface )) {
throw new RuntimeException ( sprintf (
'Application did not create a response. Got "%s" instead.' ,
/var/www/vhosts/eurowines.co.uk/httpdocs/webroot/index.php
toggle arguments
// Bind your application to the server.
$server = new Server (new Application ( dirname ( __DIR__ ) . '/config' ));
// Run the request/response through the application and emit the response.
$server -> emit ( $server -> run ());
Could this be caused by using Auto-Tables?
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table "
instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
The class for the specified table does not exist.
The Table was created with a typo: $this->getTableLocator()->get('Atricles');
The class file has a typo in the name or incorrect namespace: class Atricles extends Table
The file containing the class has a typo or incorrect casing: Atricles.php
The Table was used using associations but the association has a typo: $this->belongsTo('Atricles')
The table class resides in a Plugin but no plugin notation was used in the association definition.
Please try correcting the issue for the following table aliases:
Settings
FaqSetups
SearchSetups
If you want to customize this error message, create
src/Template/Error/error500.ctp
toggle vendor stack frames
〉 Cake\Database\Expression\Comparison->_stringExpression
CORE/src/Database/Expression/Comparison.php, line 160
〉 Cake\Database\Expression\Comparison->sql
CORE/src/Database/Expression/QueryExpression.php, line 558
〉 Cake\Database\Expression\QueryExpression->sql
CORE/src/Database/QueryCompiler.php, line 134
〉 Cake\Database\QueryCompiler->Cake\Database\{closure}
CORE/src/Database/Query.php, line 309
〉 Cake\Database\Query->traverse
CORE/src/Database/QueryCompiler.php, line 99
〉 Cake\Database\QueryCompiler->compile
CORE/src/Database/Driver.php, line 418
〉 Cake\Database\Driver->compileQuery
CORE/src/Database/Connection.php, line 319
〉 Cake\Database\Connection->compileQuery
CORE/src/Database/Query.php, line 280
〉 Cake\Database\Query->sql
CORE/src/ORM/Query.php, line 1122
〉 Cake\ORM\Query->sql
CORE/src/Database/Driver/Mysql.php, line 138
〉 Cake\Database\Driver\Mysql->prepare
CORE/src/Database/Connection.php, line 275
〉 Cake\Database\Connection->Cake\Database\{closure}
CORE/src/Core/Retry/CommandRetry.php, line 68
〉 Cake\Core\Retry\CommandRetry->run
CORE/src/Database/Connection.php, line 282
〉 Cake\Database\Connection->prepare
CORE/src/Database/Connection.php, line 332
〉 Cake\Database\Connection->Cake\Database\{closure}
CORE/src/Core/Retry/CommandRetry.php, line 68
〉 Cake\Core\Retry\CommandRetry->run
CORE/src/Database/Connection.php, line 337
〉 Cake\Database\Connection->run
CORE/src/Database/Query.php, line 219
〉 Cake\Database\Query->execute
CORE/src/ORM/Query.php, line 1141
〉 Cake\ORM\Query->_execute
CORE/src/Datasource/QueryTrait.php, line 309
〉 Cake\ORM\Query->_all
CORE/src/ORM/Query.php, line 1088
〉 Cake\ORM\Query->all
CORE/src/Datasource/QueryTrait.php, line 326
〉 Cake\ORM\Query->toArray
APP/Controller/AppController.php, line 315
〉 App\Controller\AppController->setProductCFDetailsNew
APP/Controller/ProductsController.php, line 2773
〉 App\Controller\ProductsController->downloadPDF
CORE/src/Controller/Controller.php, line 610
〉 Cake\Controller\Controller->invokeAction
CORE/src/Http/ActionDispatcher.php, line 120
〉 Cake\Http\ActionDispatcher->_invoke
CORE/src/Http/ActionDispatcher.php, line 94
〉 Cake\Http\ActionDispatcher->dispatch
CORE/src/Http/BaseApplication.php, line 235
〉 Cake\Http\BaseApplication->__invoke
CORE/src/Http/Runner.php, line 65
〉 Cake\Http\Runner->__invoke
CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
〉 Cake\Routing\Middleware\RoutingMiddleware->__invoke
CORE/src/Http/Runner.php, line 65
〉 Cake\Http\Runner->__invoke
CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
〉 Cake\Routing\Middleware\AssetMiddleware->__invoke
CORE/src/Http/Runner.php, line 65
〉 Cake\Http\Runner->__invoke
CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
〉 Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke
CORE/src/Http/Runner.php, line 65
〉 Cake\Http\Runner->__invoke
CORE/src/Http/Runner.php, line 51
〉 Cake\Http\Runner->run
CORE/src/Http/Server.php, line 98
〉 Cake\Http\Server->run
ROOT/webroot/index.php, line 40