Saturday, 12 December 2015

Rejoin hjsplit files on Mac OSX, linux and bsd

open the terminal and just run the cat command

cat yourfile.extension.001 yourfile.extension.02 yourfile.extension.00X > yourfile.extension

Friday, 4 December 2015

[FIX] OPENCART - Call to a member function getFirstName() on a non-object

The error
Call to a member function getFirstName() on a non-object

could appear if there's something wrong in your admin configuration file.

Follows a sample configuration file for the admin area

define('HTTP_SERVER', '');
define('HTTP_CATALOG', '');

define('HTTPS_SERVER', '');
define('HTTPS_CATALOG', '');

// DIR
define('DIR_APPLICATION', '/var/www/vhosts/');
define('DIR_SYSTEM', '/var/www/vhosts/');
define('DIR_LANGUAGE', '/var/www/vhosts/');
define('DIR_TEMPLATE', '/var/www/vhosts/');
define('DIR_CONFIG', '/var/www/vhosts/');
define('DIR_IMAGE', '/var/www/vhosts/');
define('DIR_CACHE', '/var/www/vhosts/');
define('DIR_DOWNLOAD', '/var/www/vhosts/');
define('DIR_UPLOAD', '/var/www/vhosts/');
define('DIR_LOGS', '/var/www/vhosts/');
define('DIR_MODIFICATION', '/var/www/vhosts/');
define('DIR_CATALOG', '/var/www/vhosts/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'usert');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'db_example');
define('DB_PREFIX', 'oc_');