Coder Social home page Coder Social logo

Error add wiki permissions about opus HOT 7 OPEN

Julianhm9612 avatar Julianhm9612 commented on September 15, 2024
Error add wiki permissions

from opus.

Comments (7)

devmanx avatar devmanx commented on September 15, 2024 1

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

from opus.

devmanx avatar devmanx commented on September 15, 2024 1

@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 :-)

from opus.

PHCCorso avatar PHCCorso commented on September 15, 2024

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

from opus.

daniellivingston avatar daniellivingston commented on September 15, 2024

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

from opus.

antipiot avatar antipiot commented on September 15, 2024

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?

from opus.

pstoneTI avatar pstoneTI commented on September 15, 2024

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.

from opus.

antipiot avatar antipiot commented on September 15, 2024

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

from opus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.