• Just installed, activated and clicked on “View created codes” from /wp-admin/plugins.php?page=manage_invites .. and got this warning.

    No database selected
    ( ! ) Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in \wp-content\plugins\wp-invites\wp-invites.php on line 175

    Warning when generating codes
    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in \wp-content\plugins\wp-invites\wp-invites.php on line 47

    Why is this plugin using mysql_query, etc and not $wpdb?!?!!?

    https://www.ads-software.com/plugins/wp-invites/

Viewing 8 replies - 1 through 8 (of 8 total)
  • I am using WordPress version: 4.0 and I get the same warnings.

    Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in ..../wp-content/plugins/wp-invites/wp-invites.php on line 173
    
    Warning: mysql_query(): A link to the server could not be established in ..../wp-content/plugins/wp-invites/wp-invites.php on line 173
    Access denied for user 'root'@'localhost' (using password: NO)
    
    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in ..../wp-content/plugins/wp-invites/wp-invites.php on line 175
    Plugin Author Jehy

    (@jehy)

    Hello. Please, try version 2.30 – I just updated it after two years ??

    Hi Jehy,

    Version 2.3 generates the codes without error but once I’ve generated the code, I can’t access the settings page (add,view,generate etc) anymore. I get the following error:
    “You do not have sufficient permissions to access this page.”

    Plugin Author Jehy

    (@jehy)

    Hello! Are you sure that you activated the plugin?
    Have you got buddypress or wordpress MU installed?

    Yes, the plugin is activated, and buddy press is installed and works fine.
    Also I get the prompt for invitation code in the BP registration page. Only problem I have is the WP-Invites plugin settings cannot be accessed anymore.
    I don’t have wordpress MU installed, is this a pre-requisite ?

    Plugin Author Jehy

    (@jehy)

    Please try updating to 2.41 version.
    In plugin code, there were some options for BP and MU which are obsolete now and could cause problems.

    Looking forward to your feedback!

    All the previous issues have been resolved, but the plugin does not validate the invitation code.
    If I leave the “invite code” field empty or enter something, registration will be still successful.

    Plugin Author Jehy

    (@jehy)

    please try 2.42 – seems like I forgot to add validation for buddypress.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given’ is closed to new replies.