Forums Forums Search & Filter Pro Problem Add author fields | 500 internal Server Error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #45760

    HI, I have this problem every time I add the author field, i get 500 Internal Server Error.

    It is not, if the number of users who handle (15,000 users).

    I check your code, and I see that bring all users. You should have only users with role of author?

    How can I solve this problem?

    Trevor
    #45771

    The 500 error is quite common in WordPress. Have you run through the standard fixes:

    https://www.elegantthemes.com/blog/tips-tricks/how-to-fix-the-500-internal-server-error-on-your-wordpress-website

    Anonymous
    #45913

    Hi sir Trevor,

    Problem solved!. I worked what I wrote, but now I have the problem that I deployed all users.

    Also solve it by adding a line of code, in file: / > public > includes > class-search-filter-author-object-walker.php

    #code line 42.
    $query_args[‘role’] = ‘bloggers’; //in my case

    Documentation supporting me in wordpress.
    https://codex.wordpress.org/Function_Reference/get_users

    NOTA:
    It would be good if this option “roles” is added in the advanced options of the author field

    thanks and regards!

    Now you can close the post!

Viewing 3 posts - 1 through 3 (of 3 total)