Cannot Delete a Single Redirect
-
Just installed this 301 Redirect plugin version 2.72 on my WordPress 4.9.7 site.
Looks good.I just see one problem right out of the gate.
After I created my first redirect, I could not delete it.
I click on the Delete button, I get a confirmation dialog, I press OK, and nothing happens.In the browser’s web inspector, the first thing I saw was this GET request for https://ideas.dev45.hallmark.com/wp-admin/options-general.php?page=eps_redirects&delete_redirect=1. It returned the 301 Redirects web page and the redirect was not deleted.
When I click on the Delete button again, I get a different set of symptoms.
I see a POST to https://ideas.dev45.hallmark.com/wp-admin/admin-ajax.php with the following request parameters: action=eps_redirect_delete_entry&_ajax_nonce=10f7ac1e18
Then I see a JavaScript error: `Uncaught SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
<anonymous> https://ideas.dev45.hallmark.com/wp-content/plugins/eps-301-redirects/js/scripts.js?ver=4.9.7:195
<anonymous> https://ideas.dev45.hallmark.com/wp-content/plugins/eps-301-redirects/js/scripts.js?ver=4.9.7:189
<anonymous> https://ideas.dev45.hallmark.com/wp-content/plugins/eps-301-redirects/js/scripts.js?ver=4.9.7:177`Now I can tell from the code in scripts.js line 195 that it was not able to read a data-id attribute from the Delete button element.
When I manually add the data-id=”1″ attribute too the Delete button (an anchor tag), then when I click on the Delete button the redirect is deleted.
Hope this information helps you fix this issue quickly.
Thanks!
The topic ‘Cannot Delete a Single Redirect’ is closed to new replies.