-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: User indexing #2718
Comments
This is a sammple of the users errors that I get 878 (User): [mapper_parsing_exception] failed to parse field [user_registered] of type [date] in document with id '878' |
This issue is a follow-up of #2651. @blenkhn, as I said in that other issue:
Did you already try the second part of my recommendation? What do you have in that |
well isn't that interesting...... Seems that somewhere along the lines there is no date in that field 0000-00-00 00:00:00 is what is there. thanks for clarifying. I was looking in the wrong areas |
No problem, @blenkhn. Do you mind sharing how those users are created? |
Those users were imported via coffee import tool and the date was not set on import |
I have fixed the date in the users table and now the indexing stops at 99%. Been sitting there all day. Is there something that I need to fix? |
Hi @blenkhn. What is the last message you see there? Did you try doing the sync via WP-CLI with the |
Can you repost the complete comand for the wp-cli? I did find these errors which I find interesting. 472 (User): [illegal_argument_exception] Limit of total fields [5000] in index [###-user] has been exceeded |
For that specific error we have two articles: Basically, you are trying to index too many user meta fields, so you'll have to write some code to allow only some of them. |
I have a new error as per the command line. I hope this helps. Do you need any log files from me? Fatal error: Maximum execution time of 300 seconds exceeded in /home/keyinnov/public_html/wp-content/plugins/elasticpress/includes/classes/Indexable.php on line 497 |
There seems to be a time limit on the scripts, where might I find the location to change teh time limit? php.ini for the server? I still get the errors above. how many meta fields should be there? There have not been very many added to the users at all. most certainly not 5000 fields, or is that the number of characters? |
Is there a way to list the fields being indexed for the users and other post types? So that I can pick and choose which ones to be indexed? Have you considered adding a page to allow people to choose? |
Hi @blenkhn, You can change the max execution time also in the script call, using something like
Regarding the meta fields number, as stated in the first link I sent:
To list all fields, the easiest way is to list them with a SQL query like:
If you have any repeatable field in ACF, for example Regarding listing and allowing the admin user to pick and choose, we have plans for it but related to posts (see #1690.) It is highly uncommon to see that limit being hit for users but we'll keep it under our radar. As all the questions were answered at this point, I'm going ahead and closing the issue. Feel free to leave any further questions or comments and we can reopen it if needed. Thanks. |
I now have an out of memory issue. mmap() failed: [12] Cannot allocate memory |
Describe the bug
Constant errors indexing users. You have told me that my code regarding the users is flawed. I have only added ACF fields for the users and you have told em that ACF fields are indexed. So I do not know why I am getting the errors.
searching for an email address returns way too much. why can't it just search for that email address as a whole. WP-CLI has now been installed. Can you please let me know what the commands are to send you the information you want?
Steps to Reproduce
Expected behavior
one email address
The text was updated successfully, but these errors were encountered: