<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Tracmor Forum - Error in Config File]]></title>
	<link rel="self" href="http://www.tracmor.com/forum/feed/atom/topic/60/"/>
	<updated>2009-04-15T22:27:35Z</updated>
	<generator>PunBB</generator>
	<id>http://www.tracmor.com/forum/topic/60/error-in-config-file/</id>
		<entry>
			<title type="html"><![CDATA[Re: Error in Config File]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/290/#p290"/>
			<content type="html"><![CDATA[<p>The default values in the configuration.inc.php file are there only as an example and are not intended to work &quot;out of the box&quot;.&nbsp; The <a href="http://www.tracmor.com/forum/viewtopic.php?id=105">Installation Instructions</a> give instructions on what settings need to be modified to get a working installation.</p>]]></content>
			<author>
				<name><![CDATA[jsinclair]]></name>
				<uri>http://www.tracmor.com/forum/user/16/</uri>
			</author>
			<updated>2009-04-15T22:27:35Z</updated>
			<id>http://www.tracmor.com/forum/post/290/#p290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in Config File]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/197/#p197"/>
			<content type="html"><![CDATA[<p>I changed the lines you listed, but I still get an error like below</p><p>Undefined index:&nbsp; Qform__FormCallType<br />Error Type:&nbsp; &nbsp;E_NOTICE</p><p>Source File:&nbsp; &nbsp;/var/www/tracmor/includes/qcodo/_core/qform/QFormBase.class.php&nbsp; &nbsp; &nbsp;Line:&nbsp; &nbsp;158</p><p>Line 153:&nbsp; &nbsp; <br />Line 154:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($objClass) {<br />Line 155:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; global $$strFormId;<br />Line 156:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $$strFormId = $objClass;<br />Line 157:&nbsp; &nbsp; <br />Line 158:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $objClass-&gt;strCallType = $_POST[&#039;Qform__FormCallType&#039;];<br />Line 159:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $objClass-&gt;intFormStatus = QFormBase::FormStatusUnrendered;<br />Line 160:&nbsp; &nbsp; <br />Line 161:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($objClass-&gt;strCallType == QCallType::Ajax)<br />Line 162:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QApplication::$RequestMode = QRequestMode::Ajax;<br />Line 163:&nbsp; &nbsp; </p><br /><p>I have the tracmor folder setup as follows on my dev box;<br />/var/www/tracmor</p><p>My variables are defines as;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define (&#039;__DOCROOT__&#039;, &#039;/var/www/tracmor&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define (&#039;__VIRTUAL_DIRECTORY__&#039;, &#039;tracmor&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define (&#039;__SUBDIRECTORY__&#039;, &#039;&#039;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define(&#039;DB_CONNECTION_1&#039;, serialize(array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;adapter&#039; =&gt; &#039;MySqli5&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;server&#039; =&gt; &#039;localhost&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;port&#039; =&gt; null,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;database&#039; =&gt; &#039;tracmor&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;username&#039; =&gt; &#039;xxxx&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;password&#039; =&gt; &#039;yyyy&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;profiling&#039; =&gt; false)));</p><br /><br /><br /><p>Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[sm\]]></name>
				<uri>http://www.tracmor.com/forum/user/80/</uri>
			</author>
			<updated>2009-01-21T19:48:36Z</updated>
			<id>http://www.tracmor.com/forum/post/197/#p197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error in Config File]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/149/#p149"/>
			<content type="html"><![CDATA[<p>I received a Line 158 Error right after installation and could not login.<br />It took me a little while to figure out but there is a error in the default lines for the configuration.inc.php.<br />My installation is running on Clarkconnect 4.3 inside a flexshare folder.</p><p>At present the configuration file default variable only work if the&nbsp; &#039;__SUBDIRECTORY__&#039; and &#039;__VIRTUAL_DIRECTORY__&#039;&nbsp; match</p><p>The correction from the &#039;__SUBDIRECTORY__&#039; to &#039;__VIRTUAL_DIRECTORY__&#039; under the assets lines for CSS and JS assets is needed to properly use the &#039;__VIRTUAL_DIRECTORY__&#039; variable.</p><p>&lt;?php<br />&nbsp; &nbsp; // This is the &quot;Pro&quot; version of configuration.inc.php, without any comments, and restructured in a way<br />&nbsp; &nbsp; // that should make sense for most pro-users of Qcodo<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; // As always, feel free to use, change or ignore.</p><p>&nbsp; &nbsp; define(&#039;SERVER_INSTANCE&#039;, &#039;dev&#039;);</p><p>&nbsp; &nbsp; switch (SERVER_INSTANCE) {<br />&nbsp; &nbsp; &nbsp; &nbsp; case &#039;dev&#039;:<br />&nbsp; &nbsp; &nbsp; &nbsp; case &#039;test&#039;:<br />&nbsp; &nbsp; &nbsp; &nbsp; case &#039;stage&#039;:<br />&nbsp; &nbsp; &nbsp; &nbsp; case &#039;prod&#039;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define (&#039;__DOCROOT__&#039;, &#039;/var/flexshare/shares&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define (&#039;__VIRTUAL_DIRECTORY__&#039;, &#039;/flexshare/tracmor&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define (&#039;__SUBDIRECTORY__&#039;, &#039;/tracmor&#039;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; define(&#039;DB_CONNECTION_1&#039;, serialize(array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;adapter&#039; =&gt; &#039;MySqli5&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;server&#039; =&gt; &#039;localhost&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;port&#039; =&gt; null,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;database&#039; =&gt; &#039;db&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;username&#039; =&gt; &#039;username&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;password&#039; =&gt; &#039;passwrd&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;profiling&#039; =&gt; false)));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; define(&#039;ALLOW_REMOTE_ADMIN&#039;, false);<br />&nbsp; &nbsp; define (&#039;__URL_REWRITE__&#039;, &#039;none&#039;);</p><p>&nbsp; &nbsp; define (&#039;__DEVTOOLS_CLI__&#039;, __DOCROOT__ . __SUBDIRECTORY__ . &#039;/_devtools_cli&#039;);<br />&nbsp; &nbsp; define (&#039;__INCLUDES__&#039;, __DOCROOT__ .&nbsp; __SUBDIRECTORY__ . &#039;/includes&#039;);<br />&nbsp; &nbsp; define (&#039;__QCODO__&#039;, __INCLUDES__ . &#039;/qcodo&#039;);<br />&nbsp; &nbsp; define (&#039;__QCODO_CORE__&#039;, __INCLUDES__ . &#039;/qcodo/_core&#039;);<br />&nbsp; &nbsp; define (&#039;__DATA_CLASSES__&#039;, __INCLUDES__ . &#039;/data_classes&#039;);<br />&nbsp; &nbsp; define (&#039;__DATAGEN_CLASSES__&#039;, __INCLUDES__ . &#039;/data_classes/generated&#039;);<br />&nbsp; &nbsp; define (&#039;__FORMBASE_CLASSES__&#039;, __INCLUDES__ . &#039;/formbase_classes_generated&#039;);<br />&nbsp; &nbsp; define (&#039;__PANELBASE_CLASSES__&#039;, __INCLUDES__ . &#039;/panelbase_classes_generated&#039;);<br />&nbsp; &nbsp; define (&#039;__DEVTOOLS__&#039;, __SUBDIRECTORY__ . &#039;/_devtools&#039;);<br />&nbsp; &nbsp; define (&#039;__FORM_DRAFTS__&#039;, __SUBDIRECTORY__ . &#039;/form_drafts&#039;);<br />&nbsp; &nbsp; define (&#039;__PANEL_DRAFTS__&#039;, __SUBDIRECTORY__ . &#039;/panel_drafts&#039;);</p><p>&nbsp; &nbsp; // We don&#039;t want &quot;Examples&quot;, and we don&#039;t want to download them during qcodo_update<br />&nbsp; &nbsp; define (&#039;__EXAMPLES__&#039;, null);</p><p>&nbsp; &nbsp; define (&#039;__JS_ASSETS__&#039;, __VIRTUAL_DIRECTORY__ . &#039;/js&#039;); &nbsp; &nbsp; // CHANGE THIS LINE<br />&nbsp; &nbsp; define (&#039;__CSS_ASSETS__&#039;, __VIRTUAL_DIRECTORY__ . &#039;/css&#039;); &nbsp; &nbsp; // CHANGE THIS LINE<br />&nbsp; &nbsp; define (&#039;__IMAGE_ASSETS__&#039;, __SUBDIRECTORY__ . &#039;/images&#039;);<br />&nbsp; &nbsp; define (&#039;__PHP_ASSETS__&#039;, __SUBDIRECTORY__ . &#039;/includes/php&#039;);</p><p>&nbsp; &nbsp; if ((function_exists(&#039;date_default_timezone_set&#039;)) &amp;&amp; (!ini_get(&#039;date.timezone&#039;)))<br />&nbsp; &nbsp; &nbsp; &nbsp; date_default_timezone_set(&#039;America/Los_Angeles&#039;);</p><p>&nbsp; &nbsp; define(&#039;ERROR_PAGE_PATH&#039;, __PHP_ASSETS__ . &#039;/_core/error_page.php&#039;);<br />?&gt;</p><p>Just a FYI and to help anyone else with this problem.</p>]]></content>
			<author>
				<name><![CDATA[powerpoint05]]></name>
				<uri>http://www.tracmor.com/forum/user/59/</uri>
			</author>
			<updated>2008-11-22T07:53:07Z</updated>
			<id>http://www.tracmor.com/forum/post/149/#p149</id>
		</entry>
</feed>

