<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Tracmor Forum - Upgrading to 0.3.0 from 0.2.0 problems]]></title>
	<link rel="self" href="http://www.tracmor.com/forum/feed/atom/topic/304/"/>
	<updated>2010-10-14T17:14:33Z</updated>
	<generator>PunBB</generator>
	<id>http://www.tracmor.com/forum/topic/304/upgrading-to-030-from-020-problems/</id>
		<entry>
			<title type="html"><![CDATA[Re: Upgrading to 0.3.0 from 0.2.0 problems]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/972/#p972"/>
			<content type="html"><![CDATA[<p>I modified the update script but I have the same error message.</p><p>ERROR 1025 (HY000) at line 49: Error on rename of &#039;./tracmor/inventory_location&#039; to &#039;./tracmor/#sql2-2ef-ed&#039; (errno: 152)</p>]]></content>
			<author>
				<name><![CDATA[timtimar]]></name>
				<uri>http://www.tracmor.com/forum/user/96/</uri>
			</author>
			<updated>2010-10-14T17:14:33Z</updated>
			<id>http://www.tracmor.com/forum/post/972/#p972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Upgrading to 0.3.0 from 0.2.0 problems]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/971/#p971"/>
			<content type="html"><![CDATA[<p>Try modifying the db_update-0.3.0.sql file as shown below. As we always recommend, make sure you have a backup of your database before attempting the upgrade.</p><p>Add at top:<br /></p><div class="codebox"><pre><code>SET foreign_key_checks = 0;</code></pre></div><p>Add at bottom:<br /></p><div class="codebox"><pre><code>SET foreign_key_checks = 1;</code></pre></div><p>Let us know if that fixes it for you.</p>]]></content>
			<author>
				<name><![CDATA[jsinclair]]></name>
				<uri>http://www.tracmor.com/forum/user/16/</uri>
			</author>
			<updated>2010-10-14T16:59:55Z</updated>
			<id>http://www.tracmor.com/forum/post/971/#p971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Upgrading to 0.3.0 from 0.2.0 problems]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/969/#p969"/>
			<content type="html"><![CDATA[<p>I have the same error message on my server as well</p><p>ERROR 1025 (HY000) at line 48: Error on rename of &#039;./tracmor/inventory_location&#039; to &#039;./tracmor/#sql2-2ef-ab&#039; (errno: 152)</p><p>Is there a solution?</p>]]></content>
			<author>
				<name><![CDATA[timtimar]]></name>
				<uri>http://www.tracmor.com/forum/user/96/</uri>
			</author>
			<updated>2010-10-14T16:32:13Z</updated>
			<id>http://www.tracmor.com/forum/post/969/#p969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Upgrading to 0.3.0 from 0.2.0 problems]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/932/#p932"/>
			<content type="html"><![CDATA[<p>I have that same error here.&nbsp; Did you ever find a solution?&nbsp; Has it caused any issues?</p><p>I dug a bit and found that it likely has something to do with a foreign key constraint and when I do a &quot;show engine innodb status&quot; I see this:</p><p>LATEST FOREIGN KEY ERROR<br />------------------------<br />100812 11:17:35 Error in foreign key constraint of table fsdinventory/#sql-d43_188b:<br />FOREIGN KEY (&nbsp; `inventory_model_id` ) REFERENCES&nbsp; `tracmor`.`inventory_model` (<br />`inventory_model_id`<br />) ON DELETE CASCADE ON UPDATE NO ACTION:<br />Cannot resolve table name close to:<br /> (<br />`inventory_model_id`<br />) ON DELETE CASCADE ON UPDATE NO ACTION</p><p>Any help would be great.</p>]]></content>
			<author>
				<name><![CDATA[Petaris]]></name>
				<uri>http://www.tracmor.com/forum/user/293/</uri>
			</author>
			<updated>2010-08-12T16:42:12Z</updated>
			<id>http://www.tracmor.com/forum/post/932/#p932</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Upgrading to 0.3.0 from 0.2.0 problems]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/899/#p899"/>
			<content type="html"><![CDATA[<p>Please ignore the last error message. I forgot to change the __SUBDIRECTORY__ variable in the configuration.inc.php file after changing the directory for testing purposes. Everything seems to be working so far except the first error message.</p>]]></content>
			<author>
				<name><![CDATA[olejl]]></name>
				<uri>http://www.tracmor.com/forum/user/187/</uri>
			</author>
			<updated>2010-07-19T09:31:32Z</updated>
			<id>http://www.tracmor.com/forum/post/899/#p899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Upgrading to 0.3.0 from 0.2.0 problems]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/898/#p898"/>
			<content type="html"><![CDATA[<p>I am trying to upgrade my database from 0.2.0 to 0.3.0.</p><p>When i execute <br /></p><div class="codebox"><pre><code>mysql test -uroot -p &lt; ./db_update-0.3.0.sql</code></pre></div><p>I get the following error message:<br /></p><div class="codebox"><pre><code>ERROR 1005 (HY000) at line 49: Can&#039;t create table &#039;test.#sql-536_54b&#039; (errno: 150)</code></pre></div><p>The rest of the steps are OK, but when logging in I get this error message:<br /></p><div class="codebox"><pre><code>Exception in PHP Script
/tracmor-0.3.0/assets/index.php     PHP Version: 5.2.10-2ubuntu6.4;  Zend Engine Version: 2.2.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache/2.2.12 (Ubuntu);  Server Name: 10.1.3.31
HTTP User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100401 Ubuntu/9.10 (karmic) Firefox/3.5.9
Undefined GET property or variable in &#039;QAdvancedSearchComposite&#039; class: chkArchived
Exception Type:   QUndefinedPropertyException

Source File:   /var/www/alameen-test/includes/qcodo/_core/qform/QControlBase.class.php     Line:   736

Line 731:            public function Render($blnDisplayOutput = true) {
Line 732:                // Call RenderHelper
Line 733:                $this-&gt;RenderHelper(func_get_args(), __FUNCTION__);
Line 734:                
Line 735:                try {
Line 736:                    $strOutput = $this-&gt;GetControlHtml();
Line 737:                } catch (QCallerException $objExc) {
Line 738:                    $objExc-&gt;IncrementOffset();
Line 739:                    throw $objExc;
Line 740:                }
Line 741:    


Call Stack:

#0 /var/www/alameen-test/includes/qcodo/_core/qform/QControlBase.class.php(933): QBaseClass-&gt;__get(&#039;chkArchived&#039;)
#1 /var/www/alameen-test/includes/qcodo/qform/QControl.class.php(252): QControlBase-&gt;__get(&#039;chkArchived&#039;)
#2 /var/www/alameen-test/includes/qcodo/qform/QAdvancedSearchComposite.class.php(374): QControl-&gt;__get(&#039;chkArchived&#039;)
#3 /var/www/tracmor-0.3.0/common/advanced_search_composite.tpl.php(56): QAdvancedSearchComposite-&gt;__get(&#039;chkArchived&#039;)
#4 /var/www/alameen-test/includes/qcodo/qform/QAdvancedSearchComposite.class.php(123): require(&#039;/var/www/tracmo...&#039;)
#5 /var/www/alameen-test/includes/qcodo/_core/qform/QControlBase.class.php(736): QAdvancedSearchComposite-&gt;GetControlHtml()
#6 /var/www/tracmor-0.3.0/assets/asset_search_composite.tpl.php(31): QControlBase-&gt;Render()
#7 /var/www/alameen-test/includes/qcodo/qform/QAssetSearchComposite.class.php(225): require(&#039;/var/www/tracmo...&#039;)
#8 /var/www/alameen-test/includes/qcodo/_core/qform/QControlBase.class.php(736): QAssetSearchComposite-&gt;GetControlHtml()
#9 /var/www/alameen-test/assets/asset_list.tpl.php(43): QControlBase-&gt;Render()
#10 /var/www/alameen-test/includes/qcodo/_core/qform/QFormBase.class.php(790): require(&#039;/var/www/alamee...&#039;)
#11 /var/www/alameen-test/includes/qcodo/_core/qform/QFormBase.class.php(297): QFormBase-&gt;Render()
#12 /var/www/tracmor-0.3.0/assets/asset_list.php(465): QFormBase::Run(&#039;AssetListForm&#039;, &#039;/var/www/alamee...&#039;)
#13 /var/www/tracmor-0.3.0/assets/index.php(22): include(&#039;/var/www/tracmo...&#039;)
#14 {main}


Variable Dump:   Show/Hide</code></pre></div><p>This is only happening for asset. Other things such as inventory / admin / reports seems to be working OK.</p>]]></content>
			<author>
				<name><![CDATA[olejl]]></name>
				<uri>http://www.tracmor.com/forum/user/187/</uri>
			</author>
			<updated>2010-07-19T09:19:33Z</updated>
			<id>http://www.tracmor.com/forum/post/898/#p898</id>
		</entry>
</feed>

