Back to Clear file cache Support

phplee
phplee

im using the latest octobercms and now the plugin is getting an error.

Method StorageClear\Console\StorageClear::handle() does not exist

is this down to the latest octobercms not being compatible?

Alexander Romanov
Alexander Romanov

Hi, phplee!
I can not reproduce this bug in the latest build of OctoberCMS. Make sure that this error is caused by my plugin. Try to disable the plugins that are associated with cleaning the cache or file storage. Also, try to disable the plugins which using any of the artisan console commands.
If the error still occurs, please provide more detailed information:

  • Which of installation method of OctoberCMS did you use (wizard or command-line)?
  • Which version of PHP do you use?
  • Provide please an exception trace from event log (/backend/system/eventlogs).
  • Provide a list of used plugins.
  • Provide your cache config (your_app_dir/config/cache.php).
Kabira Paresh
Kabira Paresh

As per Laravel 5.5 upgrade release, "Any fire methods present on your Artisan commands should be renamed to handle."

Kindly rename "fire" method to "handle".

phplee
phplee

Thanks. i did that and get another error now.

Type error: Argument 1 passed to October\Rain\Database\Pivot::__construct() must be an instance of Illuminate\Database\Eloquent\Model, none given, called in /home/whysupco/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 1482" on line 45 of /.../public_html/vendor/october/rain/src/Database/Pivot.php

Last updated

Alain Martini
Alain Martini

Hello, adding the handle method fixed the problem for me. in StorageClear\Console\StorageClear.php

add the method handle() required from laravel 5.5+

public function handle()
{
    $this->fire();
}

1-5 of 5