WordPress Themes, Plugins, Tutorials, Tips And More...

Tag: Error

Fixing The Syntax Error In WordPress

Syntax Error

It is pretty much common that a user end up in seeing syntax error in WordPress, but what more dazzled them is by their quick way of taking the decision on using a different theme and get this error solved. But, please wait a minute as if I tell you that this error is not because of the theme you are using but it is because of the plugins you installed (sometimes recent plugin addition also the cause of bringing syntax error).

It is very easy to fix syntax error in WordPress, without having to switch to any other theme. In order to solve it, you need to access to the WP-Content, where your theme files are saved. Once you are in your theme files, you will notice a huge pile of codes. Well, you are getting syntax error because of one such mix and match code. You have to find out what line and where exactly the error comes.

Now, once you found the particular code which is behind the error, you got two options – either to remove the code which you added lastly (in most of the cases) or write the code in correct syntax. Once you done by either removing or editing the code, save the file and upload it back to your server. Refresh the page now and you will see your site working.

Instructions To Follow (In Steps)

  1. Syntax error usually is because of the recently added plugins.
  2. Access your WP-Content, where your theme files are saved.
  3. You have to find the file in which the error will be.
  4. Once you got that file, you have two options available – either remove the code or edit the code and write the correct syntax
  5. Once you are done save the file and upload it back to your server.
  6. Refresh the page and you will see your site working completely fine.

Photo Credit: Flickr/Alex Hopkinson

Note: Like the post, then make sure you do follow and like us on both Twitter and Facebook.

How To Fix WordPress 404 Errors

404 Error

WordPress is a powerful content management system in which sometimes even a small tweak will result in making your website inaccessible. The one reason for such a scenario is 404 errors which are generated by your server when a requested URL is not found. Since WordPress creates a rewrite array which is responsible for managing permalinks, it will result in creating improper permalinks structure. This will leads to either breaking or corrupting of permalink array, thus causing 404 errors.

Fixing 404 Errors

  • Resent the permalink array by going to WP-Admin > Permalinks tab and simply re-save the permalink structure.
  • Navigate to: WordPress Dashboard → Settings → Permalinks: Click “Save Changes”
  • Now Test your URL.
  • If the 404 goes away, it means the issue has been resolved.

Using Plugin: DebugThis

  • If this did not work or you are still seeing 404s, try disabling plugins which handle redirection or create customized permalinks.
  • Now, use a debugger to view the rewrite array and confirm which rewrite rule is actually responsible for processing all your URLs.
  • This can be done by installing the plugin DebugThis, which eases the job for you.
  • Once this plugin is installed and activated, go to your site. Then navigate to Homepage → Admin Bar → DebugThis → Query → Rewrites.
  • If this process too also does not work for you, then your site must be the victim of some another problem.
  • You now have to start by deactivating plugins one by one to see if you can find the conflicting PHP responsible for the issue.

Photo Credit: Flickr/Marc Dubois

Note: Like the post, then make sure you do follow and like us on both Twitter and Facebook.

Fixing Internal Server Error In WordPress

Error

You might have been using and play around the WordPress for now a quite longer time and in that, you do experienced the HTTP 500 Internal Server Error many times. What is that? A fate or something else, some common distraction which stops you on to playing around over the web.

Not only this but getting an Internal Server Error in WordPress is one of the common things for which you need not to panicked at all, as its not only you but hundreds of thousands of people experience the same almost every day.

Suggested Readings:

Well, to help you solve this common problem completely, let’s together fix it out. In this tutorial, we will show you in a detailed manner on how you can fix the internal server error in WordPress while also if even after reading the whole, some problem still persist, just either drop down a comment below or contact us via our contact form.

Possibility 1: PHP Memory Limit

If you are exhausting your PHP memory limit, then there is possibility that this error comes in front of you. To have this issue resolve, all you require is to increase the PHP memory limit which can be done by following the steps below:

  • Create a blank text file called php.ini
  • Paste this code in there: memory=64MB
  • Save the file
  • Upload it into your /wp-admin/ folder using FTP

If increases the memory limit fix your problem, then it would be nothing but temporarily problem. The reason why problem get sorted out with increasing the memory limit because sometimes whole of your server get exhausted because of poorly coded plugin or even sometimes via theme function which leads to the issue.

Overall, recommended here is that you do contact your WordPress web hosting company and ask them to share server logs with you as with this way it helps you find the perfect place from where the whole this problem started.

Possibility 2: Corrupt .htaccess File

The problem possibly also because of some corrupted .htaccess file. Its better you sort this out by renaming your main .htaccess file to say something like .htaccess_old. You need to login to your site’s FTP to rename the .htaccess file. Once you are in, you will find that your .htaccess file will be located in the same directory.

Once done, try re-loading it to your site and check if it solved the issue. If it did, then your problem gets solved. Make sure before moving further, you do go to the Settings >> Permalinks and click the save button which in turn will generate a new .htaccess file to you with proper rewrite rules so as to confirm that the post pages don’t return a 404 error.

Possibility 3: Plugins

Sometimes plugins are also the core of such problem, in that case, you need to start by first deactivating all the plugins installed and then slowly and carefully activate all the plugins one-by-one.

Doing this will let you know that which plugin is behind the mess and causing the error to you. Once you reactivated all plugins with one at a time. Remove the plugin which is created the problem for you and make sure to report the error to the plugin author.

Possibility 4: Core Files

If nothing works till now for you, then it’s worth a shot on re-uploading your website’s WP-admin and WP-includes folder from a whole new WordPress install. Don’t worry your information will not get deleted, but higher chances are there that it will solve your issue.

Possibility 5: Nothing Works, Ask Your Hosting Provider

This is one best thing to do at end, if you still in the middle of nowhere. Drop a support request to your hosting provider and ask them to look at your server’s logs or even mail you the copy of that, they should get to the problem more fastly than you think of it.

Photo Credit: Flickr/Olga Berrios 

Note: Like the post, then make sure you do follow and like us on both Twitter and Facebook.

Powered by WordPress & Theme by Anders Norén