The "Navigation" may not be greater than 255 characters.

radu - 3 weeks ago

I am getting this error message when saving the reordered navigation in the accelerant theme settings page. I checked my settings table and the key column is indeed set with a length of 255 however the value column is text with a default length of 65535. Why am I getting this error message then?

Answer

ryanthompson - 2 weeks ago

@radu this should fix it for you! https://github.com/pyrocms/accelerant-theme/commit/fe0b2b67aa07588372b09bdbc374ca70ba88556c

piterden - 3 weeks ago

The shitcode is here core/pyrocms/accelerant-theme/src/Listener/ApplySorting.php

radu - 3 weeks ago

I thought the error was triggered by the save event. What's wrong in the handle function?

ryanthompson - 2 weeks ago

@piterden mind your manners if you could please. These people probably don't care to hear about "shitcode" - and I certainly don't appreciate your talk about my work that way wither. I can appreciate constructive criticism.

ryanthompson - 2 weeks ago

@radu this is related to the config.. give me a moment and I will revert @piterden 's PR that caused it :-P

ryanthompson - 2 weeks ago

@radu this should fix it for you! https://github.com/pyrocms/accelerant-theme/commit/fe0b2b67aa07588372b09bdbc374ca70ba88556c

radu - 2 weeks ago

Thanks @ryanthompson !

konzept - 2 weeks ago

How can I save the re-ordered navigation? I had the same issue and the text to textarea fix fixed the error for me too, but it still won't save the new order (also after clicking Update).

I made a theme around accelerant theme and everything worked on version 3.3.3, but now on 3.4+ this isn't working anymore. In my theme, I went from commit 91bed3b to 186221a (pyrocms/accelerant-theme).