Charles

Charles blog

Creational Patterns Abstract Factory Pattern: Create instances of classes belonging to different families Builder Pattern: Separate representation and object construction Factory Method Pattern: Create instances of derived classes Prototype Pattern: Clone or copy initialized instances Singleton Pattern: Class with only one single possible instance Structural Patterns Adapter Pattern: Match interfaces of classes with different interfaces   Read More …

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at This kind of issue because of the SMTP Mail Authentication. In this case we need to turn on (Access for less secure apps) in the gmail account. Need to do the following   Read More …

Sometime the Windows blocks the DLL. if anyone encounter like the following error. Then unblock that particular DLL. ‘Could not load file or assembly ‘FreeTextBox, Version=3.3.1.12354, Culture=neutral, PublicKeyToken=5962a4e684a48b87′ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)’ Just do the following steps to unblock the DLL. ->Right Click on the DLL   Read More …

The server’s system package manager, ‘YUM’, failed : Error with easyapache. We should do the following command for resolve the ‘YUM’, failed $ rm -f /var/lib/rpm/__db.* $ rpm -vv –rebuilddb $ yum update

“Unknown collation: ‘utf8mb4_unicode_ci’” It happened mostly migrate a WordPress site. Mysql database issue import lower version to higher version. If we have this kind of issue, we should follow these steps. When we Export database, We should select Custom when choosing Export Method. Select MYSQL40 from the dropdown for the Database system or older MySQL   Read More …

Not found issue in opencart All inner pages are not found after Migration Open Cart Need to check the .htaccess file and replace the following code in .htaccess file. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Admin menu not working on Magento 2.X. In this case Go to root directory -> pub -> static and remove static folder and then remove var/cache. Finally Run the following Command in shell or SSH or Terminal and etc.. php bin/magento setup:static-content:deploy

Add the following hook in function.php for display short description in woocommerce product listing page. add_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_single_excerpt’, 10);

Add the following hook in function.php for reorder the image and title in woocommerce product listing remove_action( ‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10 ); add_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10 );

How to delete facebook account permanently You can delete your facebook account permanently by the following link. https://www.facebook.com/help/delete_account