• Resolved Sapphire

    (@sapphire)


    When I try to edit some of the tags on one of my WordPress sites, I get an error message at the top after hitting save: “Tag not edited.” I can edit categories, and I can edit some tags, and everything else on the blog seems fine. I have several other websites with similar WordPress setups, and they are all fine. I’ve tried deactivating all the plugins and testing it. That didn’t help. I’ve been searching online for a solution, but if anyone has found it, they didn’t post it. It seems like these specific tags have been corrupted somehow. What can I do about it?

    • This topic was modified 4 years, 5 months ago by Sapphire. Reason: more testing yielded more info

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Moderator t-p

    (@t-p)

    I’ve tried deactivating all the plugins and testing it.

    Have also tried switching to the unedited default Theme (Twenty Twenty, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins)?

    Thread Starter Sapphire

    (@sapphire)

    On your suggestion, I just did. It didn’t work. I thought it was going to, because it took the extra Genesis options away from the tags editing page, and I thought maybe that had been part of it. But the edit still won’t take on these specific tags.

    Moderator t-p

    (@t-p)

    Before viewing default theme, did you clear all caches from browser, plugin, server…?

    Thread Starter Sapphire

    (@sapphire)

    No, but I did that now and tried again – nothing.

    Moderator t-p

    (@t-p)

    Before this issue, what did you do at the site — any change/modification, update/install theme/plugins, WP…

    Thread Starter Sapphire

    (@sapphire)

    Nothing I know of, but I don’t know when this started exactly. I first noticed it a few months ago but had more urgent work and couldn’t deal with it. I change plugins from time to time, so this could easily have been caused by a new or updated plugin, but since deactivating the current plugins doesn’t help, I don’t know how to figure out what’s happened. Or how to fix it.

    Some ideas:

    How are you trying to edit these tags?
    Via quick edit in the file list? or from within the block editor?

    Look for error messages in the browser console.

    Enable debugging by putting the following in wp-config.php

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    See: https://www.ads-software.com/support/article/debugging-in-wordpress/
    (remember to put things back to normal afterwards.

    Thread Starter Sapphire

    (@sapphire)

    I was trying to edit from the main page for the tag, where you can enter a description. I just now also tried it from the quick edit option and got an error message: “Parent term does not exist.”

    As for the debugging, I haven’t used this tool before. I followed your instructions, didn’t get far with Firefox’s console, switched to Chrome, and got this:

    onloadwff.js:71 Uncaught Error: Extension context invalidated.
    at onLoad (onloadwff.js:71)
    at onloadwff.js:71
    onLoad @ onloadwff.js:71
    (anonymous) @ onloadwff.js:71
    onloadwff.js:71 Uncaught Error: Extension context invalidated.
    at onloadwff.js:71
    at onloadwff.js:71

    • This reply was modified 4 years, 5 months ago by Sapphire.

    Hmm. That onloadwff.js sounds like something irrelevant. But I don’t know for sure.

    Can you try the PHP debugging constants in wp-config.php, too?

    Thread Starter Sapphire

    (@sapphire)

    I thought that’s what I did? LOL. I made the changes to wp-config.php, and then I looked in the developer console for the error messages. But I may have looked at the wrong tab or completely misunderstood – my experience with the developer console is just using the Inspector to find CSS issues.

    The browser console will show you Javascript errors and files that can’t be fetched, etc.

    The debugging constants in wp-config.php will save information about any PHP errors that happen on the server. The default behavior is to output information about any errors directly into the html output, which is useless when the output html isn’t shown in the browser, but rather consumed by some Javascript. That’s why we asked this function to log this to a file.
    The article I linked to tells you more about which file to look at, by default /wp-content/debug.log

    So I looked at that file just now. It contains no error messages, just two different types of “notices”. One of these notices hint that you may need to check if you should update the plugin psn-pagespeed-ninja or at least re-initiate it. (Can perhaps be done by deactivating and then activating the plugin again).

    For the other notice, I don’t really know how to construe it.

    Anyway, you may delete that log file now. And I’m at loss, too.

    Thread Starter Sapphire

    (@sapphire)

    I guess I will have to somehow reconstruct all the tags from scratch. The problem is that the tag pages rank well in Google and I don’t want WordPress to change the URL on me. If I go into the database and change the existing URL, then recreate my tag in the WordPress interface, and then attach it all the posts, should that work? I’ve confirmed I can make changes inside the database.

    A way to preserve “google points” could be to att 301 redirects in .htaccess (if your server is running Apache) so that visitors to your old tags immediately get redirected to the new corresponding tag instead.

    It’s a little bit nerdy, but if we’re talking about not more than some 30-40 redirects, then that might be a solution.

    Thread Starter Sapphire

    (@sapphire)

    You lose about 15% of your SEO value when you create a redirect and sometimes it never comes back. I really need to keep it the same link.

    Thread Starter Sapphire

    (@sapphire)

    My database method works! I can fix these manually, and the new replacement tags are editable.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘“Tag not edited” error’ is closed to new replies.