Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello!

    For some reason your rest request at this address returns forbidden;
    Does the post_id 7077 exists?
    If so, I guess a conflict with some plugin: can you please try to disable theme 1 by 1?

    (I guess you’re using an update version of WordPress)

    Here you can see how the rest response should looks like.

    When an error occours, Yasr gets the results from the dom element (that is an echo from the database value) just like if the load with ajax option is disabled.

    Let me know!

    Best,
    Dario

    Thread Starter robertkun

    (@robertkun)

    Thanks for your respond Dudo. ID7077 exists, and i am using this ID reference on my desktop version of the page. It correctly sources the star information from page ID7077 to the desktop version.

    However, ID7077 is a private page. The specific content for mobile plugin is using private pages for the mobile versions of the desktop page. I am not sure how this works, but from your end, could you tell me if the status “private” of ID7077 could cause a problem?

    I cannot think of any other plugins that might interact with YASR in some way..

    Plugin Contributor dudo

    (@dudo)

    I am not sure how this works, but from your end, could you tell me if the status “private” of ID7077 could cause a problem?

    It is.
    I’ve not (yet) a solution for this.
    I’ll check out the API about this later in this week and work for a solution.

    Thread Starter robertkun

    (@robertkun)

    Thats great to hear. Unfortunately the private mode is forced by the plugin. It forces this in order to avoid conflicts in google serp. I will keep watching this topic for any updates. Thanks.

    Thread Starter robertkun

    (@robertkun)

    Hello Dudo, do you happen to have an update on this by chance? Also, from your experience, have you seen google blocking rich snippets from private pages?

    As you know they changed the way they index pages. It will always prioritize the mobile version of a page (mobile first indexing). As mentioned before all my mobile pages are forced to have the status of private. I do notice that i am not showing up in google with any rich snippets / review snippets. They DO however show up within google structured data tool. So its not that they dont recognize the rich snippet, but for some reason they decide not to show it.

    Plugin Contributor dudo

    (@dudo)

    Hello Dudo, do you happen to have an update on this by chance?

    Not yet, have been a very busy week.

    Also, from your experience, have you seen google blocking rich snippets from private pages?

    As you know they changed the way they index pages. It will always prioritize the mobile version of a page (mobile first indexing). As mentioned before all my mobile pages are forced to have the status of private. I do notice that i am not showing up in google with any rich snippets / review snippets. They DO however show up within google structured data tool. So its not that they dont recognize the rich snippet, but for some reason they decide not to show it.

    I have no idea about this, as I far I know, if a post or page is marked as private, it will be never be indexed in serp. But you should try to asking this in a SEO oriented forum.

    Have a nice week end,
    Dario

    Plugin Contributor dudo

    (@dudo)

    I’ve looked for, there is no way to get private or draft posts by rest api for an user that is not authenticated.

    But maybe I don’t get the point here.

    I’ve tested your page here and google testing tool show results from yasr_overall_rating, that is NOT related to 7077 post_id but to the actual page.

    If you want instead show ratings from your users votes, you’ve to select “no” to ” Is this a review? ” question in the edit screen.
    More info here https://yetanotherstarsrating.com/docs/rich-snippet/reviewrating-and-aggregaterating/

    Thread Starter robertkun

    (@robertkun)

    Dudo, thanks for your reply. I just tested your suggestion on putting the “is this a review” status to no for both mobile and desktop.

    After i did this Google rich snippet tool is now picking up both review fragments, the overall rating, as well as the user voting. The message on the ajax call failing is still there as well.

    Considering i now have two rating elements. Do you know if google will prioritize one over the other? will it give any conflicts to have 2 differents review rating elements on the same page?

    Also, this page is an actual review of something, yet the status “is this a review” is now set to no. Does this have any hidden consequences behind the scenes so to speak?

    • This reply was modified 4 years, 4 months ago by robertkun.
    • This reply was modified 4 years, 4 months ago by robertkun.
    • This reply was modified 4 years, 4 months ago by robertkun.
    • This reply was modified 4 years, 4 months ago by robertkun.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘YASR ajax call failed’ is closed to new replies.