• Resolved studio4

    (@studio4)


    Experiencing an issue with this plugin. Specifically on line 63 of /plugins/ultimate-member/includes/core/class-user-posts.php although more accurately on line 60.

    The error is as follows:

    Uncaught Exception: Cannot use object of type WP_Query as array (View: /httpdocs/wp-content/themes/xxx/resources/views/partials/content-page.blade.php) (View: /httpdocs/wp-content/themes/xxx/resources/views/partials/content-page.blade.php) in /httpdocs/wp-content/plugins/ultimate-member/includes/core/class-user-posts.php on line 63

    Line 60:
    $args = apply_filters( 'um_profile_query_make_posts', $args );

    This changes $args from a simple array into a WP_Query object which causes a fatal error on line 63 when additional variables are added to the array:

    $args['posts_per_page'] = -1;

    I’ve commented out line 60 for now but it would be helpful if you could take a look at this.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @studio4

    Sorry for the late response.

    Could you please check if the issue still exist in the latest version on your end?

    Feel free to re-open this thread if there’s any question that may come up.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error’ is closed to new replies.