<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techtracer &#187; Issues</title>
	<atom:link href="http://techtracer.com/category/issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtracer.com</link>
	<description>Tracing the course of Web Technology</description>
	<lastBuildDate>Tue, 06 Jan 2009 12:14:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://techtracer.com</link>
  <url>http://techtracer.com/wp-includes/images/favicon.png</url>
  <title>Techtracer</title>
</image>
		<item>
		<title>Wordpress Database Error &#8211; Table &#8216;wp_post2cat&#8217; doesn&#8217;t exist</title>
		<link>http://techtracer.com/2008/01/02/wordpress-database-error-table-wp_post2cat-doesnt-exist/</link>
		<comments>http://techtracer.com/2008/01/02/wordpress-database-error-table-wp_post2cat-doesnt-exist/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 15:58:14 +0000</pubDate>
		<dc:creator>nitinpai</dc:creator>
				<category><![CDATA[Issues]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://techtracer.com/2008/01/02/wordpress-database-error-table-wp_post2cat-doesnt-exist/</guid>
		<description><![CDATA[I recently upgraded my hosted Wordpress from version 2.2 to 2.3.1. The upgradation process went smoothly but something strange happened when I tried to log into the administration dashboard.  When I logged in, the page showed me a message stating that my database was old and I needed to upgrade it. I did as [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded my hosted Wordpress from version <strong>2.2</strong> to <strong>2.3.1</strong>. The upgradation process went smoothly but something strange happened when I tried to log into the administration dashboard.  When I logged in, the page showed me a message stating that my database was <strong>old</strong> and I needed to <strong>upgrade</strong> it. I did as it suggested and the dashboard came into picture as usual. All till this point seemed fine, until I did the following things:</p>
<ul>
<li>Tried to add a new category</li>
<li>Tried to edit a post</li>
<li>Tried to comment from the blog post page</li>
</ul>
<p>When I tried to do the above things I was shown a big fat error message which cried out,</p>
<blockquote><p><em><strong> WordPress database error</strong>: [Table 'wordpress.wp_post2cat' doesn't exist]<br />
SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM wp_posts p LEFT JOIN wp_post2cat pc ON p.ID = pc.post_id LEFT JOIN wp_categories c ON pc.category_id = c.cat_ID WHERE post_status = &#8216;publish&#8217; GROUP BY cat_ID</em></p></blockquote>
<p>I managed to resolve this error in some time but those few moments were somewhat shocking. If you are getting the same error, the solution is quite easy. At first the error looks as something has gone wrong with your database but believe me, your <strong>database is fine</strong>. The problem maker are the <strong>plugins</strong>. The main cause of the above error are the following plugins:</p>
<ul>
<li>Google Sitemaps Generator</li>
<li>Posts by Author plugin</li>
<li>Ultimate Tag Warrior</li>
<li>Similar Posts</li>
</ul>
<p>Just disable these plugins and you should see your error disappear. You can later put in the latest versions of the above plugins and activate them. The <strong>Ultimate Tag Warrior</strong> plugin should not be required in my opinion since Wordpress 2.3 + has the feature of <strong>tagging</strong> a particular post.</p>
<p>Always remember, before upgrading a Wordpress to a newer version make a double check on the compatibility of the plugins you have already installed. The guys at Wordpress have made out jobs much more easier by putting an <a href="http://codex.wordpress.org/Themes/Theme_Compatibility/2.3" target="_blank">alphabetically sorted list of compatible plugins with Wordpress 2.3</a>.</p>
<p>So when you install a plugin for Wordpress in future do the following:</p>
<ul>
<li>Download it from the <a href="http://codex.wordpress.org/Plugins" target="_blank">official Wordpress plugin repository</a></li>
<li>Check the version of Wordpress till which the plugin is compatible with</li>
<li>Backup your blog through Wordpress Export feature before trying out a plugin.</li>
</ul>
<p>Sometimes if you have self coded the theme, the error might not disappear because you might have used some tables like &#8220;<strong>wp_post2cat</strong>&#8221; which has been discarded in the newer version. So if your error is still not resolved try using the <strong>default theme</strong> (Kubrick) and then work your way out.</p>
<h2>Related posts:</h2><ul><li><a href="http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/" rel="bookmark" title="Permanent Link: Wordpress Error &#8211; &#8220;Allowed memory size of 8388608 bytes&#8221;">Wordpress Error &#8211; &#8220;Allowed memory size of 8388608 bytes&#8221;</a></li><li><a href="http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/" rel="bookmark" title="Permanent Link: Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error">Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error</a></li><li><a href="http://techtracer.com/2007/04/22/bluewhirl-new-wordpress-theme-for-techtracer/" rel="bookmark" title="Permanent Link: BlueWhirl &#8211; new wordpress theme for TechTracer">BlueWhirl &#8211; new wordpress theme for TechTracer</a></li><li><a href="http://techtracer.com/2007/09/26/seo-for-wordpress-beginners/" rel="bookmark" title="Permanent Link: SEO for Wordpress Beginners">SEO for Wordpress Beginners</a></li><li><a href="http://techtracer.com/2008/06/09/3-easy-steps-to-install-mysql-on-windows-xp/" rel="bookmark" title="Permanent Link: 3 Easy Steps to Install MySQL on Windows XP">3 Easy Steps to Install MySQL on Windows XP</a></li></ul><br /><a href="http://techtracer.com/">Techtracer.com</a> Copyright &copy; 2008<br /> ]]></content:encoded>
			<wfw:commentRss>http://techtracer.com/2008/01/02/wordpress-database-error-table-wp_post2cat-doesnt-exist/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error</title>
		<link>http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/</link>
		<comments>http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 15:38:13 +0000</pubDate>
		<dc:creator>nitinpai</dc:creator>
				<category><![CDATA[Issues]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java EE]]></category>

		<guid isPermaLink="false">http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/</guid>
		<description><![CDATA[Many a times I have come across my friends who get this error and are clueless because this error is not something related to the programming logic neither to the server which shows this error either on accessing a servlet or a service. You have to know that this error comes when a class compiled [...]]]></description>
			<content:encoded><![CDATA[<p>Many a times I have come across my friends who get this error and are clueless because this error is not something related to the programming logic neither to the server which shows this error either on accessing a servlet or a service. You have to know that this error comes when a class compiled on a newer version is being tried to run on an older JVM i.e. If you try to run a JDK 1.5 compiled class in an environment having JRE 1.4 the JRE will give you the error,</p>
<blockquote><p> <strong>Unsupported major.minor version 49.0</strong></p></blockquote>
<p>This error is given because the new features introduced in the newer version of Java are not present in the older version. So you have to be careful for using such class files on older environments. For resolving this error you have to follow some simple tips as follows:</p>
<ol>
<li>Check you java version by running the command <strong>java &#8211; version</strong></li>
<li>Check your environment variable JAVA_HOME and the path associated with it</li>
<li>Check your <strong>server</strong> installation if it was installed on an older version</li>
<li>Check which path exists in the environment entries</li>
</ol>
<p>These are the quick tips you would need to do in order to get rid of the error. Sometimes it may happen that the system which you are using might be loaded with 2 to 3 version of Java and you might be required to work on the newer one. In such cases always there is a <strong>confusion</strong> as to what went wrong and with which version. So if you are left in such crises do the following quick action tips:</p>
<ol>
<li>Edit your <strong>JAVA_HOME</strong> with the latest java home folder path</li>
<li>Edit your <strong>path</strong> variable which might already have been set with older version</li>
<li>For this goto <strong>My Computer</strong> &gt; <strong>Properties</strong> &gt; <strong>Advanced </strong>&gt; <strong>Environment Variables</strong> &gt; <strong>path</strong></li>
<li><strong>Remove</strong> the earlier version path which might be something like <em>&lt;java_installed_path&gt;</em>/bin and<strong> replace</strong> it with newer version path</li>
<li>If your server was installed on a older version of Java and if it not been used then its better to <strong>uninstall</strong> it and then install it after making the above changes.</li>
</ol>
<p><u><strong>Note:</strong></u><strong> </strong>You can check if your server was installed on an older version or not by opening the <strong>startup.bat</strong> of your Tomcat server or any <strong>start up </strong>script of other servers and finding the part where the script itself sets the <strong>JAVA_HOME</strong> variable. If you find that it has been set to a older version then it won&#8217;t do any good just by replacing it with a newer version path. You would ultimately have to reinstall the server as per my understanding.</p>
<p>It would be interesting to know if the same can be resolved without having to reinstall the server. Please suggest some alternatives if you have.</p>
<h2>Related posts:</h2><ul><li><a href="http://techtracer.com/2008/01/02/wordpress-database-error-table-wp_post2cat-doesnt-exist/" rel="bookmark" title="Permanent Link: Wordpress Database Error &#8211; Table &#8216;wp_post2cat&#8217; doesn&#8217;t exist">Wordpress Database Error &#8211; Table &#8216;wp_post2cat&#8217; doesn&#8217;t exist</a></li><li><a href="http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/" rel="bookmark" title="Permanent Link: Wordpress Error &#8211; &#8220;Allowed memory size of 8388608 bytes&#8221;">Wordpress Error &#8211; &#8220;Allowed memory size of 8388608 bytes&#8221;</a></li><li><a href="http://techtracer.com/2007/08/19/working-with-jax-ws-in-jdk-16/" rel="bookmark" title="Permanent Link: Working With JAX-WS in JDK 1.6">Working With JAX-WS in JDK 1.6</a></li><li><a href="http://techtracer.com/2007/08/01/j2ee-or-jee-java-5-or-java-15-is-sun-crazy/" rel="bookmark" title="Permanent Link: J2EE or JEE, Java 5 or Java 1.5 &#8211; Is SUN Crazy?">J2EE or JEE, Java 5 or Java 1.5 &#8211; Is SUN Crazy?</a></li><li><a href="http://techtracer.com/2008/06/09/3-easy-steps-to-install-mysql-on-windows-xp/" rel="bookmark" title="Permanent Link: 3 Easy Steps to Install MySQL on Windows XP">3 Easy Steps to Install MySQL on Windows XP</a></li></ul><br /><a href="http://techtracer.com/">Techtracer.com</a> Copyright &copy; 2008<br /> ]]></content:encoded>
			<wfw:commentRss>http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Eclipse Europa Has Ruined My Day</title>
		<link>http://techtracer.com/2007/08/26/eclipse-europa-has-ruined-my-day/</link>
		<comments>http://techtracer.com/2007/08/26/eclipse-europa-has-ruined-my-day/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 17:47:52 +0000</pubDate>
		<dc:creator>nitinpai</dc:creator>
				<category><![CDATA[Issues]]></category>
		<category><![CDATA[Opinions]]></category>

		<guid isPermaLink="false">http://techtracer.com/2007/08/26/eclipse-europa-has-ruined-my-day/</guid>
		<description><![CDATA[Yesterday I woke up with a fresh mind to start my day by learning something useful. I had the aim to learn Spring Framework. So with this in mind I sat before my machine and  decided to plan what to do for getting started in spring. I had downloaded Eclipse Europa a couple of [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I woke up with a fresh mind to start my day by learning something useful. I had the aim to learn <strong>Spring Framework</strong>. So with this in mind I sat before my machine and  decided to plan what to do for getting started in spring. I had downloaded <strong>Eclipse Europa </strong>a couple of days before so I thought the best way to get knowledge for Spring would be to get working quickly with an IDE.</p>
<p>I had <strong>NetBeans 5.5</strong> with <strong>Sun Application Server</strong> prior to downloading Eclipse Europa. NetBeans was very amazing from the very beginning when I started with it. But since the enterprises here, use <strong>Eclipse</strong> as their <em>de facto</em> Java IDE my mind was made up, to work in their way i.e in Eclipse. Eclipse Europa which released a couple of days ago had the long forgotten feature of Web Application development called <strong>WTP</strong> built into the IDE along with 20 other sub projects. So this prompted me that, getting started with a new framework and a new IDE would be refreshing.</p>
<p>I had <strong>already configured</strong> Eclipse Europa to work with the Sun Application server earlier and I had the spring framework api&#8217;s with me so it was only a few moments from getting a head start. I created a <strong>dynamic web project</strong> in Europa making it compatible for running in Sun App Server and made a simple <strong>Controller</strong> and a <strong>view</strong> page in JSP, the minimal requirement from a Spring MVC tutorial. The configuration files were made and then I thought of running the project.</p>
<p>As I ran the project the error I got was,</p>
<blockquote><p><strong>java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory</strong></p></blockquote>
<p>I started to debug my application to see if any of my code or configuration had this <strong>Logger</strong> class included. But my code included only a <strong>single controller class </strong>and its mapping file in which no Logger was used. I thought maybe the <strong>Spring.jar</strong> wasn&#8217;t getting added in the classpath, even though I had added it as a <strong>external jar</strong>. I decided to manually add the file to <strong>WebContent/lib</strong>.</p>
<p>But still the error would not budge. I even added the jar file to <strong>build</strong> directory by making a <strong>lib</strong> folder in it. This also did not seem to make the error go away. It was insane. I had tried searching for the error on the web but the answer for that was the Logger was missing even though I had not added it anywhere in my code. The solution was to add the appropriate jar but I did not have those like<strong> Log4j</strong>.</p>
<p><strong>Half</strong> of the day was gone in trying to solve an error which shouldn&#8217;t have come in the first place. Furious with the error I stopped with my spring campaign and thought of learning <strong>JAX-WS</strong>. I had the knowledge to use JAX-WS so wanted to give it a try in the new Eclipse IDE which everyone was making a hue and cry about. First of all there was <strong>no provision</strong> for making a web service project in the IDE. Netbeans 5.5 which I had earlier used way back last year to make web services already had the web service project in built.</p>
<p>I learn&#8217;t that for making a web service I had to download <strong>STP</strong> which meant <strong>SOA Tools Platform</strong> which had the capabilities to make a web service using JAX-WS in Eclipse. I downloaded STP and wasted about half an hour on it owing to my slow connection. After getting STP I read a tutorial on how to go about making a web service in it. A tutorial on the web stated that before making a web service with STP it should be configured with <strong>Apache Celtix Fire (CXF)</strong>. What the f***?</p>
<p>I already have <strong>JDK 1.6 </strong>which comes shipped with <strong>JAX WS</strong>. So what was the need of having another one? Apart from this I also had installed<strong> JWSDP</strong> 2.0 web services developer pack from SUN. With some hope in mind I thought maybe it could be used instead of CXF. When I tried to configure it, Eclipse it gave out a lame error stating,</p>
<blockquote><p><strong>You must specify a valid installation location for your selected runtime provider in JAX WS References.</strong></p></blockquote>
<p>which in other words meant CXF installation.</p>
<p>Growing more and more frustrated at this utter nonsense I decided to download <strong>Apache CXF</strong>. It was even bigger than I had expected with a size of <strong>21 MB</strong>. I kept it for downloading and took a break to start with a fresh mind later in the evening. I hoped to get at least something from that day, But more frustrations were in store for me.</p>
<p>Later in the evening when the download had completed I configured it in Eclipse and made way to the rest of <a href="http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-soatp.html" target="_blank">the tutorial</a>. The further steps were to make an<strong> interface</strong> and <strong>implementation</strong> and add annotations. I did that and was about to see how the WSDL and proxies would automatically get generated. The tutorial mentioned that when the interface with the annotations is saved the <strong>proxies and WSDL</strong> immediately get created without required the user to do do anything. But to my bewilderment I already saved the interface quite a lot of times but there was <strong>no sign</strong> of WSDL nor the proxies. This was even more frustrating than I had imagined.</p>
<p>Searching an answer to this irregular behavior of the IDE I came to know that I wasn&#8217;t the only one who faced this. There was <strong>another one</strong> which I read <a href="http://www.eclipsezone.com/eclipse/forums/t100584.html" target="_blank">here</a>. Unfortunately no solution was there. It was in the night that I was still trying to learn something and due to this <strong>nonsensical IDE</strong> I had gained nothing but frustration. I forgot to mention the regular <strong>hang ups</strong> which I suffered in between the activities. I was left clueless as to why Eclipse was chosen by enterprises and not NetBeans. One more thing which left me in disappointment was that Eclipse did not allow me to <strong>switch </strong>between the servers i.e Sun Application Server and Tomcat for running the same application! It said something like this,</p>
<blockquote><p><strong>Tomcat is not a Java EE 5 complaint server. </strong></p></blockquote>
<p>Thanks for the info but my project does not have EJB&#8217;s for God&#8217;s sake!</p>
<p>I gave up on using Eclipse and closed it. It was in the middle of the dark night that I opened NetBeans and heaved a sigh of relief. It looked <strong>more lovely</strong> than before thanks to the <strong>disgusting UI</strong> of Eclipse. I thought of making up for lost time by just implementing the things in spring which I wasn&#8217;t able to in Eclipse.</p>
<p>I made a new web application and added the spring.jar file, made a controller and view, added the mapping. And<em> lo and behold</em> as I ran the application with <strong>Tomcat</strong> as the server it flashed me the output in matter of seconds which I had wished way back in the morning. I switched the server to <strong>Sun App server</strong> and it ran smoothly as on Tomcat. This mere moments that I spent on NetBeans were the <strong>best ones</strong> in that entire unproductive day. These moments gave me the confidence to learn more the next day, the confidence which I thought I had lost. It was like a breath of fresh air.</p>
<p>I thank God for giving me NetBeans. I don&#8217;t know if anyone elsewhere thinks in the same way. But the fact is that it took me just one day to dump Eclipse, and go back to NetBeans. <strong>Long live</strong> the developers of NetBeans!</p>
<h2>Related posts:</h2><ul><li><a href="http://techtracer.com/2007/08/28/what-do-you-dream-for-in-an-ide/" rel="bookmark" title="Permanent Link: What Do You Dream For In An IDE?">What Do You Dream For In An IDE?</a></li><li><a href="http://techtracer.com/2007/04/04/java-5-generics-changing-for-good/" rel="bookmark" title="Permanent Link: Java 5 Generics &#8211; Changing for good">Java 5 Generics &#8211; Changing for good</a></li><li><a href="http://techtracer.com/2007/03/31/development-and-deployment-structures-the-perfect-way-to-build-a-web-application/" rel="bookmark" title="Permanent Link: Development and Deployment Structures &#8211; the perfect way to build a web application">Development and Deployment Structures &#8211; the perfect way to build a web application</a></li><li><a href="http://techtracer.com/2007/08/15/jax-ws-jaxp-tutorial-building-a-stockquote-web-service-client/" rel="bookmark" title="Permanent Link: JAX-WS + JAXP Tutorial &#8211; Building A StockQuote Web Service Client">JAX-WS + JAXP Tutorial &#8211; Building A StockQuote Web Service Client</a></li><li><a href="http://techtracer.com/2007/08/19/working-with-jax-ws-in-jdk-16/" rel="bookmark" title="Permanent Link: Working With JAX-WS in JDK 1.6">Working With JAX-WS in JDK 1.6</a></li></ul><br /><a href="http://techtracer.com/">Techtracer.com</a> Copyright &copy; 2008<br /> ]]></content:encoded>
			<wfw:commentRss>http://techtracer.com/2007/08/26/eclipse-europa-has-ruined-my-day/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Wordpress Error &#8211; &#8220;Allowed memory size of 8388608 bytes&#8221;</title>
		<link>http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/</link>
		<comments>http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 17:13:07 +0000</pubDate>
		<dc:creator>nitinpai</dc:creator>
				<category><![CDATA[Issues]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/</guid>
		<description><![CDATA[You sometimes might get the following error if you are trying to import a previous blog into a newly installation of Wordpress  through an RSS feed or while installing a new plugin as:
 Allowed memory size of 8388608 bytes exhausted (tried to allocate xxxxx bytes)
This means that the server is not allowing to process [...]]]></description>
			<content:encoded><![CDATA[<p>You sometimes might get the following error if you are trying to <strong>import </strong>a previous blog into a newly installation of <strong>Wordpress </strong> through an <strong>RSS feed</strong> or while installing a new <strong>plugin</strong> as:</p>
<blockquote><p><strong> Allowed memory size of 8388608 bytes exhausted (tried to allocate xxxxx bytes)</strong></p></blockquote>
<p>This means that the server is not allowing to process the size of the data than its maximum alloted size. Remember that there is<strong> nothing </strong>wrong with the Wordpress installation. Its the matter of the amount of data that the server can process at one time.<br />
<a href="http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/wordpress-logo/" rel="attachment wp-att-76" title="Wordpress Logo"></a></p>
<p>Don&#8217;t be scared, you can get it resolved in a matter of seconds. There are two ways of resolving this error.</p>
<p><strong>Method #1 : Without Restarting the Server</strong></p>
<p>If the error mentioned appears during the importing, what you need to do is get <strong>access</strong> to the source code of the Wordpress where you have done the <strong>installation</strong>.</p>
<p>Once you get the access you will need to modify<strong> two files</strong> . They are:</p>
<ol>
<li><em>&lt;installation_directory&gt;</em>/wp-admin/import.php</li>
<li><em> &lt;installation_directory&gt;</em>/wp-admin/import/wordpress.php</li>
</ol>
<p>Now copy this line of code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'memory_limit'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'16M'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This line increases the server processing capacity by the included size i.e <strong>16M</strong>. Paste the above line in the <strong>import.php</strong> file just <strong>after</strong> the line of code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin-header.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now in the second file i.e. <strong>wordpress.php</strong> paste the code <strong>after</strong> the line of code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></pre></div></div>

<p><strong><em>Note:</em> </strong>If the error mentioned appears during the installation of a <strong>plugin</strong> then make a note of the <strong>path</strong> and the <strong>.php</strong> page which is given out in the error and paste the same line in the mentioned <strong>.php</strong> page.Remember, the code must be pasted within the php code block i.e in between <strong>&lt;?php</strong> and <strong>php?&gt;</strong> in the page since it is to be executed by the server.</p>
<p>Now once again access your Wordpress URL and go to the <strong>manage &gt; import</strong> menu and try importing. If your problem still remains, just keep <strong>increasing</strong> the size mentioned in the pasted code in multiples of <strong>4</strong> i.e. in place of &#8220;16M&#8221;, try &#8220;20M&#8221;, &#8220;24M&#8221; etc.</p>
<p><strong>Method #2 : Which Requires a Server Restart</strong></p>
<p>If you want to eliminate this error once and for all then you need to target your server to make the changes. But you should have the permissions to <strong>restart</strong> the server.</p>
<p>If you have this permission then go to the server <strong>installed path</strong> and search for the file <strong>php.ini</strong> file. In this file there will numerous things mentioned. But all you have to do is search for the term &#8220;<strong>memory_limit</strong>&#8220;. Change the value of this variable from 8M to either 16M, 24M, etc as required.</p>
<p><strong>Save</strong> the file and <strong>restart</strong> your server. The error will be resolved once and for all. Good luck!</p>
<h2>Related posts:</h2><ul><li><a href="http://techtracer.com/2008/01/02/wordpress-database-error-table-wp_post2cat-doesnt-exist/" rel="bookmark" title="Permanent Link: Wordpress Database Error &#8211; Table &#8216;wp_post2cat&#8217; doesn&#8217;t exist">Wordpress Database Error &#8211; Table &#8216;wp_post2cat&#8217; doesn&#8217;t exist</a></li><li><a href="http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/" rel="bookmark" title="Permanent Link: Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error">Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error</a></li><li><a href="http://techtracer.com/2006/10/15/microsoft-internet-explorer-7-nothing-special/" rel="bookmark" title="Permanent Link: Microsoft Internet Explorer 7 &#8211; Nothing Special">Microsoft Internet Explorer 7 &#8211; Nothing Special</a></li><li><a href="http://techtracer.com/2007/04/22/bluewhirl-new-wordpress-theme-for-techtracer/" rel="bookmark" title="Permanent Link: BlueWhirl &#8211; new wordpress theme for TechTracer">BlueWhirl &#8211; new wordpress theme for TechTracer</a></li><li><a href="http://techtracer.com/2007/04/10/optimal-use-of-ajax-use-web-20-the-smart-way/" rel="bookmark" title="Permanent Link: Optimal use of Ajax &#8211; use Ajax the smart way">Optimal use of Ajax &#8211; use Ajax the smart way</a></li></ul><br /><a href="http://techtracer.com/">Techtracer.com</a> Copyright &copy; 2008<br /> ]]></content:encoded>
			<wfw:commentRss>http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Java 5 Generics &#8211; Changing for good</title>
		<link>http://techtracer.com/2007/04/04/java-5-generics-changing-for-good/</link>
		<comments>http://techtracer.com/2007/04/04/java-5-generics-changing-for-good/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 17:50:06 +0000</pubDate>
		<dc:creator>nitinpai</dc:creator>
				<category><![CDATA[Issues]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://techtracer.com/2007/04/04/java-5-generics-changing-for-good/</guid>
		<description><![CDATA[I had recently tried some programming in JDK 1.6 which falls in the league of Java 5. The Eclipse environment started behaving strange in someway which I had not expected. The code which was irritating me was the one which included a collection object

List list = new ArrayList&#40;&#41;;
list.add&#40;&#34;someString&#34;&#41;;

The Eclipse IDE flashed a warning beneath the [...]]]></description>
			<content:encoded><![CDATA[<p>I had recently tried some programming in <strong>JDK 1.6</strong> which falls in the league of <strong>Java 5</strong>. The <strong>Eclipse</strong> environment started behaving strange in someway which I had not expected. The code which was irritating me was the one which included a collection object</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">List</span> list <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ArrayList</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
list.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;someString&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The Eclipse IDE flashed a warning beneath the 2nd line of the code.</p>
<blockquote><p> &#8220;Type safety: The method add(Object) belongs to the raw type List. References to generic type List&lt;E&gt; should be parameterized&#8221;</p></blockquote>
<p>I had switched my project preferences to allow compilation of my code with the <strong>Java 5</strong> runtime library. It was not before I came to know that it was the <strong>Java 5</strong> generics in action. The moment I switched it back to <strong>Java 1.4</strong> runtime the warning luckily disappeared.</p>
<p><strong>Java 5</strong> has removed the old technique of having you to cast the collection returned object to predefining the same collection of the type you want to cast. In the above example if I want to indeed include a <em>String</em> object in the <em>List</em> then it is but obvious that I would cast the returned object from the <em>List</em> to <em>String</em> as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">String</span> s <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#41;</span>list.<span style="color: #006633;">iterator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>To avoid this obvious nature of casting while using a collection <strong>Java 5</strong> asks you to parameterize the template you would be using in the collection. So in <strong>Java 5</strong> the code I was trying to accomplish would be as follows,</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">List<span style="color: #339933;">&lt;</span>String<span style="color: #339933;">&gt;</span> list <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayList<span style="color: #339933;">&lt;</span>String<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
list.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;someString&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//and while retrieving</span>
<span style="color: #003399;">String</span> s <span style="color: #339933;">=</span> list<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">iterator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The above code would be much more familiar to C++ programmers who have used <strong>templates</strong>. In case of Java it would be the same as using templates. Java 5 Generics has much more features and lots of new concepts for a clutter free code while using collections.</p>
<h2>Related posts:</h2><ul><li><a href="http://techtracer.com/2007/05/16/looping-through-collections-is-fun-in-java-6/" rel="bookmark" title="Permanent Link: Looping through Collections is fun in Java 5">Looping through Collections is fun in Java 5</a></li><li><a href="http://techtracer.com/2008/11/24/reflection-in-java-simplified/" rel="bookmark" title="Permanent Link: Reflection in Java &#8211; Simplified">Reflection in Java &#8211; Simplified</a></li><li><a href="http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/" rel="bookmark" title="Permanent Link: Convert Date to String and String to Date in Java">Convert Date to String and String to Date in Java</a></li><li><a href="http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/" rel="bookmark" title="Permanent Link: Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error">Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error</a></li><li><a href="http://techtracer.com/2007/07/23/servlet-30-the-journey-begins-now/" rel="bookmark" title="Permanent Link: Servlet 3.0 &#8211; The Journey Begins Now">Servlet 3.0 &#8211; The Journey Begins Now</a></li></ul><br /><a href="http://techtracer.com/">Techtracer.com</a> Copyright &copy; 2008<br /> ]]></content:encoded>
			<wfw:commentRss>http://techtracer.com/2007/04/04/java-5-generics-changing-for-good/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XP Installation &#8211; The 34 minute hiccup</title>
		<link>http://techtracer.com/2007/03/12/xp-installation-the-34-minute-hiccup/</link>
		<comments>http://techtracer.com/2007/03/12/xp-installation-the-34-minute-hiccup/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 16:51:35 +0000</pubDate>
		<dc:creator>nitinpai</dc:creator>
				<category><![CDATA[Issues]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://techtracer.com/2007/03/12/xp-installation-the-34-minute-hiccup/</guid>
		<description><![CDATA[You want to install XP professional and suddenly you realize that it freezes up at the mention of 34 minutes remaining! You try all your efforts to make it running but nothing seems to be working to your dismay. You try checking your RAM, checking for any bad sectors in your hard drive, even your [...]]]></description>
			<content:encoded><![CDATA[<p>You want to install XP professional and suddenly you realize that it freezes up at the mention of 34 minutes remaining! You try all your efforts to make it running but nothing seems to be working to your dismay. You try checking your RAM, checking for any bad sectors in your hard drive, even your motherboard (as I have done) but cannot make a conclusion as to what&#8217;s the answer to your woes.</p>
<p>So what is the solution to the defamed 34 minute XP installation hangup problem?<br />
Its as simple as deleting a simple file which caused the installation to freeze.</p>
<ul>
<li>Let the XP hang up at 34 minutes remaining for the first time</li>
<li>remove the CD from the CDROM and reboot</li>
<li>Dont enter the CD when the installation asks for it, instead open the DOS prompt (Shift + F10)</li>
<li>goto C:/Windows and type setupapi.log, hit enter</li>
<li>The setupapi.log file opens in a notepad</li>
<li>Scroll to the very last few lines in the file and search for the word &#8220;inf&#8221;</li>
<li>You will notice that in the last few moments the installation created a file with the extension &#8220;.inf&#8221; before dying out (in my case it was the faulty modem for which XP created the file mdmcxpt.inf).</li>
<li>It means that the device mentioned in the last few lines is faulty and you have to make the installation skip through it.</li>
<li>Close the notepad and go to the folder C:/windows/inf in command prompt</li>
<li>Browse through the files to find the &#8220;.inf&#8221; which was related to the faulty device.</li>
<li>Straightaway delete the inf file (eg: del mdmcxpt.inf)</li>
<li>now put in the XP installation CD and Continue the installation</li>
</ul>
<p>It will not put in the drivers related to the faulty device and so it wont freeze this time !!</p>
<h2>Related posts:</h2><ul><li><a href="http://techtracer.com/2008/01/13/how-to-install-windows-live-writer/" rel="bookmark" title="Permanent Link: How To Install Windows Live Writer">How To Install Windows Live Writer</a></li><li><a href="http://techtracer.com/2007/07/18/wordpress-error-allowed-memory-size-of-8388608-bytes/" rel="bookmark" title="Permanent Link: Wordpress Error &#8211; &#8220;Allowed memory size of 8388608 bytes&#8221;">Wordpress Error &#8211; &#8220;Allowed memory size of 8388608 bytes&#8221;</a></li><li><a href="http://techtracer.com/2007/10/22/if-microsoft-came-up-with-a-phone/" rel="bookmark" title="Permanent Link: If Microsoft Came Up With A Phone!">If Microsoft Came Up With A Phone!</a></li><li><a href="http://techtracer.com/2008/06/09/3-easy-steps-to-install-mysql-on-windows-xp/" rel="bookmark" title="Permanent Link: 3 Easy Steps to Install MySQL on Windows XP">3 Easy Steps to Install MySQL on Windows XP</a></li><li><a href="http://techtracer.com/2007/10/10/resolving-the-unsupported-majorminor-version-490-error/" rel="bookmark" title="Permanent Link: Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error">Resolving the &#8220;Unsupported major.minor version 49.0&#8243; Error</a></li></ul><br /><a href="http://techtracer.com/">Techtracer.com</a> Copyright &copy; 2008<br /> ]]></content:encoded>
			<wfw:commentRss>http://techtracer.com/2007/03/12/xp-installation-the-34-minute-hiccup/feed/</wfw:commentRss>
		<slash:comments>361</slash:comments>
		</item>
	</channel>
</rss>
