As debug of cakephp
in Snippet
below:
p.error {
font-family: Monaco, Consolas, Courier, monospace;
font-size: 140%;
padding: 0.8em;
margin: 1em 0;
}
.success, .message, .cake-error, p.error, .error-message {
clear: both;
color: #fff;
background: #c43c35;
border: 1px solid rgba(0, 0, 0, 0.5);
background-repeat: repeat-x;
background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
background-image: -webkit-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
background-image: linear-gradient(top, #ee5f5b, #c43c35);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}
<table class="xdebug-error xe-fatal-error" dir="ltr" border="1" cellspacing="0" cellpadding="1">
<tbody><tr><th colspan="5" bgcolor="#f57900" align="left"><span style="background-color: #cc0000; color: #fce94f; font-size: x-large;">( ! )</span> Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/sw-producao/unificado/lib/private/php-redmine-api/lib/Redmine/Api/Issue.php on line <i>60</i></th></tr>
<tr><th colspan="5" bgcolor="#e9b96e" align="left">Call Stack</th></tr>
<tr><th bgcolor="#eeeeec" align="center">#</th><th bgcolor="#eeeeec" align="left">Time</th><th bgcolor="#eeeeec" align="left">Memory</th><th bgcolor="#eeeeec" align="left">Function</th><th bgcolor="#eeeeec" align="left">Location</th></tr>
<tr><td bgcolor="#eeeeec" align="center">1</td><td bgcolor="#eeeeec" align="center">0.0002</td><td bgcolor="#eeeeec" align="right">244672</td><td bgcolor="#eeeeec">{main}( )</td><td title="/var/www/html/sw-producao/unificado/trunk/src/cake/webroot/index.php" bgcolor="#eeeeec">.../index.php<b>:</b>0</td></tr>
<tr><td bgcolor="#eeeeec" align="center">2</td><td bgcolor="#eeeeec" align="center">0.0112</td><td bgcolor="#eeeeec" align="right">937584</td><td bgcolor="#eeeeec">Dispatcher->dispatch( )</td><td title="/var/www/html/sw-producao/unificado/trunk/src/cake/webroot/index.php" bgcolor="#eeeeec">.../index.php<b>:</b>109</td></tr>
<tr><td bgcolor="#eeeeec" align="center">3</td><td bgcolor="#eeeeec" align="center">0.0441</td><td bgcolor="#eeeeec" align="right">7470280</td><td bgcolor="#eeeeec">Dispatcher->_invoke( )</td><td title="/var/www/html/sw-producao/unificado/lib/private/cake/lib/Cake/Routing/Dispatcher.php" bgcolor="#eeeeec">.../Dispatcher.php<b>:</b>165</td></tr>
<tr><td bgcolor="#eeeeec" align="center">4</td><td bgcolor="#eeeeec" align="center">0.0740</td><td bgcolor="#eeeeec" align="right">8316024</td><td bgcolor="#eeeeec">Controller->invokeAction( )</td><td title="/var/www/html/sw-producao/unificado/lib/private/cake/lib/Cake/Routing/Dispatcher.php" bgcolor="#eeeeec">.../Dispatcher.php<b>:</b>191</td></tr>
<tr><td bgcolor="#eeeeec" align="center">5</td><td bgcolor="#eeeeec" align="center">0.0740</td><td bgcolor="#eeeeec" align="right">8316576</td><td bgcolor="#eeeeec"><a href="http://php.net/ReflectionMethod.invokeArgs" target="_new">invokeArgs</a>
( )</td><td title="/var/www/html/sw-producao/unificado/lib/private/cake/lib/Cake/Controller/Controller.php" bgcolor="#eeeeec">.../Controller.php<b>:</b>490</td></tr>
<tr><td bgcolor="#eeeeec" align="center">6</td><td bgcolor="#eeeeec" align="center">0.0740</td><td bgcolor="#eeeeec" align="right">8316976</td><td bgcolor="#eeeeec">ClientesController->view( )</td><td title="/var/www/html/sw-producao/unificado/lib/private/cake/lib/Cake/Controller/Controller.php" bgcolor="#eeeeec">.../Controller.php<b>:</b>490</td></tr>
<tr><td bgcolor="#eeeeec" align="center">7</td><td bgcolor="#eeeeec" align="center">0.0741</td><td bgcolor="#eeeeec" align="right">8317272</td><td bgcolor="#eeeeec">ClientesController->criaTicket( )</td><td title="/var/www/html/sw-producao/unificado/trunk/src/cake/Controller/public/ClientesController.php" bgcolor="#eeeeec">.../ClientesController.php<b>:</b>625</td></tr>
<tr><td bgcolor="#eeeeec" align="center">8</td><td bgcolor="#eeeeec" align="center">0.0747</td><td bgcolor="#eeeeec" align="right">8331024</td><td bgcolor="#eeeeec">Redmine\Api\Issue->create( )</td><td title="/var/www/html/sw-producao/unificado/trunk/src/cake/Controller/public/ClientesController.php" bgcolor="#eeeeec">.../ClientesController.php<b>:</b>1515</td></tr>
<tr><td bgcolor="#eeeeec" align="center">9</td><td bgcolor="#eeeeec" align="center">0.0747</td><td bgcolor="#eeeeec" align="right">8334144</td><td bgcolor="#eeeeec">Redmine\Api\Issue->buildXML( )</td><td title="/var/www/html/sw-producao/unificado/lib/private/php-redmine-api/lib/Redmine/Api/Issue.php" bgcolor="#eeeeec">.../Issue.php<b>:</b>126</td></tr>
</tbody></table>
<p class="error">
<strong>Error: </strong>
Class 'SimpleXMLElement' not found <br>
<strong>File: </strong>
/var/www/html/sw-producao/unificado/lib/private/php-redmine-api/lib/Redmine/Api/Issue.php <br>
<strong>Line: </strong>
60</p>
Issue.php
line | code
-----|------
54 | /**
55 | * Build the XML for an issue
56 | * @param array $params for the new/updated issue data
57 | * @return \SimpleXMLElement
58 | */
59 | private function buildXML(array $params = array()) {
60 | $xml = new \SimpleXMLElement('<?xml version="1.0"?><issue></issue>');
Does anyone know how to resolve this bug?