Cloud Guru Online

We simplify everything!

Prestashop-Restoration issues

Whenever you had to restore a Prestashop website from backup, there are chances that you face the below error in the front end.

Fatal error: Uncaught Error: Class ‘Doctrine\Common\Cache\ArrayCache’ not found in /home/******/public_html/******/src/Adapter/ContainerBuilder.php:199

In such situations,

  • Install a fresh PS on a subfolder (make sure the version is almost close to the one you have now)
  • Rsync the following folders (or get those from https://prestashop.com/versions/)
    • cache
    • classes/cache
    • vendor/doctrine/cache
    • vendor/psr/cache
  • Remove the cache files from var/cache/prod and var/cache/dev

cPanel new feature “Manage Team”


cPanel now provides “Manage Team” feature in version 112.This allows the creation of team user accounts, allowing several people to access, manage, and work on a single cPanel account without putting their credentials at risk.

cPanel account owner can use “Manage Team” to enable developers and administrators to manage their company’s websites. Each team member will have own logins to access cPanel resources. This allows for the separation of works and offers an audit trail for all accounts.


More details in cPanel official docs:
https://docs.cpanel.net/cpanel/preferences/manage-team

Debugging WordPress

Add following to the wp-config.php file to enable debug mode in detail.

define( ‘WP_DEBUG_LOG’, true );
define( ‘SCRIPT_DEBUG’, true );
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );

WP CLI tips

Install WordPress CLI

As a root user, run below commands:

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp

Then log in as cPanel user and you can do the below tasks:

Create WordPress admin user

wp user create username email --role=administrator