Skip to content

Instantly share code, notes, and snippets.

@horodchukanton
Created November 16, 2016 12:31
Show Gist options
  • Save horodchukanton/39c06c975a03cd44c5270250d617bc10 to your computer and use it in GitHub Desktop.
Save horodchukanton/39c06c975a03cd44c5270250d617bc10 to your computer and use it in GitHub Desktop.
Result of change "Orientation" request
<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr582c5144a6bb9-trace').style.display = (document.getElementById('cakeErr582c5144a6bb9-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined index: Type [<b>APP/Controller/MonitorsController.php</b>, line <b>242</b>]<div id="cakeErr582c5144a6bb9-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr582c5144a6bb9-code').style.display = (document.getElementById('cakeErr582c5144a6bb9-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr582c5144a6bb9-context').style.display = (document.getElementById('cakeErr582c5144a6bb9-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr582c5144a6bb9-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$monitor</span><span style="color: #007700">[</span><span style="color: #DD0000">'Type'</span><span style="color: #007700">]&nbsp;==&nbsp;</span><span style="color: #DD0000">'Local'</span><span style="color: #007700">)&nbsp;{</span></span></code></span></pre><pre id="cakeErr582c5144a6bb9-context" class="cake-context" style="display: none;">$id = &#039;35&#039;
$command = &#039;restart&#039;
$monitor = array(
&#039;Monitor&#039; =&gt; array(
&#039;Orientation&#039; =&gt; &#039;90&#039;
)
)
$daemon = null
$args = &#039;&#039;
$daemons = array()</pre><pre class="stack-trace">MonitorsController::daemonControl() - APP/Controller/MonitorsController.php, line 242
MonitorsController::edit() - APP/Controller/MonitorsController.php, line 141
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
AppController::invokeAction() - APP/Plugin/Crud/Lib/CrudControllerTrait.php, line 31
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr582c5144a7ae5-trace').style.display = (document.getElementById('cakeErr582c5144a7ae5-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined index: Function [<b>APP/Controller/MonitorsController.php</b>, line <b>248</b>]<div id="cakeErr582c5144a7ae5-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr582c5144a7ae5-code').style.display = (document.getElementById('cakeErr582c5144a7ae5-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr582c5144a7ae5-context').style.display = (document.getElementById('cakeErr582c5144a7ae5-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr582c5144a7ae5-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$monitor</span><span style="color: #007700">[</span><span style="color: #DD0000">'Function'</span><span style="color: #007700">]&nbsp;==&nbsp;</span><span style="color: #DD0000">'Monitor'</span><span style="color: #007700">)&nbsp;{</span></span></code></span></pre><pre id="cakeErr582c5144a7ae5-context" class="cake-context" style="display: none;">$id = &#039;35&#039;
$command = &#039;restart&#039;
$monitor = array(
&#039;Monitor&#039; =&gt; array(
&#039;Orientation&#039; =&gt; &#039;90&#039;
)
)
$daemon = null
$args = &#039;-m 35&#039;
$daemons = array()</pre><pre class="stack-trace">MonitorsController::daemonControl() - APP/Controller/MonitorsController.php, line 248
MonitorsController::edit() - APP/Controller/MonitorsController.php, line 141
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
AppController::invokeAction() - APP/Plugin/Crud/Lib/CrudControllerTrait.php, line 31
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108</pre></div></pre>{
"message": "Saved"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment