Skip to main content

[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', '/var/www/vhosts/example.it/httpdocs/image/');
define('DIR_CACHE', '/var/www/vhosts/example.it/httpdocs/system/cache/');
define('DIR_DOWNLOAD', '/var/www/vhosts/example.it/httpdocs/system/download/');
define('DIR_UPLOAD', '/var/www/vhosts/example.it/httpdocs/system/upload/');
define('DIR_LOGS', '/var/www/vhosts/example.it/httpdocs/system/logs/');
define('DIR_MODIFICATION', '/var/www/vhosts/example.it/httpdocs/system/modification/');
define('DIR_CATALOG', '/var/www/vhosts/example.it/httpdocs/catalog/');

// 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_');

Comments

Popular posts from this blog

Moodle 3.8.1+ - path leak via errors in several files

Moodle 3.8.1+ ----------------------------------------------- File: admin/mailout-debugger.php #!/usr/bin/php Notice : Disabled. in \admin\mailout-debugger.php on line 73 File: admin/settings/appearance.php Notice : Undefined variable: hassiteconfig in \admin\settings\appearance.php on line 10 Fatal error : Uncaught Error: Call to undefined function has_any_capability() in \admin\settings\appearance.php:10 Stack trace: #0 {main} thrown in \admin\settings\appearance.php on line 10 File: admin/settings/badges.php Notice : Undefined variable: hassiteconfig in \admin\settings\badges.php on line 30 Fatal error : Uncaught Error: Call to undefined function has_any_capability() in \admin\settings\badges.php:30 Stack trace: #0 {main} thrown in \admin\settings\badges.php on line 30 File: admin/settings/courses.php Notice : Undefined variable: hassiteconfig in \admin\settings\courses.php on line 32 Fatal error : Uncaught Error: Call to undefined function

2022 - Remove (the too many) Ads from Memu launcher

Simple method Download from pureapk "MEmu Launcher2" ex: MEmu Launcher2_v6.0.9_apkpure.com Install "System app remover" (root) remove from system apps the "memu launcher 2" import the "purified" MEmu Launcher2 apk with the Memu utility ("apk" on the right toolbar) Longer method Install "Export Apk" Export the memu launcher2  Install purify https://github.com/echo-devim/purify/raw/master/Purify.apk use purify with the exported memu launcher 2 Install "System app remover" (root) remove from system apps the "memu launcher 2" import the "purified" MEmu Launcher2 apk with the Memu utility ("apk" on the right toolbar)      

[FIX] cyberpunk skip dialogue disappeared - pc Y button

  open C:\Games\Cyberpunk 2077\r6\config\inputUserMappings.xml with a text editor (ex. notepad++)   find   <mapping name="SceneFastForward_Button" type="Button" > ... </mapping> example (my non working settings)     <mapping name="SceneFastForward_Button" type="Button" >         <button id="IK_Pad_DigitLeft" />         <button id="IK_Y" overridableUI="fastForward" />     </mapping> and REPLACE it with the following:     <mapping name="SceneFastForward_Button" type="Button" >         <button id="IK_Pad_B_CIRCLE" />         <button id="IK_C" overridableUI="fastForward"/>     </mapping> thanks to the vanilla xml files on nexus mods as the original source.