0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

基礎的エラーだった [ Warning ]: array_merge(): Argument #2 is not an array COREPATH/classes/asset.php @ line 116

Posted at

Warning!

Fuel\Core\PhpErrorException [ Warning ]:
array_merge(): Argument #2 is not an array
COREPATH/classes/asset.php @ line 116

111 {
112 \Errorhandler::notice('Asset with this name exists already, cannot be overwritten.');
113 return $exists;
114 }
115
116 static::$_instances[$name] = new \Asset_Instance(array_merge(static::$default_config, \Config::get('asset'), $config));
117
118 if ($name == 'default')
119 {
120 static::$_instance = static::$_instances[$name];
121 }


このエラーは「第二引数が配列で返ってきていないよ」という文。

##原因

URLで指定したアクション先にコントローラーの記述を書いていなかったため。
(誤って本来viewディレクトリ内で書くべきのHTMLをアクション先のディレクトリ内に記述していたという凡ミス)

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?