Closed andrizan closed 5 years ago
/var/www/html/projectname/vendor/o2system/spl/src/Exceptions/Abstracts/AbstractException.php */ public function __construct($message, $code = 0, array $context = [], \Exception $previous = null) { if (class_exists('O2System\Kernel', false)) { $classInfo = new SplClassInfo($this); $classNameParts = explode('\\', $classInfo->getClass()); $classParameter = strtolower(end($classNameParts)); $classLanguageDirectory = dirname($classInfo->getFileInfo()->getRealPath()) . DIRECTORY_SEPARATOR . 'Languages' . DIRECTORY_SEPARATOR; if (false !== ($exceptionKey = array_search('Exception', $classNameParts)) OR false !== ($exceptionKey = array_search('Exceptions', $classNameParts)) ) { if (isset($classNameParts[ $exceptionKey - 1 ])) { $classParameter = $classNameParts[ $exceptionKey - 1 ]; } } $this->view = strtolower($classParameter . '_' . $this->view); $languageFilename = strtolower($classParameter) . '_' . language()->getDefault() . '.ini'; $languageKey = strtoupper($classParameter . '_exception'); language()->loadFile($classLanguageDirectory . $languageFilename); $this->header = language()->getLine('E_HEADER_' . $languageKey); $this->description = language()->getLine('E_DESCRIPTION_' . $languageKey); $message = language()->getLine($message, $context); } parent::__construct($message, $code, $previous); } // ------------------------------------------------------------------------ /** * AbstractException::getHeader * * Gets exception header. * * @return string */ Arguments "Call to a member function getDefault() on bool"
Ada yang bisa bantu masalah di atas ? Saya menggunakan laravel versi 5.8
Di bawah ini adalah konfigurasi saya
$config['api_key'] = env('RAJAONGKIR_KEY'); $config['account_type'] = env('RAJAONGKIR_ACCOUNT_TYPE','starter'); $rajaongkir = new Rajaongkir($config);
Bisa run composer update seharusnya sudah bisa solved..
Ada yang bisa bantu masalah di atas ? Saya menggunakan laravel versi 5.8
Di bawah ini adalah konfigurasi saya