Skip to content

[Solved] Error: Does not edit Menu items #100

@daltonmart

Description

@daltonmart

When editing a menu item the following error is generated:

[HTTP/2 500 Internal Server Error 1745ms]
type "mysqli_sql_exception"
code 500
message "Unknown column 'groups_menu.group_id' in 'field list'"
type "->"
args [ "SELECT test_menu.id, test_menu.parent_id, test_menu.active, test_menu.title, test_menu.icon, test_menu.route , test_groups_menu.menu_id, test_groups_menu.group_id, group_concat( groups_menu.group_id SEPARATOR '|') as group_id\nFROM test_menu\nLEFT JOIN test_groups_menu ON test_menu.id = test_groups_menu.menu_id\nLEFT JOIN test_auth_groups ON ​​test_groups_menu.group_id = test_auth_groups.id\nWHERE test_menu.id = '9'" ]
Object { file: "/home3/ensanuve/public_html/ci/vendor/agungsuiarto/boilerplate/src/Models/MenuModel.php", line: 98, function: "get", … }
line 98

To fix this, enclose the groups_menu.group_id field in quotes as follows: group_concat( 'groups_menu.group_id' SEPARATOR '|') in MenuModel.php line 94

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions