/config/cron.yml
Code: Select all
cron.task.core.tidy_search:
class: phpbb\cron\task\core\tidy_search
arguments:
- %core.root_path%
- %core.php_ext%
- @auth
- @config
- @dbal.conn
- @user
Code: Select all
- @dispatcher
/phpbb/cron/task/core/tidy_search.php
Code: Select all
public function __construct($phpbb_root_path, $php_ext, \phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user)
Code: Select all
public function __construct($phpbb_root_path, $php_ext, \phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, \phpbb\event\dispatcher_interface $phpbb_dispatcher)
Code: Select all
$this->user = $user;
Code: Select all
$this->phpbb_dispatcher = $phpbb_dispatcher;
Code: Select all
$search = new $search_type($error, $this->phpbb_root_path, $this->php_ext, $this->auth, $this->config, $this->db, $this->user);
Code: Select all
$search = new $search_type($error, $this->phpbb_root_path, $this->php_ext, $this->auth, $this->config, $this->db, $this->user, $this->phpbb_dispatcher);
Code: Select all
Catchable fatal error: Argument 7 passed to phpbb\cron\task\core\tidy_search::__construct() must implement interface phpbb\event\dispatcher_interface, none given, called in /customers/0/e/a/arcadeplaats.be/httpd.www/cache/container_dotslash.php on line 2226 and defined in /customers/0/e/a/arcadeplaats.be/httpd.www/phpbb/cron/task/core/tidy_search.php on line 40
You can clear the cache in FTP, the 'cache' folderFredQ wrote:Thanks for the tip, that fixed the issue while waiting for 3.1.6
Just a small comment: don't do like me and clear the cache right before uploading the new files, otherwise you will be stuck on a blank page not being able to access the "clear cache" button