• Resolved abezing

    (@abezing)


    This is what I get when I put the widget in the right column

    Warning: uasort() [function.uasort]: The argument should be an array in /home/xxxxxx/public_html/wp-content/plugins/wp-birthday-users/widget.php on line 77
    Birthdays

    Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/wp-content/plugins/wp-birthday-users/widget.php on line 87

    Please advise…Thanks

    I have WP-Poll installed as well if it makes any difference

    https://www.ads-software.com/extend/plugins/wp-birthday-users/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author omarke85

    (@omarke85)

    Do you have members with there birthday?
    It’s stranges, can you provide me your version, your machine info, php version, webserver version etc…

    I’m looking at it.

    Thread Starter abezing

    (@abezing)

    Version 0.1.7
    WordPress v 3.4.1

    windows 7 home
    php 5.1

    Thread Starter abezing

    (@abezing)

    I do have acouple with birthday, yes

    Plugin Author omarke85

    (@omarke85)

    Can you give me the steps you did. which options are on in the widget.
    Because at the moment I can’t reproduce the problem. There is possible an lack’s mistake in the code, but I think that’s only when there are no users with filled in birthday’s.
    Also are you sure your wordpress is on windows 7 home? because your error-messages shows like linux-paths

    Plugin Author omarke85

    (@omarke85)

    OKay can you help me with the following:

    edit the widget.php page (located for you: /home/xxxxxx/public_html/wp-content/plugins/wp-birthday-users/widget.php )
    replace from line 74 to 76 the follow:

    $usersarray = birthdayslist();
        $tocome = $usersarray['come'];
        $past = $usersarray['past'];

    to:

    $usersarray = birthdayslist();
        echo "<pre>";
        print_r($usersarray);
        echo "<br /> <hr /> <br />";
        $tocome = $usersarray['come'];
        $past = $usersarray['past'];
        print_r($tocome);
        echo "<br /> <hr /> <br />";
        print_r($past);
        echo "</pre>";

    or you can replace the widget.php file with this file: wp-birthday-users or directly the file: widget.php.txt
    (right click->save as->save it as widget.php (not .txt)

    go to you page where you get the error: give me the output that it will produce.

    Thread Starter abezing

    (@abezing)

    now I get this error after using your widget.php file
    ——————————————————
    Array
    (
    [info] => Array
    (
    [oldest] => admin
    [youngest] => admin
    [basedir] => /home/xxxxxx/public_html/wp-content/uploads/birthday.ics
    [baseurl] => https://ssgfel.com/wp-content/uploads/birthday.ics
    [today] => 0
    [average_age] => 18
    [total_users] => 1
    )

    [past] => Array
    (
    [1] => Array
    (
    [birthday_user] => admin
    [birthday_date] => 9/8/1994
    [birthday_share] => 1
    [birthday_age] =>
    [birthday_sort] => 08-09
    [birthday_newer] => 08
    )

    )

    )

    Array
    (
    [1] => Array
    (
    [birthday_user] => admin
    [birthday_date] => 9/8/1994
    [birthday_share] => 1
    [birthday_age] =>
    [birthday_sort] => 08-09
    [birthday_newer] => 08
    )

    )

    Warning: uasort() [function.uasort]: The argument should be an array in /home/xxxxx/public_html/wp-content/plugins/wp-birthday-users/widget.php on line 84
    —————————————————————

    Plugin Author omarke85

    (@omarke85)

    Thx,

    can you replace the widget.php file with this new file?
    get widget.php.txt and save it as widget.php in the wp-birthday-user folder.
    I think that will fix your problem

    Let me know.

    Thread Starter abezing

    (@abezing)

    Great, no errors, but no birthdays either. Just the header “Birthdays”. I have a couple of subscribers with birthday. please advise

    Plugin Author omarke85

    (@omarke85)

    No you don’t have. There was only one user with a birthday and that was the admin.
    If the user doesn’t set the option: share birthday info then it will not shown it.
    So there can be users that have filled in there birthday but if they don’t select sharing that info it will not been showed.
    (as admin you see which users has filled in there birthday on the page: birthdays) the widget is for all users.
    You can also set options for the widget, like if there are no birthday’s that the widget will be hidden, etc… and if you set past birthdays on (in the widget) then it will show the admin past birthday which is in your database: 9 august 1994
    If you give me a login I will register a birthday and you will see it will be appearing.
    And would you set the broken message on the plugin page back to working? ?? that would be nice

    Feel free to ask me anything

    Plugin Author omarke85

    (@omarke85)

    The error has been fixed in version 0.1.7, so all new users should not have the problem. Other users, can re download the plug-in if the have problems

    Thread Starter abezing

    (@abezing)

    Birthday
    Share anniversary info
    Share age info Show your age: 22 y, and this only if you share your anniversary info.

    I don’t see the share birthday info as you indicated in your response.
    I do have a subscriber with birthday and still does not show in the widget.

    As far as the log in, please send me an email address to send it to you.

    Plugin Author omarke85

    (@omarke85)

    try to send it to here: [email protected]
    Are you sure the user has Share anniversary info on? and is his birthday in the future or already past this year?

    Grtz

    Thread Starter abezing

    (@abezing)

    I am sorry, but i am using now a simple birthday plug in that is working. If i feel it is not the right solution, I’ll contact you again. Thanks for all your efforts.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: WP Birthday Users] eror on the widget’ is closed to new replies.