Fatal error
-
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.
- The topic ‘Fatal error’ is closed to new replies.