MenuManager

A plugin to enable management of menus within October CMS

Back to MenuManager Support

Sylvert
Sylvert

When i try to create a new menu give me a sql error:

"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'internal_url' in 'field list' (SQL: insert into `benfreke_menumanager_menus` (`title`, `description`, `enabled`, `is_external`, `internal_url`, `external_url`, `link_target`, `parameters`, `query_string`, `url`, `nest_left`, `nest_right`, `updated_at`, `created_at`) values (asd, , 1, 0, , , _self, , , , 1, 2, 2015-02-21 06:46:15, 2015-02-21 06:46:15))" on line 614 of D:\xampp\htdocs\octobercms\vendor\laravel\framework\src\Illuminate\Database\Connection.php

OctoberCms version: 205

MenuManager version: 1.3.4

Last updated

benfreke
benfreke

Interesting. It's been a while since I've looked at this code, so will double check my migration files. I'd be running a refresh on the plugin though, assuming you haven't gotten too far into development, to check that it isn't a buggy install.

Lucas[Keios]
Lucas[Keios]

Same happens on RC 210 with clean installation, seems something changed in FormController handling field configs (as it now tries to save data to model based on config, not present POST data (your modifyPost method works) - this can be fixed with adding Purgeable trait to your Menu model and by adding those fields to $purgeable array.

mja
mja

I have the same problem.

Mego
Mego

I have the same problem. I added columns called "internal_link" and "external_link" into the database, with datatype VARCHAR (255) and the saving works. But how can I get the full menu list in the frontend? Is there any function? Is there any menuManager::renderMenu() ? Which gives these output:?

Thank you for a help

benfreke
benfreke

This has been fixed in the latest release.

At some point in the last 6 months (I've had other priorities, sorry), OctoberCMS has changed the way information is saved that broke my logic. I've added fixes for this now, so if you are running 1.4.0 you should not have any issues with saving menu items anymore.

1-6 of 6