Advertisement
ursdineshr

PHP Compile Error – yiibaseErrorException

Nov 5th, 2014
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.30 KB | None | 0 0
  1. PHP Compile Error – yii\base\ErrorException
  2.  
  3. Declaration of app\models\Review::getRelation() must be compatible with yii\db\ActiveRecordInterface::getRelation($name, $throwException = true)
  4.  
  5. 1. in D:\xampp\htdocs\Basic-RC\models\Review.php at line 28
  6. 19202122232425262728293031323334353637 * @property string $org_contact_email
  7.  * @property string $org_contact_msg
  8.  *
  9.  * @property Answer[] $answers
  10.  * @property Reviewer $reviewer
  11.  * @property Organization $organization
  12.  * @property Relation $relation
  13.  */
  14. class Review extends \yii\db\ActiveRecord
  15. {
  16.     /**
  17.      * @inheritdoc
  18.      */
  19.     public static function tableName()
  20.     {
  21.         return 'review';
  22.     }
  23.  
  24.     /**
  25. 2. yii\base\ErrorHandler::handleFatalError()
  26. $_GET = [
  27.     'r' => 'gii/default/view',
  28.     'id' => 'crud',
  29. ];
  30.  
  31. $_POST = [
  32.     '_csrf' => 'MmJ3NHY3SGN8UTJtQnN9PAVRJGc3YT4sBAgaRw4OJTxgCAAZMwd9Fw==',
  33.     'Generator' => [
  34.         'modelClass' => 'app\\models\\Review',
  35.         'searchModelClass' => 'app\\models\\ReviewSearch',
  36.         'controllerClass' => 'app\\controllers\\ReviewController',
  37.         'baseControllerClass' => 'yii\\web\\Controller',
  38.         'moduleID' => '',
  39.         'indexWidgetType' => 'grid',
  40.         'enableI18N' => '0',
  41.         'messageCategory' => 'app',
  42.         'template' => 'default',
  43.     ],
  44.     'preview' => '',
  45. ];
  46.  
  47. $_SERVER = [
  48.     'MIBDIRS' => '/xampp/php/extras/mibs',
  49.     'MYSQL_HOME' => '\\xampp\\mysql\\bin',
  50.     'OPENSSL_CONF' => '/xampp/apache/bin/openssl.cnf',
  51.     'PHP_PEAR_SYSCONF_DIR' => '\\xampp\\php',
  52.     'PHPRC' => '\\xampp\\php',
  53.     'TMP' => '\\xampp\\tmp',
  54.     'HTTP_HOST' => 'localhost',
  55.     'HTTP_CONNECTION' => 'keep-alive',
  56.     'CONTENT_LENGTH' => '465',
  57.     'HTTP_CACHE_CONTROL' => 'max-age=0',
  58.     'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  59.    'HTTP_ORIGIN' => 'http://localhost',
  60.     'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36',
  61.     'CONTENT_TYPE' => 'application/x-www-form-urlencoded',
  62.     'HTTP_REFERER' => 'http://localhost/Basic-RC/web/index.php?r=gii%2Fdefault%2Fview&id=crud',
  63.     'HTTP_ACCEPT_ENCODING' => 'gzip,deflate',
  64.     'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.8',
  65.     'HTTP_COOKIE' => '_csrf=3fca09129fd8e22c6a4bb0b0da8ebdfaca28cb2901fb466ca10e740b8322e008s%3A32%3A%22N3EY4D5_73SSAVvO6jmsx9m_Rjw-E05t%22%3B; PHPSESSID=ml50iomrscc82noav31g2uuaj0',
  66.     'PATH' => 'C:\\Program Files (x86)\\ActiveState Komodo Edit 5\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files\\TortoiseSVN\\bin;D:\\xampp\\php;C:\\Users\\dinesh\\AppData\\Local\\ComposerSetup\\bin',
  67.     'SystemRoot' => 'C:\\Windows',
  68.     'COMSPEC' => 'C:\\Windows\\system32\\cmd.exe',
  69.     'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
  70.     'WINDIR' => 'C:\\Windows',
  71.     'SERVER_SIGNATURE' => '
  72. Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 Server at localhost Port 80
  73.  
  74. ',
  75.     'SERVER_SOFTWARE' => 'Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15',
  76.     'SERVER_NAME' => 'localhost',
  77.     'SERVER_ADDR' => '::1',
  78.     'SERVER_PORT' => '80',
  79.     'REMOTE_ADDR' => '::1',
  80.     'DOCUMENT_ROOT' => 'D:/xampp/htdocs',
  81.     'REQUEST_SCHEME' => 'http',
  82.     'CONTEXT_PREFIX' => '',
  83.     'CONTEXT_DOCUMENT_ROOT' => 'D:/xampp/htdocs',
  84.     'SERVER_ADMIN' => 'postmaster@localhost',
  85.     'SCRIPT_FILENAME' => 'D:/xampp/htdocs/Basic-RC/web/index.php',
  86.     'REMOTE_PORT' => '50256',
  87.     'GATEWAY_INTERFACE' => 'CGI/1.1',
  88.     'SERVER_PROTOCOL' => 'HTTP/1.1',
  89.     'REQUEST_METHOD' => 'POST',
  90.     'QUERY_STRING' => 'r=gii%2Fdefault%2Fview&id=crud',
  91.     'REQUEST_URI' => '/Basic-RC/web/index.php?r=gii%2Fdefault%2Fview&id=crud',
  92.     'SCRIPT_NAME' => '/Basic-RC/web/index.php',
  93.     'PHP_SELF' => '/Basic-RC/web/index.php',
  94.     'REQUEST_TIME_FLOAT' => 1415250513.9319999217987060546875,
  95.     'REQUEST_TIME' => 1415250513,
  96. ];
  97.  
  98. $_COOKIE = [
  99.     '_csrf' => '3fca09129fd8e22c6a4bb0b0da8ebdfaca28cb2901fb466ca10e740b8322e008s:32:"N3EY4D5_73SSAVvO6jmsx9m_Rjw-E05t";',
  100.     'PHPSESSID' => 'ml50iomrscc82noav31g2uuaj0',
  101. ];
  102. Yii Framework
  103. 2014-11-06, 06:08:34
  104.  
  105. Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15
  106. Yii Framework/2.0.1-dev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement