<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>Drupal 7: Show full stacktrace on error</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/707 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="707"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;The drupaleers did not manage it in 7 years to show sensible stack traces in Drupal 7: &lt;a class="reference external" href="https://www.drupal.org/project/drupal/issues/1158322"&gt;https://www.drupal.org/project/drupal/issues/1158322&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you need a stack trace because you only get a generic &amp;quot;An unexpected error occured&amp;quot;, patch drupal:&lt;/p&gt;
&lt;p&gt;includes/bootstrap.inc, function _drupal_exception_handler: Before the _drupal_log_error call, do:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
echo '&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;' . $exception-&amp;gt;xdebug_message . '&amp;lt;/table&amp;gt;';
&lt;/pre&gt;
&lt;p&gt;Requires xdebug.&lt;/p&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/707/rev-raw/994c5511550e9da2790bfd70660b7b640ba7c9e9/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/707#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
