Sunday 12 January 2014

Fatal error: Class 'PDO' not found

Drupal Website showing the following error
Fatal error: Class 'PDO' not found in /public_html/drupal/includes/database/
database.inc on line 184

If your server is using the php 5.2 , upgrade the php version to php 5.3 or higher

Or you will have to enable the PDO using the easyapache

Saturday 11 January 2014

How to open the port in the server

 If you want to open an incoming TCP port, type the following in the SSH as root user:
# iptables -I INPUT -p tcp --dport 12345 --syn -j ACCEPT
# service iptables save

 If you want to open an incoming UDP port, type the following in the SSH as root user:
# iptables -I INPUT -p udp --dport 12345 -j ACCEPT
# service iptables save

wp_localize_script was called incorrectly

Website showing the following error: 
Notice: wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /public_html/wp-includes/functions.php on line 3049

Go to wp-config.php and make the following changes and check if it will work

define('WP_DEBUG', true); to define('WP_DEBUG', false);

It is not recommended to use WP_DEBUG or the other debug tools on live sites; they are meant for local testing and staging installs.

Friday 10 January 2014

Can't locate Error.pm in @INC error

Can't locate Error.pm in @INC error in the Quickinstall

In the Quickinstall it shows the following error : 
A fatal error or timeout occurred while processing this directive
 A box should expand giving an error message followed by a traceback. If the error message gives something as following 
Can't locate Error.pm in @INC error ...

Then try executing the following command in the SSH 
# cpan Error.pm

ERR_CONTENT_DECODING_FAILED

If you are getting the error as ERR_CONTENT_DECODING_FAILED while accessing the domain then add the below extension in php.ini  ++++++++...