GithubHelp home page GithubHelp logo

Comments (4)

dchenk avatar dchenk commented on July 20, 2024

I'm getting the same exact error!
Can you please explain in more detail what's going on?

from pmpro-multiple-memberships-per-user.

xgat avatar xgat commented on July 20, 2024

Hi,
mysql doesn't like backticks in queries, to make the plugin work open pmpro-multiple-memberships-per-user/includes/functions.php with a text editor and remove all occurrences of `.
E.g. the following string
"SELECT `mlg.group` FROM {$wpdb->pmpro_membership_levels_groups} mlg WHERE `level` = %d"
should be replaced with
"SELECT mlg.group FROM {$wpdb->pmpro_membership_levels_groups} mlg WHERE level = %d"
Bye

from pmpro-multiple-memberships-per-user.

dchenk avatar dchenk commented on July 20, 2024

In the file includes/functions.php there are two instances where the backticks on "mlg.group" are causing errors. I had to remove both, and I suspect such backticks also caused an error for me just now when the plugin allowed a user to register for a second level in the group where they're only allowed one level at a time. The plugin was supposed to cancel the user's membership to the previous level.

Please fix this asap! Thanks a lot.

from pmpro-multiple-memberships-per-user.

eighty20results avatar eighty20results commented on July 20, 2024

Pull request to resolve this issue: #5

from pmpro-multiple-memberships-per-user.

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.