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

Error add wiki permissions #114

Open
Julianhm9612 opened this issue Sep 19, 2018 · 7 comments
Open

Error add wiki permissions #114

Julianhm9612 opened this issue Sep 19, 2018 · 7 comments

Comments

@Julianhm9612
Copy link

I create a new user and add various permissions at the role admins, in the table role permissions exist this permissions, but the application not recognize this.

Application:

image

Database:

image

@Julianhm9612 Julianhm9612 changed the title Error with roles Error with permissions Sep 19, 2018
@Julianhm9612 Julianhm9612 changed the title Error with permissions Error add wiki permissions Sep 19, 2018
@PHCCorso
Copy link

Any updates on this? This yields the application totally unusable.

@devmanx
Copy link

devmanx commented Mar 8, 2019

to fix this problem you need execute this sql query:

INSERT INTO permissions ('id', 'name', 'created_at', 'updated_at') VALUES (1, 'admin', NULL, NULL), (2, 'view_page', NULL, NULL), (3, 'add_page', NULL, NULL), (4, 'delete_page', NULL, NULL), (5, 'add_comment', NULL, NULL), (6, 'delete_comment', NULL, NULL);

@PHCCorso @Julianhm9612

@daniellivingston
Copy link

@devmanx how do I execute this query? Sorry, I have no PHP experience at all.

@devmanx
Copy link

devmanx commented Jan 29, 2020

@daniellivingston You don't need php for that. Just open phpmyadmin and then click on SQL tab (you can see this button on image from first post in this thread) and then copy my sql to phpmyadmin and execute it :-)

@antipiot
Copy link

antipiot commented Jun 17, 2020

Hello!
My apologizes as i'm not a powerfull db user: i encounter this error:

MariaDB [opus]> INSERT INTO permissions ('id', 'name', 'created_at', 'updated_at') VALUES (1, 'admin', NULL, NULL), (2, 'view_page', NULL, NULL), (3, 'add_page', NULL, NULL), (4, 'delete_page', NULL, NULL), (5, 'add_comment', NULL, NULL), (6, 'delete_comment', NULL, NULL);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''id', 'name', 'created_at', 'updated_at') VALUES (1, 'admin', NULL, NULL), (2...' at line 1
Looks like there's a synthax error but i'm not used enough to find what and where :-/
Does any of you know what's hapening?

@pstoneTI
Copy link

Hello!
My apologizes as i'm not a powerfull db user: i encounter this error:

MariaDB [opus]> INSERT INTO permissions ('id', 'name', 'created_at', 'updated_at') VALUES (1, 'admin', NULL, NULL), (2, 'view_page', NULL, NULL), (3, 'add_page', NULL, NULL), (4, 'delete_page', NULL, NULL), (5, 'add_comment', NULL, NULL), (6, 'delete_comment', NULL, NULL);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''id', 'name', 'created_at', 'updated_at') VALUES (1, 'admin', NULL, NULL), (2...' at line 1
Looks like there's a synthax error but i'm not used enough to find what and where :-/
Does any of you know what's hapening?

Try this:
INSERT INTO permissions (id,name,created_at,updated_at) VALUES (1, 'admin', NULL, NULL), (2, 'view_page', NULL, NULL), (3, 'add_page', NULL, NULL), (4, 'delete_page', NULL, NULL), (5, 'add_comment', NULL, NULL), (6, 'delete_comment', NULL, NULL);

The Synthax error is with the ' of the column names.

@antipiot
Copy link

Thanks for your answer!
Sadly i have no time atm to try but will do for sure.

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

No branches or pull requests

6 participants