0

I created a console controller named beanstalk, this is my first time using the console controllers, am trying to run it from the terminal and i got these errors

Error: Getting unknown property: yii\console\Application::user
Error: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/apc.so'...

The Controller

class BeanstalkController extends \yii\console\Controller {

public function actionIndex() {
    echo 'test console controller';
} }

and i am calling it using

php yii beanstalk 

i also tried other actions names with no luck

here is my console config

return [
'id' => 'app-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'console\controllers',
'modules' => [],
'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'yii\log\FileTarget',
                'levels' => ['error', 'warning'],
            ],
        ],
    ]
],
'params' => $params,

];

can anyone help?

tereško
  • 58,060
  • 25
  • 98
  • 150
Tariq Albajjali
  • 327
  • 1
  • 6
  • 16
  • 1
    1st fix your PHP system errors : 'Unable to load dynamic library .. apc' after that you can ask for other problems :) – Svetoslav Dec 07 '15 at 14:09
  • am on it btw, i assume that you'll have a solution if i got my system error done ? please don't show off if you don't have the answer :) thank you – Tariq Albajjali Dec 07 '15 at 14:14
  • Its not correct to have PHP system errors and to search for help related to logical problems, because its very possible that they are related to your system issues. – Svetoslav Dec 07 '15 at 14:25
  • You could have said this first time :), i solved the cache error for now but still getting the first one, weird! – Tariq Albajjali Dec 07 '15 at 14:27

0 Answers0