WordPress.org

Ready to get started?Download WordPress

Forums

Secure Invites
PHP Missing Argument Warning in 1.15 (8 posts)

  1. CPilko
    Member
    Posted 3 years ago #

    Hi there:

    Great plugin. I just updated to 1.15 this morning and I am now getting a warning in the "Invite a Friend" dashboard widget and in the profile area on the homepage for logged in users with permissions to invite other users:

    Warning: Missing argument 1 for secure_invite_user_invites_remaining(), called in ../wp-content/plugins/wordpress-mu-secure-invites/secure_invite.php on line 1769 and defined in ../wp-content/plugins/wordpress-mu-secure-invites/secure_invite.php on line 1954

    I'm running WP 3.1, BP 1.2.8, and PHP 5.2.14.

    http://wordpress.org/extend/plugins/wordpress-mu-secure-invites/

  2. CPilko
    Member
    Posted 3 years ago #

    Oh, as a follow up, multi-site is disabled on my WP install.

  3. jruiz
    Member
    Posted 3 years ago #

    I also had the same problem, besides losing the translation with each update. Since the plugin has only one file, I uploaded the old file, just changing the version 1.1.5. It's working for now ...

  4. CPilko
    Member
    Posted 3 years ago #

    The fix to this is edit the secure_invite.php file and search for secure_invite_user_invites_remaining() there are three instances at lines 1713, 1769 and 2139.

    Replace these with: secure_invite_user_invites_remaining($current_user->ID) and the problems will be fixed.

  5. karkajou automaton
    Member
    Posted 3 years ago #

    That fix works for WP 3.1.1 plus Buddypress.
    Thanks for posting it.

  6. Chris Taylor
    Member
    Plugin Author

    Posted 3 years ago #

    > The fix to this is edit the secure_invite.php file and search for secure_invite_user_invites_remaining() there are three instances at lines 1713, 1769 and 2139.

    Sorry about this, the latest version (1.2) will fix this bug.

    > losing the translation with each update

    I'm very sorry about this, in a future version I will do the translation stuff properly.

  7. YOUAREtehSCENE
    Member
    Posted 2 years ago #

    Warning: Division by zero in /home/yats/youarethescene.net/wp-content/plugins/wordpress-mu-secure-invites/secure_invite.php on line 1545

    any help?

  8. Chris Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    This was fixed in version 1.2.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic