Git Product home page Git Product logo

Comments (14)

pryley avatar pryley commented on September 25, 2024 1

I think I found the culprit. There was a post_type check missing when listening for the transition_post_status hook.

You can either wait for the next update which will fix this, or rollback to v5.10.4

from site-reviews.

BenPam avatar BenPam commented on September 25, 2024

Same here, 5 pages empty with the "There are no reviews yet. Be the first one to write one." and the last with 7 reviews. It looks like when the plugin query the reviews, it gets reviews and some other type of post which can't be display

from site-reviews.

pryley avatar pryley commented on September 25, 2024

Have you tried running the Repair Review Relations tool?

from site-reviews.

LoganStrike avatar LoganStrike commented on September 25, 2024

Have you tried running the Repair Review Relations tool?

No, it says "Repair is unnecessary because your database tables use the InnoDB engine! ✨"

from site-reviews.

pryley avatar pryley commented on September 25, 2024

Did you previously at some point run the Optimise Your Database Tables tool to convert tables from MyISAM to InnoDB, or have your database tables always used InnoDB?

from site-reviews.

LoganStrike avatar LoganStrike commented on September 25, 2024

Did you previously at some point run the Optimise Your Database Tables tool to convert tables from MyISAM to InnoDB, or have your database tables always used InnoDB?

I never ran that tool. DB has always been InnoDB to my knowledge.

from site-reviews.

pryley avatar pryley commented on September 25, 2024

@LoganStrike It would help me if you would use the Contact Support section on the Help page to contact me directly and send the Console Log (if applicable) and the Site Reviews System Info.

@BenPam This sounds like a different issue. Please try running the Repair Review Relations tool, and then run the Optimise Your Database Tables tool.

from site-reviews.

pryley avatar pryley commented on September 25, 2024

@LoganStrike

The System Info you sent shows that you have seven 0-star reviews and four 5-star reviews (11 reviews total).

Is this still true?

image

The reason I ask is because I am trying to reproduce your problem on a local site. Site Reviews will display all 0-5 star reviews by default, but your site shows only the four 5-star reviews.

from site-reviews.

pryley avatar pryley commented on September 25, 2024

@LoganStrike Next, if you have access to PHPMyAdmin, TablePlus, or SequelPro (or any other MySQL client), would you be able to run the following SQL query and post a screenshot of the results?

SELECT
    r.ID,
    r.review_id,
    r.rating,
    r.is_approved,
    r.is_pinned, 
    p.post_author, 
    p.post_date, 
    p.post_title, 
    p.post_status, 
    p.post_type
FROM wp_glsr_ratings AS r 
INNER JOIN wp_posts AS p ON r.review_id = p.ID 
ORDER BY p.post_date desc

Note: If you are using a custom table prefix, make sure to update the table names in the query (e.g. wp_ is the default WordPress table prefix).

For example, here is a screenshot of what it looks like when I run that query:

image

from site-reviews.

pryley avatar pryley commented on September 25, 2024

@BenPam

  1. Did you ever run the "Optimise Your Database Tables" tool previously?
  2. Did you import the database (or any of the database tables) from a different WordPress website?

Here is something to try, please let me know if it works:

You will need to edit the following file in the plugin:

/wp-content/plugins/site-reviews/views/pages/tools/general/repair-review-relations.php

Replace all text in that file with the following code: https://pastebin.com/iYzAi3er

Once you have done that, you should be able to run the "Repair Review Relations" tool.

from site-reviews.

LoganStrike avatar LoganStrike commented on September 25, 2024

@pryley There are only 4 reviews total. When I search the posts table for site-review post type, there are only 4 rows returned there as well.

Here is the result pf the query:

Screen Shot 2021-09-07 at 12 14 09 PM

from site-reviews.

pryley avatar pryley commented on September 25, 2024

@LoganStrike Please see question no.2 in the reply above and the proposed solution.

from site-reviews.

LoganStrike avatar LoganStrike commented on September 25, 2024

@LoganStrike Please see question no.2 in the reply above and the proposed solution.

This site wasn't imported from anywhere. It started as a default Flywheel WordPress installation, and the 4 reviews were added by a logged-in administrator submitting each review via the front end form using [email protected] as the email for all of them.

This site will be used to create other WordPress installations using the Flywheel Blueprint feature, which is basically a saved WordPress instance that can be easily duplicated to use as a starting point for other sites.

The proposed solution seems to have fixed the issue. Do you know what caused it to happen in the first place? Do you anticipate that I'd need to do this repair process on all sites moving forward?

from site-reviews.

pryley avatar pryley commented on September 25, 2024

If you would like to stay on the latest version and patch the problem yourself, please see: ca33320

from site-reviews.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.