Pages

Tuesday, April 22, 2014

How to Solve White Screen Death problem in wordpress?

To solve the issue we need to first find out where is the problem. For this add the below code in wp-config.php file.

error_reporting(E_ALL);
ini_set('display_errors', 1);

By this you will easily find where is the code error and do the necessary changes and problem maximum get resolves.

How to solve Fatal error: Internal Zend error - Missing class information for in /server/mywebsite/wp-content/plugins/wp-super-cache/wp-cache-base.php on line 5 in wordpress?

To Solve this, just comment the below code in wp-cache-base.php file.

/*if (!class_exists('CacheMeta')) {
    class CacheMeta {
        var $dynamic = false;
        var $headers = array();
        var $uri = '';
        var $post = 0;
    }
}*/

Wednesday, April 2, 2014

How to solve 404 (Page Not Found) Error in wordpress when i moved the code to windows server?

To solve this, need to follow below steps.

1. Change the .htaccess file as per the code folder path..


# BEGIN WordPress
<IfModule mod_rewrite.so>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

2. If its not worked create a web.config file copy the below code and upload into root folder of the project.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
            <rule name="wordpress" patternSyntax="Wildcard">
                <match url="*"/>
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                    </conditions>
                <action type="Rewrite" url="index.php"/>
            </rule></rules>
    </rewrite>
  </system.webServer>
</configuration>