know how to fix common errors in wordpress theme development

6
How to fix common errors in WordPress Theme Development If you are a WordPress beginner & having habit of making your hands dirty. Here are some common errors which can make you panic. The WordPress is not all about installing plugin & installing new themes, but it is more than that. Wordpress theme development has vast scope. Before you stuck off in any panic situation, you should have your complete website backup on your computer. You can use Backup Buddy for taking website's back up. What to do when you forgot Admin Password and Email Retrieval is not functioning? Release mind pressure & stay calm: First off all you have to release your mind pressure that you have forgot your password and then follow these instructions.

Upload: rising-world-technologies

Post on 06-Aug-2015

14 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Know how to fix common errors in wordpress theme development

How to fix common errors in WordPressTheme Development

If you are a WordPress beginner & having habit of making your hands dirty. Here are somecommon errors which can make you panic.

The WordPress is not all about installing plugin & installing new themes, but it is more thanthat. Wordpress theme development has vast scope. Before you stuck off in any panicsituation, you should have your complete website backup on your computer. You can useBackup Buddy for taking website's back up.

What to do when you forgot Admin Password and Email Retrieval is not functioning?Release mind pressure & stay calm:

First off all you have to release your mind pressure that you have forgot your password and then follow these instructions.

Page 2: Know how to fix common errors in wordpress theme development

Follow these steps: 1. Login to your FTP account2. Go to wp-content>themes>(active theme), then download the functions.php file

3. Open functions.php file with Notepad Editor++ or you can edit it online in cpanel. Below the first </php:

Write code: wp_set_password('NewPassword', 1);

Replace "NewPassword" with your desired new password. "1" here is the user ID number in wp-users table

4. Upload the edited file on server5. Once you are logged in, then remove the upper code from functions.php file

Page 3: Know how to fix common errors in wordpress theme development

And you’re done.

What to do when Admin Dashboard is displaying without css or not displaying properly?

Check:

Just have a look that whether you are behind Internet Proxy Connection or Firewall. Some of these tools might be blocking your css from being uploaded. Clear cache & cookies of browser and then press CTRL+F5.

What to do when warning message shows cannot modify header information?Problem:

Sometimes you receive an error message "Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34)" after upgrading your wordpress version.

Here is the Idea:

Remove all spaces, new lines from the code in wp-config.php

Follow Steps to do it better:

1. First of all, download wp-config.php file2. Remove all spaces before<?php

Page 4: Know how to fix common errors in wordpress theme development

3. Make sure the first characters are <?php, placed at the first line with no space in between

4. Remove all empty spaces after “?>”

This error can be occurred on other files too. So, be sure you have to check all files.

What to do in case of fatal error: Allocated Memory Size Exhausted? This is the normal error that comes sometime when you try to upload an image of high filesize. To solve this error, it is required to increase memory allocated to php. You can increaseit up to 32MB, 64MB, 128MB depending upon host.

Try:

1. Make Edition PHP.iniEdit your PHP.ini file. Update your memory limit in PHP.ini by making changes in thebelow code:memory_limit = 64M; Maximum amount of memory a script may consume (64MB)

2. Make Editions in .htaccess fileAdd below code to your wp-config.php file:php_value memory_limit 64M

3. Make editions in wp-config.php fileAdd below code to wp-config.php file:Increasing memory allocated to PHPdefine('WP_MEMORY_LIMIT', '64M');

4. Create new PHP.ini file(a) Open Notepad(b) Insert below code in Notepad

Page 5: Know how to fix common errors in wordpress theme development

memory_limit = 64M ;(c) Save as “PHP.ini”(d) Upload this file in “wp-admin”, and you are done

How to fix error: Can’t delete plugin?Sometimes we are not able to delete plugin in WordPress admin. If the plugin is deleted from FTP, then also sometimes it appears in dashboard.

Try this:If you have SSH access, try logging in from SSH.

1. Login your website via SSH2. Use commands to reach "../wp-content/plugins/"

Page 6: Know how to fix common errors in wordpress theme development

3. Use ls -al to see the full list of folders 4. Delete the particular plugin folder with rm (Folder Name)

Want to add more to these wordpress tips? Mention comments that will really help us.

Source: Rising World Technologies