luyadev / luya-kickstarter Goto Github PK
View Code? Open in Web Editor NEWKickstart a new LUYA project application.
Home Page: https://luya.io
License: MIT License
Kickstart a new LUYA project application.
Home Page: https://luya.io
License: MIT License
Just follow the guide: https://luya.io/guide/install-windows
Once import should be done:
E:\yii2\luya-kickstarter\public_html>php index.php import
Success
Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: luya\admin\ngrest\plugins\Text::sortField'
in E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Component.php:209
Stack trace:
#0 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\BaseYii.php(546): yii\base\Component->__set('sortField', false)
#1 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\BaseObject.php(107): yii\BaseYii::configure(Object(luya\admin\ngrest\plugins\Text), Array)
#2 [internal function]: yii\base\BaseObject->__construct(Array)
#3 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\di\Container.php(384): ReflectionClass->newInstanceArgs(Array)
#4 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('\luya\admin\ngr...', Array, Array)
#5 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('\luya\admin\ngr...', Array, Array)
#6 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-admin\src\ngrest\NgRest.php(79): yii\BaseYii::createObject(Array)
#7 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-admin\src\ngrest\base\NgRestEventBehavior.php(60): luya\admin\ngrest\NgRest::createPluginObject('\luya\admin\ngr...', 'translationName', 'Name', false, Array)
#8 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-admin\src\ngrest\base\NgRestEventBehavior.php(42): luya\admin\ngrest\base\NgRestEventBehavior::findPluginInstance('translationName', Array, 'cms_block')
#9 [internal function]: luya\admin\ngrest\base\NgRestEventBehavior->bindPluginEvents(Object(yii\base\Event))
#10 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Component.php(627): call_user_func(Array, Object(yii\base\Event))
#11 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\db\BaseActiveRecord.php(933): yii\base\Component->trigger('init')
#12 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\db\BaseActiveRecord->init()
#13 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-cms\src\admin\importers\BlockImporter.php(200): yii\base\BaseObject->__construct()
#14 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-cms\src\admin\importers\BlockImporter.php(40): luya\cms\admin\importers\BlockImporter->saveBlock('\luya\cms\front...')
#15 E:\yii2\luya-kickstarter\vendor\luyadev\luya-core\console\commands\ImportController.php(177): luya\cms\admin\importers\BlockImporter->run()
#16 [internal function]: luya\console\commands\ImportController->actionIndex()
#17 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#18 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#19 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\console\Controller.php(148): yii\base\Controller->runAction('', Array)
#20 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Module.php(528): yii\console\Controller->runAction('', Array)
#21 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('import', Array)
#22 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\console\Application.php(147): yii\console\Application->runAction('import', Array)
#23 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#24 E:\yii2\luya-kickstarter\vendor\luyadev\luya-core\base\Boot.php(250): yii\base\Application->run()
#25 E:\yii2\luya-kickstarter\vendor\luyadev\luya-core\base\Boot.php(205): luya\base\Boot->applicationConsole()
#26 E:\yii2\luya-kickstarter\public_html\index.php(8): luya\base\Boot->run()
#27 {main}
E:\yii2\luya-kickstarter\public_html>php luyacheck.php
Did not work as I am not running Apache on my development machine.
Fatal error: Uncaught Error: Call to undefined function apache_get_modules() in E:\yii2\luya-kickstarter\public_html\luyacheck.php(22) : eval()'d code:1
Stack trace:
#0 E:\yii2\luya-kickstarter\public_html\luyacheck.php(22): eval()
#1 {main}
thrown in E:\yii2\luya-kickstarter\public_html\luyacheck.php(22) : eval()'d code on line 1
Q | A |
---|---|
LUYA Version | 1.0.18 (27. May 2019) |
PHP Version | PHP 7.2.4 (cli) (built: Mar 28 2018 04:27:01) ( ZTS MSVC15 (Visual C++ 2017) x64 ) |
Platform | None |
Operating system | Windows 10 |
DB | MariaDB |
nadar@basil-NZXT:/var/www/testcreation$ composer create-project zephir/luya-kickstarter --dev
[InvalidArgumentException]
Could not find package zephir/luya-kickstarter with stability stable.
Hi,
composer create-project luyadev/luya-kickstarter
Go to admin -> Pages -> Homepage -> Add new version
Unable to add a new version with below information:
One or more fields are empty or have an invalid value.
This is what I get when I go with
composer create-project luyadev/luya-kickstarter-bootstrap4
1: [in_array('mod_rewrite', apache_get_modules())] true
2: [ini_get('short_open_tag')] ''
3: [ini_get('error_reporting')] '22527'
4: [phpversion()] '7.4.10'
5: [php_ini_loaded_file()] 'C:\xampp\php\php.ini'
6: [php_sapi_name()] 'apache2handler'
7: [isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : unknown] 'Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.10'
Q | A |
---|---|
LUYA Version | 1.0.26 |
PHP Version | 7.4.10 |
Platform | XAMPP |
Operating system | Windows |
When run ./vendor/bin/luya migrate
get the error:
Yii Migration Tool (based on Yii v2.0.15.1)
Error: Failed to instantiate component or class "db".
This is my env-local-db-php file
<?php
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=mydb',
// 'dsn' => 'mysql:host=localhost;dbname=DB_NAME;unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock', // OSX MAMP
// 'dsn' => 'mysql:host=localhost;dbname=DB_NAME;unix_socket=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock', // OSX XAMPP
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
// in productive environments you can enable the schema caching
// 'enableSchemaCache' => true,
// 'schemaCacheDuration' => 43200,
]
]
];
Environment
PHP version
$ php -v
PHP 7.2.7-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jun 22 2018 08:45:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.7-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
OS version
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
Database version
Server version: 10.2.16-MariaDB-1:10.2.16+maria~bionic-log mariadb.org binary distribution
switch back to test suite version 1.0.0
The luya kickstarter should provide a dockerized default config ready to use for everyone. if not needed this can be removed after installing.
I am searching for cms for my project. I like Yii2 and your system looks interesting.
I have some questions.
49 migrations were applied.
Migrated up successfully.
sergey@sergey-sayulinuxmint ~/www/luya-common.loc $ ./vendor/bin/luya import
Exception 'yii\base\InvalidArgumentException' with message 'luya\cms\models\BlockGroup has no attribute named "groupLabel".'
in /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/BaseActiveRecord.php:526
Stack trace:
#0 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-admin/src/ngrest/plugins/Text.php(71): yii\db\BaseActiveRecord->setAttribute('groupLabel', '')
#1 [internal function]: luya\admin\ngrest\plugins\Text->onAssign(Object(yii\db\AfterSaveEvent))
#2 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Component.php(627): call_user_func(Array, Object(yii\db\AfterSaveEvent))
#3 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/BaseActiveRecord.php(992): yii\base\Component->trigger('afterInsert', Object(yii\db\AfterSaveEvent))
#4 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/ActiveRecord.php(560): yii\db\BaseActiveRecord->afterSave(true, Array)
#5 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/ActiveRecord.php(515): yii\db\ActiveRecord->insertInternal(NULL)
#6 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/BaseActiveRecord.php(670): yii\db\ActiveRecord->insert(true, NULL)
#7 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(162): yii\db\BaseActiveRecord->save()
#8 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(87): luya\cms\admin\importers\BlockImporter->getBlockGroupId(Object(luya\cms\frontend\blocks\HtmlBlock))
#9 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(41): luya\cms\admin\importers\BlockImporter->saveBlock('\\luya\\cms\\front...')
#10 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-core/console/commands/ImportController.php(157): luya\cms\admin\importers\BlockImporter->run()
#11 [internal function]: luya\console\commands\ImportController->actionIndex()
#12 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#13 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#14 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/console/Controller.php(148): yii\base\Controller->runAction('', Array)
#15 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('', Array)
#16 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('import', Array)
#17 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('import', Array)
#18 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#19 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-core/base/Boot.php(205): yii\base\Application->run()
#20 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-core/bin/luya(22): luya\base\Boot->applicationConsole()
#21 ###{main}```
Bitte webhook für packagist adden, kann die packagist version nicht updaten.
Until this step all works fine, but it looks like the same container is started more then one time, error output:
Starting docker_luya_web_1 ...
docker_luya_db_1 is up-to-date
Starting docker_luya_web_1
Starting docker_luya_composer_1 ...
docker_luya_php_1 is up-to-date
Starting docker_luya_web_1 ... error
ERROR: for docker_luya_web_1 Cannot start service luya_web: driver failed programming external connectivity on endpoint docker_luya_web_1 (042b3502caf1ee94de8b52bbf719493ca128109eb65666670ec7365db96946aa): Error starting userland proxy: BiStarting docker_luya_composer_1 ... done
ERROR: for luya_web Cannot start service luya_web: driver failed programming external connectivity on endpoint docker_luya_web_1 (042b3502caf1ee94de8b52bbf719493ca128109eb65666670ec7365db96946aa): Error starting userland proxy: Bind for 0.0.0.0:8080 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
After version 1.0.5 release add the new allowedHosts to composition component config template.
Move to 1.2 admin module release.
I still believe we should remove old this bloating boilerplate stuff like the different favicons.
If i am going to setup a new page (kickstart luya project) - i have to create those favicons anyhow by myself with one of those online generators - so people have to remove all those images and values from main layout - so i think this makes just no sense.
@luyadev/coredev thoughts?
Hello, i have a problem on install kickstarter
composer global require "fxp/composer-asset-plugin:~1.4"
composer create-project luyadev/luya-kickstarter:~1.0.0
and then i have a message
http://prntscr.com/i9zosj
ubuntu@ubuntu16:/var/www/luya-kickstarter$ composer install
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
The "extra.asset-pattern-skip-version" option is deprecated, use the "config.fxp-asset.pattern-skip-version" option
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2-gii 2.0.6 requires bower-asset/typeahead.js 0.10.* | ~0.11.0 -> no matching package found.
- yiisoft/yii2-gii 2.0.5 requires bower-asset/typeahead.js 0.10.* | ~0.11.0 -> no matching package found.
- yiisoft/yii2-gii 2.0.4 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
- yiisoft/yii2-gii 2.0.3 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
- yiisoft/yii2-gii 2.0.2 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
- yiisoft/yii2-gii 2.0.1 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
- yiisoft/yii2-gii 2.0.0 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
- Installation request for yiisoft/yii2-gii ~2.0.0 -> satisfiable by yiisoft/yii2-gii[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
can you help me?
use the dockerhub image instead of local image.
luya_php:
image: luyadev/luya-docker-php
I create project using instruction from https://luya.io/guide/install-windows link , than i test them and trying to add new layout from admin panel and i get this error:
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.