ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: kode54 on February 10, 2018, 01:39:03 am

Title: [1.1.1] Admin Search for Members always times out
Post by: kode54 on February 10, 2018, 01:39:03 am
When using the Admin page, Search for Members, it always times out.

QuoteYour session timed out while posting. Please go back and try again.

There's a block of print_r'd array crap at the top of the page, too:

Code: [Select]
Array
(
    [mem_id] => Array
        (
            [db_fields] => Array
                (
                    [0] => id_member
                )

            [type] => int
            [range] => 1
        )

    [age] => Array
        (
            [db_fields] => Array
                (
                    [0] => birthdate
                )

            [type] => age
            [range] => 1
        )

    [posts] => Array
        (
            [db_fields] => Array
                (
                    [0] => posts
                )

            [type] => int
            [range] => 1
        )

    [reg_date] => Array
        (
            [db_fields] => Array
                (
                    [0] => date_registered
                )

            [type] => date
            [range] => 1
        )

    [last_online] => Array
        (
            [db_fields] => Array
                (
                    [0] => last_login
                )

            [type] => date
            [range] => 1
        )

    [activated] => Array
        (
            [db_fields] => Array
                (
                    [0] => is_activated
                )

            [type] => checkbox
            [values] => Array
                (
                    [0] => 0
                    [1] => 1
                    [2] => 11
                )

        )

    [membername] => Array
        (
            [db_fields] => Array
                (
                    [0] => member_name
                    [1] => real_name
                )

            [type] => string
        )

    [email] => Array
        (
            [db_fields] => Array
                (
                    [0] => email_address
                )

            [type] => string
        )

    [website] => Array
        (
            [db_fields] => Array
                (
                    [0] => website_title
                    [1] => website_url
                )

            [type] => string
        )

    [ip] => Array
        (
            [db_fields] => Array
                (
                    [0] => member_ip
                )

            [type] => string
        )

)
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: emanuele on February 10, 2018, 01:48:46 am
Have debug code left around is embarassing... :-[
I'm still without internet connection for the main computer, so I cannot even work on the release I wanted to do. :-\
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: emanuele on February 20, 2018, 05:44:18 pm
hmm...
I'm trying to test this one locally and on this forum, but I can't reproduce it.
Do you search anything specifically? age? id? user name? dates?
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: kode54 on February 20, 2018, 06:46:28 pm
Name. Maybe it has something to do with having Stop Spammer installed?
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: emanuele on February 21, 2018, 02:37:56 am
hmm... where is the download of the Stop Spammer?
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: kode54 on February 21, 2018, 02:43:38 am
Here it is: https://www.elkarte.net/community/index.php?topic=4277.0

Yeah, I see the developer of this port has been active here recently, but hasn't updated this project in over a year.
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: emanuele on February 21, 2018, 07:24:00 am
https://github.com/Frenzie/elk-stop-spammer/issues/1
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: Frenzie on February 21, 2018, 08:17:07 am
@kode54 Thanks for finding bugs! The not updating part mostly just means that it works well enough, partially that I "am" waiting for the release of 1.1. ;) It mostly just needs a bit of a cleanup, as also demonstrated by the print_r. The core functionality went through years of SMF-based development, so it should be fairly robust.

Was the timeout related to Stop Spammer or is the only issue the print_r I left lying around?
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: emanuele on February 22, 2018, 03:11:00 pm
@kode54 can you disable the addon and try if the search works properly?
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: kode54 on February 22, 2018, 07:36:31 pm
Yup, that fixes it. But I'm going to keep it enabled anyway, since it seems to be blocking spammers.
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: emanuele on February 23, 2018, 04:39:58 am
Good, then I'll move this one out. :)
Title: Re: [1.1.1] Admin Search for Members always times out
Post by: Frenzie on February 24, 2018, 10:39:09 am
Alright, I created a new release: https://github.com/Frenzie/elk-stop-spammer/releases/tag/v3.0-alpha3