• We have PHP version 8.2.19 and 1024 MB memory, but when we go to Users and try filter to show unverified users, we get a fatal error saying: “PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted”

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter DickRaney

    (@dickraney)

    When I increased the memory limit to 2048 MB I don’t get the error, but the results list doesn’t look right at all. I am filtering for “unverified” users and as you can see in this screenshot https://snipboard.io/9qEJ1A.jpg the user accounts show as verified. So something just isn’t working right. Also, 2048 MB seems like an very high memory requirement.

    Hi @dickraney,

    Thanks for pointing this out.

    I have escalated this with our development team. They will get back to you as soon as possible.

    Kind regards.

    Plugin Contributor Pablo Pacheco

    (@karzin)

    Hi @dickraney ,

    I believe I was able to fix the issue with the wrong user listing.

    Regarding the performance, I think I could improve the verified users filter a little bit, but I’m not sure I can do something about the unverified user filter. Maybe you can just try to reduce the “Number of items per page” by clicking on the “Screen option” at the top of the users page.

    Please, update to version 2.8.5 and let me know if it helps.

    Thread Starter DickRaney

    (@dickraney)

    I am only showing 20 users per page. I updated the plugin and didn’t get an error when filtering for either verified or unverified users. However when I reset my allowed memory from 2048MB to 1024MB, I do get a fatal error filtering for verified (26,482) users. No error filtering for unverified (190) users. So it is better but not perfect.

    Plugin Contributor Pablo Pacheco

    (@karzin)

    Thanks for letting me know.

    We do have some tricky options.

    Besides getting users by a specific user meta, we also have to consider users from the General > Ignore user roles option, and we also have to consider the option General > Current registered users.

    Maybe, if the Ignore user roles option has only one role, and the Current registered users option is enabled, it could run better, but even so, that’s not guaranteed.

    Despite that, we’re just using the action pre_get_users to get the users, a native WordPress hook. It should run well in theory.

    Anyway, I’ll try to look into it again. If I have any news about performance I’ll let you know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.