Fixing Wordpress Error : All the pages redirecting to the index.php

Wordpress Bug


fix wordpress bug in permalinks
As the title suggests, this is another error/bug you may come across while working with Wordpress. I recently found this error in one of the Wordpress websites and I was confused as I had no idea how it happened. All I could remember was the site was working properly few days / weeks back.  So as usual I checked to see if any newly installed plugins have caused this bug. But I couldn't find a proper solution. So I had to use Google to find any clues as to what might have caused this and I found one question at Stackoverflow. Luckily I found  a good hint there, but nobody had given a proper answer.

Following on that hint, I could solve my problem and I thought I should keep it written in my blog so that someday, somebody may find this  article useful :)  Please read below to understand the issue and how to fix it quickly.

What is the Error?
Well, it is not a kind of error that you may find usually in your wordpress website. But if you got hit, you may go crazy since this error (rather I would call it a bug, or whatever) doesn't stop running your wordpress website or does no harm except it will ruin your user's experience. What it does is, all your pages will be redirected to your homepage. What a disaster, yeah? Your visitors who are coming only to read your content will find a buggy site and leave it quickly without knowing that it is a bug. Besides, who would care about a bug in someone else's website? They will go to another one because there are plenty of websites delivering the same kind of information.

How to Identify the Error?
Check your website in regular time periods to know that it is working properly. (Open few common links and make sure that they open the correct page.). I am not saying you may definitely get this bug in your wordpress website, but who knows? 

What is the reason?
As I mentioned above, I still have no idea to confirm what exactly caused this bug. But most probably, it might be due to a malfunctioning plugin or a bug in your template. I am confident that this bug is not coming bundled with the Wordpress original download package. That is why you find this bug in your website after few weeks or months after the installation.




How to Fix this?
Here comes the most useful and the easiest part of this article :)

Whatever the reason it would be, you can fix this bug in less than 30 seconds.

Step 01 :
Log into your Wordpress admin area.
Step 02 : Hover your mouse over “Settings” in your admin dashboard menu bar.

worpdress permalinks bug

Step 03 : Click on “Permalinks” from the menu appeared after step 02.
Step 04 : Now, you will see the Permalinks options page, “Do not change anything”. Just Click on the “Save Changes” button.

worpdress template bug redirect to home page

Step 05 : Check whether your site is working fine now.


Additional Steps (Optional)
Step 06 :
If the above solution didn't work for you, leave a comment here. Sometimes we can discuss further.

OR


If it worked for you, as a way of showing you liked that, leave a comment here :)

That's it....you have fixed your Wordpress website's annoying Bug in less than 30 seconds...Just a click of a button. But you know? I had to dig much deeper in Google's search results to find this solution. If you think this will be useful to your friends you can share it over social network sites like Google+, Facebook or Twitter.

SEO has changed so much over the last few years. They need a lot of shares over social networks...That is why people say sharing is caring :)

Wordpress Bug, Wordpress pages redirecting to index.php, Wordpress Hack, Wordpress Permalink error, Wordpress Error, Wordpress not showing correct page, wordpress permalinks not working

Joomla Datepicker : How to insert in components

Joomla Datepicker


joomla datepickerJoomla is a popular Content Management System which helps people to develop websites easily without the need of learning web development languages like html, css, php etc. Anybody who is having a basic understanding of using web based softwares can create and maintain a website using joomla as it is already equipped with many modules and components, backed and developed by its open source community. Joomla is Free, Open Source and more than everything, it is easy to use. Joomla was the most popular and the most used CMS for websites few years ago. The usage of Joomla was slightly gone down over the time with the growth of another elegant Open Source CMS, called “Wordpress”. Many web developers preferred Wordpress over the Joomla as it was simpler to use. But Joomla is still being used by many web developers and webmasters to create websites as it has more features than in Wordpress. In this article, I am going to show you how to insert a datepicker in your custom developed Joomla Component or a Module.

Joomla has its own datepicker built within the Joomla framework for you to use in your components. To insert the datepicker simply put the following code.

<?php
JHTML
::_('behavior.calendar');
?>


Then wherever you want to include the datepicker, you can call the following function

<?php 
echo JHtml::calendar('date''%Y-%m-%d');
?>


This will generate a datepicker textbox as below;



So that is how to insert a datepicker within your custom Joomla component or Module. See how easy it is. You can use this datepicker for any kind of a component related to the time and date. For an example, if you are developing a Hotel Reservation Component, you can simply integrate this datepicker for a availability checker or a check-in date selector. One thing I am not happy about this datepicker is that it is not that much beautiful. It will definitely not go with a modern template, so you will have to use some third party datepicker plugin for sure ;) This will be useful if you are not concerned much about the design of the datepicker. Anyway, the scope of this article was only to show the way of adding the built in Joomla datepicker in your custom components. The decision to use it or not will be always up to you :)

Please leave a comment if this post was useful to you.