Support Forum

Unable to Move Forum

CB Chandler Bolt
Chandler Bolt
Member

Hi,

I’ve created a new forum, but am unable to move it to the top of my list.
simplepress-forum-not_movable.png

I have repeatedly dragged to the right position, saved, and yet, upon page reload, it’s back in this spot.

WP Version 5.1.1

SimplePress Version 6.0.6 

Can someone please offer suggestions as to how to fix?

Thanks,

Mark

5 Answers

New Answer

SP Simple Press
Simple Press
Admin

Hi:

Can you check to see if there’s a javascript error being thrown when you click the save button?

Thanks.

CB Chandler Bolt
Chandler Bolt
Member

No JS error in the console or the Simple:Press error log

SP Simple Press
Simple Press
Admin

Hi:

Thanks for checking.  We’ll try to dig into this more over the weekend and early next week and get back to you on it.  We added an issue report on github to keep track of this and will update it and you next week with what we find.  You can find a link to the github issue here: https://github.com/Simple-Press/simple-press/issues/54

Thanks for the report.  

SP Simple Press
Simple Press
Admin

Hi:

We’ve confirmed that this is an issue and have applied a fix for it that will go out in the next version.

For now, if you like, you can modify the file adminpanel-forumssupportspa-forums-save.php.

In that file, go to line 1156.  It should show as:

parse_str(SP()->filters->str($_POST['spForumsOrder']), $list);

replace that entire line with this:

parse_str(filter_input(INPUT_POST, 'spForumsOrder', FILTER_SANITIZE_URL), $list);

This is not the final fix.  The final fix involves creating a new function in our api files but this is less complicated to describe and will resolve the issue for you temporarily.  

Thanks for bringing this to our attention.

CB Chandler Bolt
Chandler Bolt
Member

This does resolve the issue. Forums are movable now
Thank you for the quick solution! Look forward to the permanent fix too.

Mark