• Resolved prepu

    (@prepu)


    Hi, I have a problem using you plugin with ARYO Activity Log plugin. This plugin it is very useful because I can log what is happening in my site (login people, adding posts, woocommerce orders…). There is some kind of a problem because Aryo cannot log this activity and it shows in the header this message:

    Warning: Missing argument 2 for AAL_Hook_User::hooks_wp_login() in C:\xampp\htdocs\test2\wp-content\plugins\aryo-activity-log\hooks\class-aal-hook-user.php on line 6

    I have wrote in the ARYO Activity Log forum and the author tells me that is not his problem. It is a problem caused from IP Based Login. His words were: WordPress have ‘wp_login’ action with 2 arguments. But IP Based Login use same action but with one argument.

    It only happens when a user with the correct ip mask goes to the website and logins automaticly using your plugin.

    Can you fix this problem?

    Thank you.

    https://ww.wp.xz.cn/plugins/ip-based-login/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey..
    You can see the details here:
    http://ww.wp.xz.cn/support/topic/error-with-ip-based-login-plugin

    You just need add instance object for second argument.

    Best,
    Yakir

    Thread Starter prepu

    (@prepu)

    I hope the plugin author understands what to do…

    I have no idea.

    Yakir, thanks for you help (and your amazing fast answers, hehehe).

    You can change the line 155:

    do_action('wp_login', $username);

    To this line:

    do_action( 'wp_login', $username, $user );

    Let’s me know if the problem gone 🙂

    Thread Starter prepu

    (@prepu)

    Yakir, THANK YOU!!

    I was so easy…

    Now it has no problem. The only thing I can tell you is that now it doesn’t log ARYO Activity those people. It seems that nobody has login, GRRRR….

    Plugin Author brijeshk89

    (@brijeshk89)

    Thanks for reporting the issue.

    We will add this fix in the next version.

    Plugin Author brijeshk89

    (@brijeshk89)

    Hi,

    We have released version 1.3.5 which fixes the above mentioned issue.

    Nice 🙂

    Thread Starter prepu

    (@prepu)

    Yakir, did you notice that using the Ip base login your plugin (ARYO) does not log anything? It is strange…

    I don’t know, it’s need to work’s.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Error using the ARYO Activity Log’ is closed to new replies.