<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Error Reporting Not Showing Backtrace in PHP 8.1 +]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10696&amp;type=atom" />
	<updated>2025-12-13T11:15:30Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10696</id>
		<entry>
			<title type="html"><![CDATA[Re: Error Reporting Not Showing Backtrace in PHP 8.1 +]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43798#p43798" />
			<content type="html"><![CDATA[<p>Somehow I got some solution by Changing some lines in the function exception_handler()<br />Whole function is mentioned below</p><div class="codebox"><pre><code>function exception_handler($exception)
{
    $trace = $exception-&gt;getTrace();
    $str_trace = &quot;&quot;;
    foreach ($trace as $line){
        $str_trace .= $line[&#039;file&#039;].&quot; at Line &quot;.$line[&#039;line&#039;] . &quot;&lt;br&gt;&quot;;
    }

    error_handler(
        E_ERROR,
        sprintf(_(&quot;Unhandled exception [%s]: %s. %s.&quot;), $exception-&gt;getCode(), $exception-&gt;getMessage(), $str_trace),
        $exception-&gt;getFile(),
        $exception-&gt;getLine()
    );
    end_page();
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2025-12-13T11:15:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43798#p43798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error Reporting Not Showing Backtrace in PHP 8.1 +]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43796#p43796" />
			<content type="html"><![CDATA[<p>Adding Comparative Bug Display for PHP 7.4 vs PHP 8.1+</p><p><a href="https://postimg.cc/HrzNvY5K/b73f5e8d">https://postimg.cc/HrzNvY5K/b73f5e8d</a></p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2025-12-11T11:18:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43796#p43796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error Reporting Not Showing Backtrace in PHP 8.1 +]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43792#p43792" />
			<content type="html"><![CDATA[<p>This is not helpful for Debugging the problem because it is not pin pointing the file from where the problem is aroused.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2025-12-07T12:36:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43792#p43792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error Reporting Not Showing Backtrace in PHP 8.1 +]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43791#p43791" />
			<content type="html"><![CDATA[<p>In PHP 7.4 it gives error like this</p><div class="codebox"><pre><code>DATABASE ERROR : The sales area could not be updated error code : 1054 error message : Unknown column &#039;descriptio&#039; in &#039;field list&#039; sql that failed was : UPDATE 0_areas SET descriptio=&#039;Global&#039; WHERE area_code = &#039;1&#039; /home/sites/39b/7/7d21587bd2/public_html/dev/includes/errors.inc:235: trigger_error(&#039;DATABASE ERROR : The sales area could not be updated error code : 1054 error message : Unknown column &#039;descriptio&#039; in &#039;field list&#039; sql that failed was : UPDATE 0_areas SET descriptio=&#039;Global&#039; WHERE area_code = &#039;1&#039; &#039;,&#039;256&#039;) /home/sites/39b/7/7d21587bd2/public_html/dev/includes/errors.inc:261: display_db_error(&#039;The sales area could not be updated&#039;,&#039;UPDATE 0_areas SET descriptio=&#039;Global&#039; WHERE area_code = &#039;1&#039;&#039;,&#039;&#039;) /home/sites/39b/7/7d21587bd2/public_html/dev/includes/db/connect_db_mysqli.inc:103: check_db_error(&#039;The sales area could not be updated&#039;,&#039;UPDATE 0_areas SET descriptio=&#039;Global&#039; WHERE area_code = &#039;1&#039;&#039;,&#039;1&#039;) /home/sites/39b/7/7d21587bd2/public_html/dev/sales/includes/db/sales_groups_db.inc:71: db_query(&#039;UPDATE 0_areas SET descriptio=&#039;Global&#039; WHERE area_code = &#039;1&#039;&#039;,&#039;The sales area could not be updated&#039;) /home/sites/39b/7/7d21587bd2/public_html/dev/sales/manage/sales_areas.php:38: update_sales_area(&#039;1&#039;,&#039;Global&#039;)</code></pre></div><p>but in php 8.1+ it does not show Backtrace</p><div class="codebox"><pre><code>Unhandled exception [1054]: Unknown column &#039;descriptio&#039; in &#039;field list&#039;. in file: /home/sites/39b/7/7d21587bd2/public_html/dev/includes/db/connect_db_mysqli.inc at line 80 exception_handler((mysqli_sql_exception Object))</code></pre></div><p>How to Fix?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2025-12-06T20:08:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43791#p43791</id>
		</entry>
</feed>
