Laravel Runtime Exception generate error message “The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths”

This is an article which is describing an error generated when executing a Laravel framework-based project web application. There are error generated in the Laravel framework-based web application project which is written in an error log saved in the folder ‘storage/logs/laravel.log’.

[XXXX-XX-XX XX:XX:XX] local.ERROR: RuntimeException: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. in /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:43
Stack trace:
#0 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(27): Illuminate\Encryption\Encrypter->__construct('', 'AES-256-CBC')
#1 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Container/Container.php(745): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#2 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Container/Container.php(643): Illuminate\Container\Container->build(Object(Closure), Array)
#3 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\Container\Container->make('encrypter', Array)
#4 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Container/Container.php(863): Illuminate\Foundation\Application->make('encrypter')
#5 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Container/Container.php(818): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#6 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Container/Container.php(787): Illuminate\Container\Container->getDependencies(Array, Array)
#7 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Container/Container.php(643): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#8 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#9 /var/www/html/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(173): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#10 /var/www/html/laravel-project/public/index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#11 {main}  

The error itself is described as follows :

Continue reading “Laravel Runtime Exception generate error message “The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths””

Reset Proxy Connection for Composer

This is an article created to explain several steps takenen to reset the already defined configuration for composer so that it can access directly through HTTP connection without any proxy involved.

As we already knew, below is the steps done which is basically typing certain command in the command line so that the definition of proxy used by composer to connect to the internet is defined clearly. Below is the execution of the command :

user@hostname:~$ export HTTP_PROXY=http://the-address-of-proxy-server:the-port-of-proxy-server

The other command is shown below :

Continue reading “Reset Proxy Connection for Composer”

How to update Composer in Linux

This is an article which is specifically made to show how to update the version of a composer.  The update process described is done in Linux operating system executed as a specific command in a command line interface. The most important thing is to have the composer installed so that obviously it can be updated.

First of all, to update the version of a composer, it is important to check the HTTP connectivity first. To be able to do that, read the article titled ‘Composer Checking HTTP Connectivity’ which can be found in this link.

Continue reading “How to update Composer in Linux”

Composer Checking HTTP Connectivity

Composer is a utility which is mainly used for managing package of a project or application based on PHP programming language.¬† Based on the definition described in Wikipedia, Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. Further information describing about Composer, still in the Wikipedia site, Composer¬† was developed by Nils Adermann and Jordi Boggiano, who continue to manage the project. They began development in April 2011 and first released it on March 1, 2012.[1] Composer is strongly inspired by Node.js’snpm” and Ruby’sbundler“.[3] The project’s dependency solving algorithm started out as a PHP-based port of openSUSE’s libzypp satsolver.[4]

Continue reading “Composer Checking HTTP Connectivity”