• hi

    I’m having issues with related posts. Last week it was working, but now its empty.

    Here’s some info:

    https://flexperto.assets.camp is the website

    https://flexperto.assets.camp/de/flexperto-grundungsmitglied-und-ceo-felix-im-interview/?relatedposts=1 here you can see that item is empty.
    {"version":"20150408","show_thumbnails":false,"items":[]}

    Posts are indexed 100%.

    I already disabled each and every plugin, also changed the theme and the issue remains.

    On https://jetpack.me/support/debug/ it says that “Everything looks great! All tests have passed for flexperto.assets.camp…”, but at https://flexperto.assets.camp/wp-admin/admin.php?page=jetpack-debugger i have the following error:

    It looks like your site can not communicate properly with Jetpack.
    
    SELF:
    	Array
    (
        [headers] => Array
            (
                [server] => nginx
                [date] => Thu, 08 Oct 2015 10:02:48 GMT
                [content-type] => text/plain;charset=utf-8
                [connection] => close
                [x-pingback] => https://jetpack.wordpress.com/xmlrpc.php
                [expires] => Wed, 11 Jan 1984 05:00:00 GMT
                [cache-control] => no-cache, must-revalidate, max-age=60
                [pragma] => no-cache
                [x-hacker] => Jetpack Test
                [x-ac] => 3.fra _dca
            )
    
        [body] => {"error":"XML-RPC is not responding correctly ( 404 )","error_description":"It looks like XML-RPC is not responding correctly. Please make sure XML-RPC is turned on for your site and is set up to respond to all content types. You can test this yourself by running the following command from the command line:
    curl -A 'Jetpack by WordPress.com' -d '<methodCall><methodName>demo.sayHello<\/methodName><\/methodCall>' http:\/\/www.flexperto.assets.camp\/en\/xmlrpc.php<\/code><\/blockquote><p>The answer should be:<\/p>
    <?xml version="1.0" encoding="UTF-8"?>\n<methodResponse>\n  <params>\n    <param>\n      <value>\n      <string>Hello!<\/string>\n      <\/value>\n    <\/param>\n  <\/params>\n<\/methodResponse><\/pre><\/code><\/blockquote>"}
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [filename] =>
    )

    It seems that my XMLRPC file is ok.
    On frontend, I can see

    <div id="jp-relatedposts" class="jp-relatedposts">
    
    </div>

    but it is empty as well, also, there is a css rule to hide it:

    #jp-relatedposts {
        display: none;

    , from jetpack.css:4

    well... don't know what to do anymore.
    I'll wait for your contact
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pedger

    (@pedger)

    oh, sorry… didn’t close a “pre” tag correctly, i guess…

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Your site doesn’t seem to be properly connected to WordPress.com at the moment, most likely because of the way you developed the site locally and then pushed changes to the live site. It appears you pushed some dummy Jetpack options as well. Could you try the following:

    1) Go the Jetpack menu in your dashboard
    2) Click on “My Jetpack” at the top of the page.
    3) Click on “Disconnect Site from WordPress.com” if your site is currently connected to WordPress.com.
    4) Confirm the disconnection.
    5) Click on the Connect button to connect your site to WordPress.com again.

    Once you’ve done so, go to the Jetpack Debug page again, and hit the Reindex button.

    Let me know how it goes.

    Thread Starter pedger

    (@pedger)

    Hi Jeremy

    It didn’t work.

    I tried also with another wp.com account I have, just in case…. same behaviour.

    What do you have to say about https://jetpack.me/support/debug/ showing one info and debug page from my site stating another? Is this a bug in jetpack? ??

    Do you have any clue on what have I done wrong? It is indeed the first time I use jetpack, and I installed on my localhost because I wanted to show related posts in another location than right next to content, using https://jetpack.me/support/customize-related-posts/ customizations . I tried to use some fake related posts content that I found instructions somewhere but didn’t suceeded. Then, I uploaded the database using “wp-cli search-replace”. It didn’t work at first, but someday out of the blue it started working. I had to change some CSS for that and had it disabled by commenting the code in my theme that echoes the shortcode at some point of single.php. When I turned it back on, it never worked again.

    Is there anyway for me to check the dummy content I inserted, or/and a way for me to check my database for erroneous data?

    let’s start from that.

    Ah, a remark. https://flexperto.assets.camp is a staging server. We will change to the official URL soon, I imagine I’ll have the same problem again, am I right?

    thanks.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    It didn’t work.

    Unfortunately, your site still isn’t properly connected to WordPress.com.

    What do you have to say about https://jetpack.me/support/debug/ showing one info and debug page from my site stating another? Is this a bug in jetpack? ??

    That’s most likely caused by the plugin you use to handle multiple languages on your site. The redirection to /en confuses the debugger.

    Could you try to deactivate that plugin, and then try reconnecting Jetpack to WordPress.com once again?

    Is there anyway for me to check the dummy content I inserted, or/and a way for me to check my database for erroneous data?

    I don’t have access to your database, so I won’t be able to help you there. You could, however, use a tool like PHPMyadmin to check your database tables manually. Most hosting providers offer PHPMyadmin as one of their database tools.

    On WordPress.com’s end, we have https://flexperto.assets.camp set as both your WordPress address and Site address values.

    We will change to the official URL soon, I imagine I’ll have the same problem again, am I right?

    Whenever you change your site URL, you’ll need to disconnect and reconnect Jetpack to WordPress to force an update of your Jetpack settings. If you don’t do it yourself, a prompt will appear in the Jetpack menu, suggesting that you update your Jetpack settings.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Related posts empty / not sure if jetpack is working’ is closed to new replies.