failed install
Opened this issue · 16 comments
via web:
missing install.js:
"GET /cms/media/css/install.css HTTP/1.1" 404
file found in /cms/modules/installer/media/js/install.js
symlinked - but webinstall won't go next after db config
via shell:
php index.php --task=install
Parameter Errors:
cache_type - cache_type must not be empty
and with composer install:
Executing command (CWD): php minion cache:clear ErrorException [ 8 ]: Use of undefined constant CACHE_TYPE - assumed 'CACHE_TYPE' ~ MODPATH/cache/classes/task/cache/clear.php [ 42 ]Script php minion cache:clear handling the post-install-cmd event returned with an error [RuntimeException]
Hi. 6fc07a2
Try again php index.php --task=install
Do you use apache web server?
Привет, пробовал 13ю ветку, сейчас пытаюсь запустить v14.0.0, однако в любом из вариантов (будь то скачанный zip, git или composer):
composer create-project kodicms/cms . --prefer-dist
or
php index.php --task=install
Ловлю ошибочку:
PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18 PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
Подскажите в чем может быть проблема. На сколько я понимаю данная ветка (под Kohana) уже не актуальная?
composer install
?
Вот скриншот (чтобы не переписывать весь вывод)
http://joxi.ru/MAjG0x5svDVLwr
Мне наверное стоит пояснить порядок своих действий. Сейчас проделал все с нуля:
- создаем директорию и в ней даем команду:
git clone --recursive https://github.com/KodiCMS/kodicms.git
ждемс, загрузок. - далее заходим и правим
.htaccess
иbootstrap.php
- открываем урл в браузере, видим 500ю и ловим в логах саму ошибку:
# cat error_log
PHP Warning: require(/classes/Kohana/Core.php): failed to open stream: No such file or directory in /var/www/html/kodicms/cms/application/bootstrap.php on line 6
PHP Fatal error: require(): Failed opening required '/classes/Kohana/Core.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/kodicms/cms/application/bootstrap.php on line 6
Понимаем что папочка vendor без kohana/core
, выполняем: composer install
и сваливаемся на ошибочку что была на скрине в файле выше.
kohana/core suggests installing ext-http (*)
Generating autoload files
> php minion vendor:publish
PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
Script php minion vendor:publish handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
Если попытаться прям тут сделать composer update
, то ловим новую ошибку:
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
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
- kodicms/core dev-master requires kodicms/api 0.* -> satisfiable by kodicms/api[v0.0.1, v0.1.2].
- kodicms/core dev-master requires kodicms/api 0.* -> satisfiable by kodicms/api[v0.0.1, v0.1.2].
- kodicms/api v0.1.2 requires kodicms/core 0.* -> satisfiable by kodicms/core[v0.0.1, v0.0.10, v0.0.2, v0.0.4, v0.0.6, v0.0.7, v0.0.8, v0.0.9, v0.1.10, v0.1.12, v0.1.14, v0.1.15, v0.1.16] but these conflict with your requirements or minimum-stability.
- kodicms/api v0.0.1 requires kodicms/core 0.* -> satisfiable by kodicms/core[v0.0.1, v0.0.10, v0.0.2, v0.0.4, v0.0.6, v0.0.7, v0.0.8, v0.0.9, v0.1.10, v0.1.12, v0.1.14, v0.1.15, v0.1.16] but these conflict with your requirements or minimum-stability.
- Installation request for kodicms/core dev-master -> satisfiable by kodicms/core[dev-master].
Можно изменить composer.json
, примерно так:
"require": {
"php" : ">=5.4.0",
"kodicms/api" : "0.1.2",
"kodicms/core" : "0.1.16"
},
Но результат мы уже знаем (скрин выше).
Сносим все к ед... матушке. Заново создаем директорию и делаем composer create-project kodicms/cms . --prefer-dist
, ждем загрузку и бац опять все таже ошибка.
PS. Забыл сказать, ветку использовал https://github.com/KodiCMS-Kohana/kodicms/tree/master PHP 5.6.20, Composer 1.0.3.
А если взять этот репозиторий? https://github.com/KodiCMS-Kohana/cms
И вообще какие пакеты установились?
С того репозитория 13я версия ставится с первого раза и работает нормально. Без всяких папок в вендорами и подгрузкой прочих библиотек.
Через композер какие пакеты устанавливаются?
Итак, если с нуля composer create-project kodicms/cms . --prefer-dist
то в папке vendor
имеем:
> composer
> doctrine
> egulias
> kodicms
> kohana
> swiftmailer
> vendor
autoload.php
а в vendor/kodicms
?
А вообще список такой:
- Installing composer/installers (dev-master 4db8898)
Loading from cache
- Installing doctrine/lexer (dev-master 83893c5)
Loading from cache
- Installing egulias/email-validator (dev-master 0a26375)
Loading from cache
- Installing kohana/core (dev-3.3/develop 37740b1)
Loading from cache
- Installing kohana/database (dev-3.3/develop c352da3)
Loading from cache
- Installing kohana/orm (dev-3.3/develop c5ee33a)
Loading from cache
- Installing kohana/minion (dev-3.3/develop 83ea70a)
Loading from cache
- Installing kohana/image (dev-3.3/develop c8d7dc4)
Loading from cache
- Installing kohana/cache (dev-3.3/develop e001903)
Loading from cache
- Installing kohana/auth (dev-3.3/develop 9fa45d3)
Loading from cache
- Installing kodicms/core (dev-master 9a1cc4a)
Loading from cache
- Installing kodicms/snippet (dev-master 1da5a2c)
Loading from cache
- Installing kodicms/widgets (dev-master d95b1f4)
Loading from cache
- Installing kodicms/users (dev-master c051f21)
Loading from cache
- Installing kodicms/update (dev-master 4815eb6)
Loading from cache
- Installing kodicms/pages (dev-master 1131e50)
Loading from cache
- Installing kodicms/tags (dev-master 20f9ba3)
Loading from cache
- Installing kodicms/search (dev-master f4c3893)
Loading from cache
- Installing kodicms/scheduler (dev-master 5965889)
Loading from cache
- Installing kodicms/plugins (dev-master 21084d1)
Loading from cache
- Installing kodicms/page_parts (dev-master f15ef00)
Loading from cache
- Installing kodicms/logs (dev-master 2cc83f2)
Loading from cache
- Installing kodicms/installer (dev-master f765200)
Loading from cache
- Installing swiftmailer/swiftmailer (dev-master 28f3b68)
Loading from cache
- Installing kodicms/email (dev-master 53cede2)
Loading from cache
- Installing kodicms/elfinder (dev-master 432cf78)
Loading from cache
- Installing kodicms/datasource (dev-master 84d834e)
Loading from cache
- Installing kodicms/dashboard (dev-master 0f64c66)
Loading from cache
- Installing kodicms/breadcrumbs (dev-master 7eee1b5)
Loading from cache
- Installing kodicms/api (dev-master ae83f22)
Loading from cache
в папке vendor/kodicms
api
breadcrumbs
core
dashboard
datasource
elfinder
email
installer
logs
page_parts
pages
plugins
scheduler
search
snippet
tags
update
users
widgets
в папке vendor/kohana
core
modules
Даже если предположить что трабл с уже скачанными библиотеками, делаем чистку и по новой:
# composer clearcache
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Clearing cache (cache-dir): /root/.composer/cache
Clearing cache (cache-files-dir): /root/.composer/cache/files
Clearing cache (cache-repo-dir): /root/.composer/cache/repo
Cache directory does not exist (cache-vcs-dir):
All caches cleared.
#
# composer create-project kodicms/cms . --prefer-dist
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Installing kodicms/cms (v14.0.5)
- Installing kodicms/cms (v14.0.5)
Downloading: 100%
Created project in .
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
- Installing composer/installers (dev-master 4db8898)
Downloading: 100%
- Installing doctrine/lexer (dev-master 83893c5)
Downloading: 100%
- Installing egulias/email-validator (dev-master 0a26375)
Downloading: 100%
- Installing kohana/core (dev-3.3/develop 37740b1)
Downloading: 100%
- Installing kohana/database (dev-3.3/develop c352da3)
Downloading: 100%
- Installing kohana/orm (dev-3.3/develop c5ee33a)
Downloading: 100%
- Installing kohana/minion (dev-3.3/develop 83ea70a)
Downloading: 100%
- Installing kohana/image (dev-3.3/develop c8d7dc4)
Downloading: 100%
- Installing kohana/cache (dev-3.3/develop e001903)
Downloading: 100%
- Installing kohana/auth (dev-3.3/develop 9fa45d3)
Downloading: 100%
- Installing kodicms/core (dev-master 9a1cc4a)
Downloading: 100%
- Installing kodicms/snippet (dev-master 1da5a2c)
Downloading: 100%
- Installing kodicms/widgets (dev-master d95b1f4)
Downloading: 100%
- Installing kodicms/users (dev-master c051f21)
Downloading: 100%
- Installing kodicms/update (dev-master 4815eb6)
Downloading: 100%
- Installing kodicms/pages (dev-master 1131e50)
Downloading: 100%
- Installing kodicms/tags (dev-master 20f9ba3)
Downloading: 100%
- Installing kodicms/search (dev-master f4c3893)
Downloading: 100%
- Installing kodicms/scheduler (dev-master 5965889)
Downloading: 100%
- Installing kodicms/plugins (dev-master 21084d1)
Downloading: 100%
- Installing kodicms/page_parts (dev-master f15ef00)
Downloading: 100%
- Installing kodicms/logs (dev-master 2cc83f2)
Downloading: 100%
- Installing kodicms/installer (dev-master f765200)
Downloading: 100%
- Installing swiftmailer/swiftmailer (dev-master 28f3b68)
Downloading: 100%
- Installing kodicms/email (dev-master 53cede2)
Downloading: 100%
- Installing kodicms/elfinder (dev-master 432cf78)
Downloading: 100%
- Installing kodicms/datasource (dev-master 84d834e)
Downloading: 100%
- Installing kodicms/dashboard (dev-master 0f64c66)
Downloading: 100%
- Installing kodicms/breadcrumbs (dev-master 7eee1b5)
Downloading: 100%
- Installing kodicms/api (dev-master ae83f22)
Downloading: 100%
kohana/core suggests installing ext-http (*)
Generating autoload files
> php minion vendor:publish
PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
Script php minion vendor:publish handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
PHP Fatal error: Class 'Assets' not found in /var/www/html/kodicms/cms/application/classes/Kohana/Exception.php on line 18
что-то мне подсказывает что придется использовать https://packagist.org/packages/kodicms/cms
Насколько я помню из-за непопулярности kohana версии пришлось удалить старые пакеты из composer и заменить их laravel версией.
С чем связан выбор именно этой версии?
Да собственно только движкой Kohana 3.5 из-за последний изменений. Просто у Вас в CMS есть вещи которых мне вполне хватит. А laravel cчитаю тяжеловат для простых проектов из парочки страниц. Хотя... я и его согласно инструкции на сайте - не запустил 😂 git, потом composer и он валится с ошибками, но об этом отдельно (если найду куда закинуть).