skeeks-cms / cms

SkeekS CMS (Yii2)
https://cms.skeeks.com
BSD 3-Clause "New" or "Revised" License
136 stars 65 forks source link

Undefined variable: tree #51

Open kolexander opened 7 years ago

kolexander commented 7 years ago

Здравствуйте. Установил по инструкции Захожу броузером:

Undefined variable: tree

  1. in /home/kolex/www/skeeks.local/frontend/templates/default/widgets/TreeMenuCmsWidget/menu-top.php

Как поправить ?

skeeks-semenov commented 7 years ago

Добрый день. А по какой инструкции ставили? https://docs.cms.skeeks.com/en/latest/overview.html#installation - тут актуальная

kolexander commented 7 years ago

по этой и ставил, единственное отличие что композер уже был установлен ранее, глобально пропускал строки

     curl -sS ...

запускал соответственно:

    composer create-project --no-install --prefer-dist skeeks/app-basic skeeks.local
    cd ./skeeks.local
    composer global require fxp/composer-asset-plugin --no-plugins
    composer install -o
    ./yii cms/init
    ./yii dbDumper/mysql/restore
    . . .

ошибок при установке не было единственный warning был: The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option

skeeks-semenov commented 7 years ago

php short_open_tag on ?

kolexander commented 7 years ago

о, в этом было дело, пропустил, спасибо за помощь и за отличную cms !

lubosdz commented 6 years ago

That was really BAD idea to use PHP short tags <? instead of standard <?php. Even PSR-1 defines first thing for files at section 2.1 using standard <?php or <?= tags. I would suggest correcting them acrosss all scripts ...

skeeks-semenov commented 6 years ago

@lubosdz I agree with this. We will rule gradually.