Support » Plugin: ManageWP Worker » wp_users should not be used – should use base_prefix

  • Resolved John Dorner

    (@jdorner)


    There is an error in the code for ManageWP – Worker version 4.2.25

    Line 25 of /worker/src/MWP/WordPress/Query/User.php

    The problem appears to be caused by having default wp_users table name hard coded rather than using the $table_prefix variable

    Currently, the code is:
    $users_count = $this->getDb()->get_var(‘SELECT COUNT(*) FROM wp_users’);

    I believe the code should be:
    $users_count = $this->getDb()->get_var(‘SELECT COUNT(*) FROM ‘ . $this->getDb()->base_prefix . ‘users’);

    I reported this through the ManageWP.com support ticket system, but was told to reactivate the Worker plugin ;-(

Viewing 1 replies (of 1 total)
  • Plugin Author Zrgisa

    (@zrgisa)

    Hi John,

    Sergej the lead developer on ManageWP here. You are most definitely right, that is a mistake on our part. I’ll make sure that we fix that and release a new Worker plugin version ASAP.

    Thank you very much for reporting this! I’m very sorry about the initial answer that you’ve got and that you had to post this here also.

    Best regards,
    Sergej

Viewing 1 replies (of 1 total)
  • The topic ‘wp_users should not be used – should use base_prefix’ is closed to new replies.