I also tried on sites running PHP version 7.4, and then 8.1.
With 8.1 on staging, I get an error after clicking the RUN EXPORT button:
This site can’t be reached–The webpage at /wp-admin/users.php?page=uewm_settings might be temporarily down or it may have moved permanently to a new web address.
Unsure if this is part of the problem or not. What’s the latest version of PHP that your plugin supports? I’d like to go to 8.1 on the live site but things aren’t looking so good where this plugin is concerned.
Thanks.
Thanks for the report, @sevans917.
What’s the latest version of PHP that your plugin supports?
PHP 7.4. I had checked this before, but to make sure, I just double-checked this. I installed the latest version of the plugin on a website that runs PHP 7.4. It generated the file without issues.
Now the CSV’s are empty, no data
What’s the size of the generated file? Zero bytes?
it’s been perfect until the last update
I changed the library that handles the CSV. I wonder if it is related to the issue.
What happens when you export with these settings:
1) Roles: empty, Columns: empty, Use custom field: unchecked
2) Same as 1, but with one single role
@loureirorg – thanks for the follow up.
With PHP 7.4, exports are empty (0kb) with these tests.
1) Roles: empty, Columns: empty, Use custom field: unchecked
2) Same as 1, but with one single role
Can’t test PHP 8.1 at the moment.
@sevans917 – Thanks, this helps to track down the problem.
Interesting that the PHP error (“might be temporarily down”) only happens when you press the button, which is when the CSV library is called for the first time.
I think it is something related to the CSV library. Another change I did was to use a temp file instead of using the memory – that was due to a limitation on the library. I wonder if your system can’t create temp files.
I will work on the issue this weekend. I will let you know how it goes.