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 it suggested and the dashboard came into picture as usual. All till this point seemed fine, until I did the following things:
- Tried to add a new category
- Tried to edit a post
- Tried to comment from the blog post page
When I tried to do the above things I was shown a big fat error message which cried out,
WordPress database error: [Table ‘wordpress.wp_post2cat’ doesn’t exist]
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 = ‘publish’ GROUP BY cat_ID
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 Read the rest of this entry »
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,
Unsupported major.minor version 49.0
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:
- Check you java version by running the command java – version
- Check your environment variable JAVA_HOME and the path associated with it
- Check your server installation if it was installed on an older version
- Check which path exists in the environment entries
These are the quick tips you would need to do in order to get rid of the error. Sometimes Read the rest of this entry »
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 days before so I thought the best way to get knowledge for Spring would be to get working quickly with an IDE.
I had NetBeans 5.5 with Sun Application Server prior to downloading Eclipse Europa. NetBeans was very amazing from the very beginning when I started with it. But since the enterprises here, use Eclipse as their de facto 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 WTP 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.
I had already configured Eclipse Europa to work with the Sun Application server earlier and I had the spring framework api’s with me so it was only a few moments from getting a head start. I created a dynamic web project in Europa making it compatible for running in Sun App Server and made a simple Controller and a view page in JSP, the minimal requirement from a Spring MVC tutorial. The configuration files were made and then I thought of running the project.
As I ran the project the error I got was, Read the rest of this entry »
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 the size of the data than its maximum alloted size. Remember that there is nothing wrong with the WordPress installation. Its the matter of the amount of data that the server can process at one time.
Don’t be scared, you can get it resolved in a matter of seconds. There are two ways of resolving this error.
Method #1 : Without Restarting the Server
If the error mentioned appears during the importing, what you need to do is get access to the source code of the WordPress where you have done the installation.
Once you get the access you will need to modify two files . They are: Read the rest of this entry »
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();
The Eclipse IDE flashed a warning beneath the 2nd line of the code.
“Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized”
Read the rest of this entry »
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’s the answer to your woes.
So what is the solution to the defamed 34 minute XP installation hangup problem?
Its as simple as deleting a simple file which caused the installation to freeze. Read the rest of this entry »