• Resolved Khürt Williams

    (@khurtwilliams)


    Hello,

    I’m encountering an issue with the Jetpack Social Notes feature on my self-hosted WordPress site. When I enable Social Notes and attempt to access the endpoint at **https://islandinthenet.com/sn/**, it redirects to random posts on my blog that have post titles starting with “sn” instead of displaying the Social Notes content.

    ### Site Details:
    – **Website URL:** https://islandinthenet.com
    – **WordPress Version:** 6.7.1
    – **Jetpack Version:** 14.1
    – **Permalink Structure:** /sample-post/
    – **Theme:** Minimalist Blogger X 1.5
    – **Other Relevant Plugins Installed:**

    ActivityPub
    Version 4.4.0 by Matthias Pfefferle & Automattic | Auto-updates disabled
    Advanced Database Cleaner PRO
    Version 3.2.10 by Younes JFR. | Auto-updates disabled
    Akismet Anti-spam: Spam Protection
    Version 5.3.5 by Automattic - Anti-spam Team | Auto-updates disabled
    Classic Editor
    Version 1.6.7 by WordPress Contributors | Auto-updates disabled
    Code Snippets
    Version 3.6.6.1 by Code Snippets Pro | Auto-updates disabled
    CookieYes | GDPR Cookie Consent
    Version 3.2.8 by CookieYes | Auto-updates disabled
    Enable Mastodon Apps
    Version 0.9.9 | Auto-updates disabled
    FSM Custom Featured Image Caption
    Version 1.24 by Fesomia | Auto-updates disabled
    GDPR Data Request Form
    Version 1.7 by audrasjb | Auto-updates disabled
    Health Check & Troubleshooting
    Version 1.7.1 by The www.remarpro.com community | Auto-updates disabled
    IndieNews
    Version 1.2.3 by Matthias Pfefferle | Auto-updates disabled
    IndieWeb
    Version 4.0.5 by IndieWebCamp WordPress Outreach Club | Auto-updates disabled
    Jetpack
    Version 14.1 by Automattic | Auto-updates disabled
    NodeInfo
    Version 2.3.1 by Matthias Pfefferle | Auto-updates disabled
    Post Kinds
    Version 3.7.3 by David Shanske | Auto-updates disabled
    Redis Object Cache
    Version 2.5.4 by Till Krüss | Auto-updates disabled
    SchedulePress
    Version 5.2.0 by WPDeveloper | Auto-updates disabled
    Syndication Links
    Version 4.5.1 by David Shanske | Auto-updates disabled
    WebFinger
    Version 3.2.7 by Matthias Pfefferle | Auto-updates disabled
    Webmention
    Version 5.3.3 by Matthias Pfefferle | Auto-updates disabled
    WebSub (FKA. PubSubHubbub)
    Version 3.2.1 by PubSubHubbub Team | Auto-updates disabled
    wp-Typography
    Version 5.9.1 by Peter Putzer | Auto-updates disabled

    ### Steps I’ve Taken to Troubleshoot:
    1. **Checked for Conflicting Slugs:** Deleted posts and pages with slugs similar to /sn/ (e.g., snap-reality, snagit-captures).
    2. **Flushed Rewrite Rules:** Saved permalink settings multiple times to regenerate rewrite rules.
    3. **Manually Reserved /sn/:** Created a page titled SN with the /sn/ slug to claim the endpoint, which stopped the redirect and displayed the page.
    4. **Cleared Cache:** Purged all caches (plugin-level, server-level, and CDN).

    ### Additional Context:
    – I am managing a large blog with over 6,500 posts, so manually checking every slug is not feasible.
    – I suspect there may be a conflict between the Social Notes custom post type and WordPress’s internal redirect or permalink handling.
    – I’ve tested the /sn/ endpoint with debugging tools but haven’t been able to pinpoint the source of the redirect.

    ### Request:
    Please advise on how to resolve this redirection issue. Is there a way to force Jetpack Social Notes to use a different base slug for its custom post type? Alternatively, are there known conflicts between Social Notes and specific permalink structures or plugins?

    Any guidance would be greatly appreciated.

    Thank you!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @khurtwilliams,

    Thank you for reporting this and for the details provided.

    I tried to replicate this with no success. Could you please try temporarily disabling the plugins, all of them except Jetpack to see if the issue persists? Additionally you can also try to enable a default theme while testing, like Twenty Twenty Four for example.

    Let us know if you can try this and how it goes.

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @khurtwilliams,

    Do you have updates about that, do you still need help? We usually close inactive threads after one week of no movement, but we want to make sure we’re all set before marking it as solved. Thanks!

    Thread Starter Khürt Williams

    (@khurtwilliams)

    @erania-pinnera @alinclamba I disabled all plug-ins leaving only Jetpack and Jetpack Social enabled. I tried Twenty Twenty Four, Twenty Twenty Sixteen, and other default themes.

    The issue persists. Anything else I can try?

    Thread Starter Khürt Williams

    (@khurtwilliams)

    @erania-pinnera @alinclamba

    Steps Taken to Troubleshoot

    1. Checked for Conflicting Slugs
    • Deleted posts and pages with slugs similar to /sn/, such as /snagit-captures/ and /snap-reality/.
    • This temporarily stopped some redirections but did not fully resolve the issue.
    • Claimed the /sn/ Slug
    • Created a page titled “SN” with the slug /sn/ to reserve the URL.
    • Initially, this displayed the page content but did not integrate with the Jetpack Social Notes feature.
    • Flushed Rewrite Rules
    • Saved permalinks in Settings > Permalinks to regenerate WordPress rewrite rules.
    • Temporarily added code to functions.php to flush rewrite rules manually:
      `
      add_action(‘init’, function() {
      flush_rewrite_rules();
      });
      `
    • Disabled Canonical Redirects
    • Temporarily disabled WordPress’s canonical redirect feature using:
      `
      remove_filter(‘template_redirect’, ‘redirect_canonical’);
      `
    • This had no effect on the redirection issue.
    • Tested for Plugin Conflicts
    • Deactivated all plugins except Jetpack to rule out conflicts.
    • Reactivated plugins one by one while testing the /sn/ endpoint.
    • No specific plugin was identified as the cause of the issue.
    • Checked .htaccess for Redirect Rules
    • Examined the .htaccess file on the server for any redirect rules that might conflict with /sn/.
    • Found no rules in .htaccess related to /sn/ or Jetpack.
    • Cleared Caches
    • Cleared all caches, including:
    • WordPress caching plugins (if applicable).
    • Server-side caching through my hosting provider.
    • CDN caches (e.g., Cloudflare).
    • Investigated Using Query Monitor
    • Installed Query Monitor to trace the redirection.
    • Found that the redirection is occurring within WordPress’s core URL handling but couldn’t pinpoint the exact source of the conflict.
    • Attempted to Adjust Jetpack Social Notes Slug
    • Added the following code to change the Social Notes slug to /social-notes/ instead of /sn/:
      `
      add_filter(‘register_post_type_args’, function($args, $post_type) {
      if (‘sn’ === $post_type) {
      $args[‘rewrite’][‘slug’] = ‘social-notes’;
      }
      return $args;
      }, 10, 2);
      `
    • This did not resolve the issue; /sn/ still redirected to random posts.

    <h2>Current Status</h2>
    <p>
    After attempting all the above steps, the /sn/ endpoint continues to redirect to seemingly random posts on the site, such as /snap-reality/. Even reserving the /sn/ slug with a page did not fully resolve the issue, as it conflicts with the intended functionality of Jetpack Social Notes.
    </p>

    <h2>Request for Assistance</h2>
    <p>
    I would appreciate guidance on the following:
    </p>

    1. How to correctly reserve the /sn/ endpoint for Jetpack Social Notes.
    2. Whether this issue could be caused by a deeper conflict in how Jetpack handles custom post types or rewrite rules.
    3. Any steps or code snippets to debug or resolve this issue effectively.

    <p>Thank you for your assistance!

    Plugin Author Manzoor Wani (a11n)

    (@manzoorwanijk)

    Hello @khurtwilliams

    I am Manzoor, a developer from the team responsible for Jetpack Social.

    Sorry about the issue you are facing.

    The issue needs some deeper troubleshooting than what has already been done.

    • Deactivate all the plugins except Jetpack/Social
    • Switch to some default WordPress theme
    • Just visit Settings > Permalinks page to ensure that rewrite rules are flushed. There is no need to Save Changes
    • Then check if the issue still persists

    Meanwhile, we will keep looking into the possible causes for the issue.

    Plugin Author Manzoor Wani (a11n)

    (@manzoorwanijk)

    I just checked and noticed that the WP REST API URL for Social Notes on your site (https://islandinthenet.com/wp-json/wp/v2/jetpack-social-note) returns

    {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}

    It should return a JSON list of Social Notes.

    That makes me wonder whether the Jetpack Social plugin is active or not. Just to clarify, Social Notes feature is available only in the Jetpack Social plugin and not in the main Jetpack plugin.

    Thread Starter Khürt Williams

    (@khurtwilliams)

    @manzoorwanijk please read the entire thread before responding.

    Hello Manzoor,

    Thank you for your response. I appreciate your efforts to assist with this issue.

    As mentioned earlier in the thread, I have already completed the steps you’ve outlined:
    1. Deactivated all plugins except Jetpack/Social.
    2. Switched to a default WordPress theme.
    3. Visited the **Settings > Permalinks** page to flush rewrite rules (without saving changes).

    Unfortunately, the issue still persists after following these steps. It seems like there might be another underlying cause.

    I had disabled the Jetpack Social Notes feature because, as stated earlier, it was causing random redirects on my site. However, to facilitate troubleshooting, I will re-enable it temporarily. That said, I want to emphasise that the Social Notes functionality does not work correctly, even when the Jetpack Social plugin is active.

    I would appreciate it if you could review the entire thread for additional context and let me know if there are any other specific troubleshooting steps or updates from your investigation.

    Please let me know if there’s any additional information or specific actions required to assist with your investigation.

    The issue started after 9 September 2024.

    Existing social notes:

    * https://islandinthenet.com/sn/119473/
    * https://islandinthenet.com/sn/119369/
    * https://islandinthenet.com/sn/116411/

    Thread Starter Khürt Williams

    (@khurtwilliams)

    @manzoorwanijk @erania-pinnera @alinclamba

    The problem was due to a conflicting rewrite rule in the .htaccess file:

    
    RewriteRule ^sn/?$ - [L]
    

    This rule blocked WordPress and the Jetpack Social Notes plugin from properly handling requests to /sn/ and its subpaths. Removing the rule and flushing the rewrite rules via **Settings > Permalinks** fixed the issue.

    That’s what happens when one has too many rules and reads too fast. PEBKAC!!!! Thanks to everyone for their troubleshooting suggestions—it’s much appreciated!

    Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @khurtwilliams,

    It’s grea to hear that you found the cause of the issue! Well done!

    That said, I’m going to mark the thread as resolved. If anything else comes up, feel free to reach out again.

    Happy New Year! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.