Hey thanks for letting me know about the error.
I have tried to install the plugin on a clean wordpress site and it seems to work well and it doesn’t return any errors.
The plugintests site also doesn’t return any errors for the plugin (that site check if the plugin has any php warning and errors on clean install)
https://plugintests.com/plugins/advanced-301-and-302-redirect/latest
The secondary-page.php file on line 85 doesn’t contain anything that should cause problems and it doesn’t have any functions there also that line supposed to be used when you try and remove redirect from the page and not when you install it.
If that problem is caused when you install the plugin unfortunately there is no much i can do. I can’t fix the problem unless i am able to recreate it.
Try maybe to remove the plugin, redownload it and reinstall it.
If it doesn’t work it’s possible some other plugin or the theme clash with the plugin for some reason so it might be a good idea to update wordpress and the plugins if you are using older versions.
Happy to hear you got it working and thanks for the positive review