SHARE
TWEET

Untitled

a guest Oct 13th, 2019 88 in 9 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PHP Fatal Error – yii\base\ErrorException
  2. Call to a member function hasErrors() on null
  3. 1. in /var/www/sibzoloto/data/www/yii2/views/cabinet/profile_index.phpat line 12
  4. 3456789101112131415161718192021                        <?php
  5.     use alente\adminbase\helpers\FormHelper;
  6.     use yii\widgets\Pjax;
  7.     $model = $user;
  8.     Pjax::begin(['id' => $id . '-pjax', 'enablePushState' => false])?>
  9.     <form method="post" action="<?=Yii::$app->request->url?>" class="profile-form mb-10">
  10.         <?=FormHelper::csrf()?>
  11.         <div class="row">
  12.             <div class="col-md-6">
  13.                 <div class="form-group mb-2 <?php if($model->hasErrors('second_name')) { echo "form-group-error"; } ?>">
  14.                     <?=FormHelper::label($model, 'second_name')?>
  15.                     <?=FormHelper::input($model, 'second_name', 'text', ['class' => 'form-control'])?>
  16.                 </div>
  17.             </div>
  18.             <div class="col-md-6">
  19.                 <div class="form-group mb-2 <?php if($model->hasErrors('first_name')) { echo "form-group-error"; } ?>">
  20.                     <?=FormHelper::label($model, 'first_name')?>
  21.                     <?=FormHelper::input($model, 'first_name', 'text', ['class' => 'form-control'])?>
  22.                 </div>
  23.                
  24. 2. yii\base\ErrorHandler::handleFatalError()
  25. $_COOKIE = [
  26.     'site_params' => '3ec62a14545ea06e503644768c81b2c251368be0b776892ed8c14002daeec82ea:2:{i:0;s:11:"site_params";i:1;s:2:"[]";}',
  27.     '_csrf' => '3445f33ae63c890cf540010af5cf516b1acb1a9008ee1da8f69a91d79448717ea:2:{i:0;s:5:"_csrf";i:1;s:32:"lHCLj5qUDiygoGM57KWWmHBqQjy8v2GA";}',
  28. ];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top