Hi, when trying to update to the latest version of this module, I get the following error:
Ett AJAX HTTP-fel inträffade
Resultatkod för HTTP: 200
Felsökningsinformation följer.
Sökväg: /update.php/start?id=171&op=do_nojs&op=do
Statustext: OK
Svarstext:
Fatal error: 'break' not in the 'loop' or 'switch' context in /home/fotosbyp/public_html/modules/search404/src/Controller/Search404Controller.php on line 83
and
Fatal error: 'break' not in the 'loop' or 'switch' context in /home/fotosbyp/public_html/modules/search404/src/Controller/Search404Controller.php on line 116
The errror message is in swedish, but I guess that the line "Fatal error" says all that is important. The error goes away when I add # in front of the break. But seems like a rather ugly solution.
Comments
Comment #2
anish.a commentedThe break is unnecessary there. Removing it.
Comment #3
ziomizar commentedThis issue was introduced in https://www.drupal.org/node/2770527.
I did a patch using 'return' instead of 'break' to mantain the same logic as in search404Goto().
Comment #4
ziomizar commentedComment #5
ziomizar commentedComment #6
anish.a commentedYes. Return works well. Have to verify that anyway, whether return is infact intended usage.
Comment #7
b0red commentedThanx for such a quick fix :)
Comment #8
mslabba_zyxware commentedThanks for the fix @Anish, @ziomizar
Comment #10
mslabba_zyxware commentedSuccessfully merged the patch
Comment #12
alan d. commentedShouldn't this be rolled into a new release ASAP?