Pages

Tuesday, April 22, 2014

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>

Monday, February 3, 2014

how to solve AJAX HTTP error 200, when try to manage field display & Views?

This problem usually we face in 3 scenarios for drupal
1. when we update Jquery Update to new version. This scenario we can easily solve it by reverting back to old version.And be cautious, while doing any updates in drupal, try to do it in test environment later try in rela time.
2. When we try to fulfill our requirement by hard coding like adding .js files manually instead of using modules. To solve this, our first step is we need to find by which file adding we are getting this error.So try to remove each js file which you added manually and test at admin side still problem persists or not?(Don't forget to remove cache for each trial). Continue this until problem  solved.
3. Sometimes when we install some new modules also we face this problem, because sometimes the js files which are used in new module may be not adjusted to old module js files. So uninstall newly added module and check again.


Friday, January 24, 2014

how to solve blank pages or "white screen of death" (WSOD) in drupal?

This issue will come generally because of allocation of memory in mysql, to over come this just run the below query in mysql server.

mysql> SET max_allowed_packet = 1024 * 1024 * 512;
 
or
 
mysql> SET global max_allowed_packet=1024 * 1024 * 512;

Tuesday, October 15, 2013

How to solve Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone in Drupal 7?

This issue will come generally because of allocation of memory in mysql, to over come this just run the below query in mysql server.

mysql> SET max_allowed_packet = 1024 * 1024 * 512;
 
 or  
 
mysql> SET global max_allowed_packet=1024 * 1024 * 512; 

Wednesday, May 15, 2013

how to do form validation using php,json?

Download the below code....

https://docs.google.com/file/d/0B_lKxr7C6K3zRHBPWmhHVFUzT1E/edit?usp=sharing

or
<html>
<head>
<title>JQuery Form Validation</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
  $("#form1").validate({
         debug: false,
   rules: {
    name: "required",
    dropdown: "required",
    email: {
     required: true,
     email: true
    }
   },
   messages: {
    name: "Please enter your good name.",
    email: "Please enter your valid email address.",
    dropdown: "Please select option from dropdown list.",
   },
   submitHandler: function(form) {
 
    $.post('nextstep.php', $("#form1").serialize(), function(data) {
     $('#result').html(data);
    });
   }
  });
 });
</script>
<style>
 label.error { width: 250px; display: inline; color: red;}
</style>
</head>
<body>
<form name="form1" id="form1" action="" method="POST">
    <label for="name" id="name_label">Name</label>
    <input type="text" name="name" id="name" size="30" value=""/>
 <br>
    <label for="email" id="email_label">Email</label>
    <input type="text" name="email" id="email" size="30" value=""/>
<br>
 Please Select the City:
<select name="dropdown" id="dropdown">
<option value="">None</option>
<option value="mumbai">Mumbai</option>
<option value="delhi">Delhi</option>
<option value="pune">Pune</option>
</select>
 <br>
 <input type="submit" name="submit" value="Submit">
</form>
<!-- We will output the results from process.php here -->
<div id="result"><div>
</body>
</html>

or
http://www.webreference.com/programming/javascript/jquery/form_validation/index.html

http://www.tutorialswitch.com/web-development/quick-and-simple-ajax-forms-with-json-responses/

Monday, April 1, 2013

How to solve 404 page not found error when SEO urls used or SEO url 404 error?

1. check in admin panel whether you are activated Use SEO URL's to Yes or not.

 Goto admin panel system->settings-> Server

Then check  Use SEO URL's to Yes.