<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — db_pager.inc and session.inc inclusion order]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7000&amp;type=atom" />
	<updated>2017-10-03T17:04:46Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7000</id>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28818#p28818" />
			<content type="html"><![CDATA[<p><img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-10-03T17:04:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28818#p28818</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28816#p28816" />
			<content type="html"><![CDATA[<p>That is indeed a good find.</p><p>The <strong>function display_db_pager()</strong> is defined in <strong>includes/ui/db_pager_view.inc</strong> which is &quot;include&quot;d in <strong>includes/db_pager.inc</strong> which is &quot;include&quot;d in each table display page. All such pages have your stated order of &quot;include&quot;.</p><p>The pager routines have no need for page security which is used by the session file which needs to come in later. It is possible that some routines in the pager files may be needed by the session file.</p><p>There are functions, includes and code outside of the class definition in the session file. Such includes too may need functions available in the pager files that hence need to precede the session file in order of inclusion.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-03T12:45:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28816#p28816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28815#p28815" />
			<content type="html"><![CDATA[<p>Thanks for the advice. Actually providing the whole may help to fix the issue. <br />anyhow let me tell you the solution, it may either helpful to someone who makes db_pager and stuck this issue,</p><p>This one wont work</p><div class="codebox"><pre><code> include($path_to_root . &quot;/includes/session.inc&quot;);
include($path_to_root . &quot;/includes/db_pager.inc&quot;);
 </code></pre></div><p>and this works fine.</p><div class="codebox"><pre><code> include($path_to_root . &quot;/includes/db_pager.inc&quot;);
include($path_to_root . &quot;/includes/session.inc&quot;); </code></pre></div><p>So the problem is not getting session before pager class.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-10-03T06:18:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28815#p28815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28805#p28805" />
			<content type="html"><![CDATA[<p>Even providing the whole file here may not be useful. Check your functionality and provide feedback.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-02T08:19:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28805#p28805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28804#p28804" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code> $cols = array(
        _(&quot;Empl Id&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;empl_id&#039;),
        _(&quot;Empl Name&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;empl_name&#039;),       
        _(&quot;Email&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;email&#039;),
        _(&quot;Mobile No&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;email&#039;),
        _(&quot;Department&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;email&#039;),
        _(&quot;Grade&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;grade&#039;),
        _(&quot;Present Address&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;present_address&#039;),
        _(&quot;Date of Join&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;tran_date&#039;, &#039;type&#039;=&gt;&#039;date&#039;),
        array(&#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;edit_link&#039;),
        array(&#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;delete_link&#039;)
    );    
    $table =&amp; new_db_pager(&#039;info&#039;, $sql, $cols, null, null, 2);
    $table-&gt;set_marker(&#039;is_inactive&#039;, _(&quot;Marked Employees are either Terminated,Retired,Deceased,Suspended.&quot;), &#039;warning_msg&#039;, &#039;warning_bottom_msg&#039;);
    $table-&gt;width = &quot;80%&quot;;
    display_db_pager($table);</code></pre></div><p> This code within the form and ofcourse it works fine for the core functions like search dimension and gl inquiry.</p><p>I think, its not a problem (include_once or $path_to_root).&nbsp; May be the functionality i wrote is not right.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-10-02T08:11:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28804#p28804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc and session.inc inclusion order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28801#p28801" />
			<content type="html"><![CDATA[<p>Provide context. The standard FA works fine with db_pager. Hence it must be a <strong>$path_to_root</strong> or <strong>include_once</strong>&nbsp; issue.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-01T15:41:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28801#p28801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[db_pager.inc and session.inc inclusion order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28799#p28799" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code> new_db_pager(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;db_pager&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in file: /var/www/fa/242/includes/db_pager.inc at line 487</code></pre></div><p> </p><p>I can&#039;t identify the reason for this issue,&nbsp; when the db_pager loads it works fine, But when i click on next page. it throws the above error. </p><p>How do i solve this issue. ?</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-10-01T14:31:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28799#p28799</id>
		</entry>
</feed>
