luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
811 stars 206 forks source link

Error in module when set controller action #997

Closed kmergen closed 7 years ago

kmergen commented 7 years ago

What steps will reproduce the problem?

Error if trying to add a controller action to module in admin UI

screen2 screen3 sreen4

What is the expected result?

A rendered view file with items of a model

What do you get instead? (A Screenshot can help us a lot!)

following error message:

screen1

But when I set nothing that I get the result from DefaultController indexAction: screen4 screen5

LUYA Check ouput (run this script and post the result: luyacheck.php)

Additional infos

Q A
LUYA Version dev-master
PHP Version 5.6.24
Platform Wamp64.
Operating system Windows 10
nadar commented 7 years ago

I am trying to reproduce this issue, give me a few hours.

The problem appears only when using a different action and/or controller?

(btw: would love to try the Hippenheimer Arschfurz 2011 wine, sounds delicious.)

kmergen commented 7 years ago

I get the same error. screen6 sreen7

nadar commented 7 years ago

Are you on dev-master (rc1-dev)? You already have the env.php config in your configs folder or is it still server.php - if have made a small change, so you could run composer update (but if you are on the old configs structure, then you have to change the those filenames.

kmergen commented 7 years ago

Here is my config folder screen7

Here my composer.json

{
    "name": "luyadev/luya-kickstarter",
    "description": "The kickstarter for a new LUYA application project.",
    "type": "project",
    "license":"MIT",
    "require": {
        "luyadev/luya-core" : "^1.0@dev",
        "luyadev/luya-module-admin" : "^1.0@dev",
        "luyadev/luya-module-cms" : "^1.0@dev",
        "luyadev/luya-module-styleguide" : "^1.0@dev"
    },
    "require-dev": {
        "yiisoft/yii2-gii" : "^2.0",
        "yiisoft/yii2-debug" : "^2.0"
    },
    "scripts": {
        "post-create-project-cmd": [
            "yii\\composer\\Installer::postCreateProject"
        ]
    },
    "extra": {
        "yii\\composer\\Installer::postCreateProject": {
            "setPermission": [
                {
                    "public_html/assets": "0777",
                    "public_html/storage": "0777"
                }
            ]
        },
        "asset-pattern-skip-version": "(-build|-patch)",
        "asset-installer-paths": {
            "bower-asset-library": "vendor/bower"
        },
        "branch-alias": {
            "dev-master": "1.0.x-dev"
        }
    }
}
nadar commented 7 years ago

Perfect. Just run composer update

kmergen commented 7 years ago

It works now. Thanks

nadar commented 7 years ago

glade to help you! I am going to close the issue.