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

Tag: WordPress 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.

Powered by WordPress & Theme by Anders Norén