Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation and create not working #419

Open
jeroenko97 opened this issue Apr 1, 2019 · 4 comments
Open

Navigation and create not working #419

jeroenko97 opened this issue Apr 1, 2019 · 4 comments

Comments

@jeroenko97
Copy link

I am trying to add the extension to my working application. I have already added some roles and assignments using migration. After adding the extension with composer and editting my config I ran into a few things:

  1. first of all I cannot see the already existing roles and assignments from my database

  2. When I try to navigate using the menu it seems to create the wrong URL, because the content inside the tab doesn't change. For example: when i click on the 'role' tab the URL changes to:
    my/application/web/admin/default/index#!/assignment#%2Frole...
    Why does this happen?
    If i manually change the URL: to my/application/web/admin/default/index#!/role
    the role page does load correctly.

  3. Lastly I am not able to create anything (role, rule, permission etc). When I enter the fields and click save I just get 'Not found' error.

I am using: basic Yii template, PHP 7.3.3, XAMPP

@alber
Copy link

alber commented May 23, 2019

I just installed fresh on a fresh server with php7.0, composer install as instructions as I always do with new applications but this time it has installed this new version of yii2-admin and the navigation seems broken. None of the tabs load into the "home" of the module. The javascript console says:

XHR failed loading: GET "http://app.ips.her.e/index.php?r=admin%2Fdefault%2Findex/assignment&expand=assignments&q="

this is after 2 angular Pagination warnings

the GET request returns a 404

seems like angular may be causing some troubles with some later yii versions maybe?

how can we solve this? this module is awesome and I don't want to change!

@haifahrul
Copy link

any progress?

@sihar
Copy link
Collaborator

sihar commented Mar 17, 2020

I try to answer
can you describe step by step to reproduce that errors?
or some code that reproduce that one?

@alber
Copy link

alber commented Mar 19, 2020

Hi everyone,
thanks for the attention and thanks for developing a very practical and useful plugin.
Since this was almost one year ago I really don't remember too many specific details.
What I do remember is we ended up not being able to reproduce the issue or side-stepping it completely. In the end, I think one of the newer yii framework releases refactored their javascript handling and wrecked your navigation. I think installing the version that came after that solved it.

I'm sorry I can't be more helpful at this time.
Again, good job on the plugin itself.
Much admiration from my part of the world, and grateful for your contributions.
best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants