yii-starter-kit / yii2-starter-kit Goto Github PK
View Code? Open in Web Editor NEWYii2 Starter Kit
Home Page: http://yii2-starter-kit.terentev.net
License: Other
Yii2 Starter Kit
Home Page: http://yii2-starter-kit.terentev.net
License: Other
ERROR LOG
exception 'ErrorException' with message 'imagejpeg(): Invalid 2nd parameter, it must a filename or a stream' in C:\wamp\host2-kit\vendor\imagine\imagine\lib\Imagine\Gd\Image.php:584 Stack trace: #0 [internal function]: Imagine\Gd\Image->Imagine\Gd{closure}(2, 'imagejpeg(): In...', 'C:\wamp\host2-k...', 584, Array) #1 [internal function]: imagejpeg(Resource id #178, Object(trntv\filekit\base\Path)) #2 C:\wamp\host2-kit\vendor\imagine\imagine\lib\Imagine\Gd\Image.php(584): call_user_func_array('imagejpeg', Array) #3 C:\wamp\host2-kit\vendor\imagine\imagine\lib\Imagine\Gd\Image.php(210): Imagine\Gd\Image->saveOrOutput('jpg', Array, Object(trntv\filekit\base\Path)) #4 C:\wamp\host2-kit\frontend\modules\user\controllers\DefaultController.php(20): Imagine\Gd\Image->save(Object(trntv\filekit\base\Path)) #5 [internal function]: frontend\modules\user\controllers\DefaultController->frontend\modules\user\controllers{closure}(Object(trntv\filekit\storage\File), Object(trntv\filekit\actions\UploadAction)) #6 C:\wamp\host2-kit\vendor\trntv\yii2-file-kit\actions\UploadAction.php(84): call_user_func(Object(Closure), Object(trntv\filekit\storage\File), Object(trntv\filekit\actions\UploadAction)) #7 [internal function]: trntv\filekit\actions\UploadAction->run() #8 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Action.php(92): call_user_func_array(Array, Array) #9 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Controller.php(151): yii\base\Action->runWithParams(Array) #10 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Module.php(455): yii\base\Controller->runAction('avatar-upload', Array) #11 C:\wamp\host2-kit\vendor\yiisoft\yii2\web\Application.php(83): yii\base\Module->runAction('user/default/av...', Array) #12 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #13 C:\wamp\host2-kit\frontend\web\index.php(40): yii\base\Application->run() #14 {main} Next exception 'Imagine\Exception\RuntimeException' with message 'imagejpeg(): Invalid 2nd parameter, it must a filename or a stream' in C:\wamp\host2-kit\vendor\imagine\imagine\lib\Imagine\Gd\Image.php:691 Stack trace: #0 [internal function]: Imagine\Gd\Image->Imagine\Gd{closure}(2, 'imagejpeg(): In...', 'C:\wamp\host2-k...', 584, Array) #1 [internal function]: imagejpeg(Resource id #178, Object(trntv\filekit\base\Path)) #2 C:\wamp\host2-kit\vendor\imagine\imagine\lib\Imagine\Gd\Image.php(584): call_user_func_array('imagejpeg', Array) #3 C:\wamp\host2-kit\vendor\imagine\imagine\lib\Imagine\Gd\Image.php(210): Imagine\Gd\Image->saveOrOutput('jpg', Array, Object(trntv\filekit\base\Path)) #4 C:\wamp\host2-kit\frontend\modules\user\controllers\DefaultController.php(20): Imagine\Gd\Image->save(Object(trntv\filekit\base\Path)) #5 [internal function]: frontend\modules\user\controllers\DefaultController->frontend\modules\user\controllers{closure}(Object(trntv\filekit\storage\File), Object(trntv\filekit\actions\UploadAction)) #6 C:\wamp\host2-kit\vendor\trntv\yii2-file-kit\actions\UploadAction.php(84): call_user_func(Object(Closure), Object(trntv\filekit\storage\File), Object(trntv\filekit\actions\UploadAction)) #7 [internal function]: trntv\filekit\actions\UploadAction->run() #8 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Action.php(92): call_user_func_array(Array, Array) #9 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Controller.php(151): yii\base\Action->runWithParams(Array) #10 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Module.php(455): yii\base\Controller->runAction('avatar-upload', Array) #11 C:\wamp\host2-kit\vendor\yiisoft\yii2\web\Application.php(83): yii\base\Module->runAction('user/default/av...', Array) #12 C:\wamp\host2-kit\vendor\yiisoft\yii2\base\Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #13 C:\wamp\host2-kit\frontend\web\index.php(40): yii\base\Application->run() #14 {main}
This project would be much more useful if it were database agnostic, as yii itself is database agnostic. I greatly prefer PostgreSQL over MySQL. It would probably work with almost any database if the migrations were not written to be specific to MySQL.
you have an exception in both of demo
php environments/dev/console/yii message-migrate @common/config/messages/php.php @common/config/messages/db.php
Could not open input file: environments/dev/console/yii
then try
backend/yii message-migrate @common/config/messages/php.php @common/config/messages/db.php
PHP Fatal error: Uncaught exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\console\ErrorHandler::errorAction' in /var/www/yii2-starter-kit/vendor/yiisoft/yii2/base/Component.php:197
fix markup for screens < 768px
Обнови composer.json
Chg: Added yii\composer\Installer::postCreateProject() and modified the syntax of calling installer methods in composer.json (qiangxue)
➜ yii2-starter-kit git:(master) ✗ composer global require "fxp/composer-asset-plugin:1.0.0-beta1"
Changed current directory to /Users/qk/.composer
./composer.json has been updated
Fatal error: Class 'Composer\Installer\InstallerEvents' not found in /Users/qk/.composer/vendor/fxp/composer-asset-plugin/FxpAssetPlugin.php on line 65
General error: 1364 Field 'path' doesn't have a default value
-такая вот ошибка при создании итема карусели без выбранного файла.
alias
with key
not loaded category articles in:
article/create
article/update
public function set($key, $value){
$this->_values[$key] = $value;
$model = $this->getModel($key);
if(!$model) $model = new $this->modelClass;
$model->key = $key; <<<<<<<<<<<<<<<<<<<<<<<<<<<< lost the key
$model->value = $value;
return $model->save();
}
Не правильная ссылка на восстановления пароля.
in article/view?id=1
Not Found (#404)
Unable to resolve the request: article/view
In:
common\models\Page
*-local
config files.gitignore
changesinit
scriptFor some components, keyStorage
for example
exception 'ErrorException' with message 'imagegif(): Invalid 2nd parameter, it must a filename or a stream'
problem in file:
yii2-starter-kit / backend / controllers / SignInController.php
Lines
Image::thumbnail($file->path, 215,215)
->save($file->path);
По аналогии с фронтендом:
Image::thumbnail($file->path->getPath(), 215,215)
->save($file->path->getPath());
I used WAMP server PHP5.5.12 and it display error: " Warning: Invalid argument supplied for foreach() in D:\wamp\www\yii2-starter-kit\vendor\yiisoft\yii2\helpers\BaseArrayHelper.php on line 121
Call Stack
1 0.0017 257888 {main}( ) ..\index.php:0
2 0.0524 1290608 yii\helpers\BaseArrayHelper::merge( ) ..\index.php:35
"
every load page.
I have set php.ini to hide display error but it still show error.
How to fix this problem?
Во время установки у меня выдало такую вот ошибку. Посмотрев код миграции я нашел, что поле gender в таблице user_profile не имеет NULL значения, и при этом идут запросы на insert без установленного значения gender. Что и вызвало эту ошибку. Я что-то делаю не так или всеже есть ошибка?
insert into {{%user_profile}} ...Exception 'yii\db\Exception' with message 'SQLSTATE[HY000]: > General error: 1364 Field 'gender' doesn't have a default value
The SQL being executed was: INSERT INTOuser_profile
(user_id
,locale
) VALUES (1, 'en-US')'in /Users/home/PhpstormProjects/time-manager/vendor/yiisoft/yii2/db/Schema.php:532
Error Info:
Array
(
[0] => HY000
[1] => 1364
[2] => Field 'gender' doesn't have a default value
)
Предлагаю как улучшение добавить авторизацию через социальные сети к модулю User.
field published_at does not change the in articles
article/update?id=..
UPD. It will be implemented using https://github.com/thephpleague/glide
use case: "offline" key to set application catchAll setting
Скачал последнюю версию, все установил как надо, но в backend не смог авторизироваться. Покопавшись в коде выяснил, что в файле backend/models/LoginForm.php следующая строка дает false:
if(!Yii::$app->user->can('manager', ['user'=>$this->_user]))
Пробовал в этот момент выводить $this->_user и там есть объект у которого role = 10. В чем может быть проблема?
При переходе по несуществующему адресу в админки не залогинившись пользователь видет шаблон админке и разделы.
Why can't install other 3rd party libs ?
After I installed the yii2-starter-kit and run the following command :
composer update "kartik-v/yii2-grid": "dev-master"
got the "killed" error ? I tested the babic template without this problem ? Any things wrong ?thanks
Loading composer repositories with package information
Updating dependencies (including require-dev) Killed
Console app is almost useless without a combination with frontend, backend or common configs. Will be totaly rewritten
exception 'yii\base\ErrorException' with message 'Call to undefined function trntv\systeminfo\sys_getloadavg()' in D:\OpenServer\domains\yii2.loc\vendor\trntv\systeminfo\SI.php:232
Windows 7 Ultimate x64
OpenServer 5.1.1
PHP 5.5.13 (cli) (built: May 28 2014)
Apache/2.4.9 (Win 32)
what to do?
Warning: require(C:\Program Files\Ampps\www\starter-kit\backend\web/../../vendor/autoload.php): failed to open stream: No such file or directory in C:\Program Files\Ampps\www\starter-kit\backend\web\index.php on line 12
Fatal error: require(): Failed opening required 'C:\Program Files\Ampps\www\starter-kit\backend\web/../../vendor/autoload.php' (include_path='.;C:\php\pear') in C:\Program Files\Ampps\www\starter-kit\backend\web\index.php on line 12
this is my installation output
The requested PHP extension ext-intl * is missing from your system.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.