Skip to main content

Posts

Showing posts from 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 <?php // HTTP define('HTTP_SERVER', 'http://www.example.it/admin/'); define('HTTP_CATALOG', 'http://www.example.it/'); // HTTPS define('HTTPS_SERVER', 'http://www.example.it/admin/'); define('HTTPS_CATALOG', 'http://www.example.it/'); // DIR define('DIR_APPLICATION', '/var/www/vhosts/example.it/httpdocs/admin/'); define('DIR_SYSTEM', '/var/www/vhosts/example.it/httpdocs/system/'); define('DIR_LANGUAGE', '/var/www/vhosts/example.it/httpdocs/admin/language/'); define('DIR_TEMPLATE', '/var/www/vhosts/example.it/httpdocs/admin/view/template/'); define('DIR_CONFIG', '/var/www/vhosts/example.it/httpdocs/system/config/'); define('DIR_IMAGE