Title: Bad request args trigger fatal error
Last modified: April 1, 2025

---

# Bad request args trigger fatal error

 *  Resolved [leedxw](https://wordpress.org/support/users/leedxw/)
 * (@leedxw)
 * [1 year ago](https://wordpress.org/support/topic/bad-request-args-trigger-fatal-error/)
 * An unauthorised scan of the site resulted in fatal errors:
 * `PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string + int
   in /var/www/html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.
   php:1349`
 * I can reproduce this with `curl "http://localhost/events/list/?posts_per_page
   ='15"`
 * I can avoid the fatal error by forcing `events_per_page` to be an int.
 *     ```wp-block-code
       --- a/src/Tribe/Views/V2/View.php+++ b/src/Tribe/Views/V2/View.php@@ -1346,7 +1346,7 @@ class View implements View_Interface {                 * @since 5.0.0                */                $args = [-                       'posts_per_page'       => $context_arr['events_per_page'] + 1,+                       'posts_per_page'       => (int)$context_arr['events_per_page'] + 1,                        'paged'                => max( Arr::get_first_set( array_filter( $context_arr ), [                                'paged',                                'page',@@ -1415,7 +1415,7 @@ class View implements View_Interface {                        1                );-               return ( $current_page - 1 ) * $context->get( 'events_per_page' );+               return ( $current_page - 1 ) * (int)$context->get( 'events_per_page' );        }        /**
       ```
   
 * The logs were from a site running the-events-calendar 6.10.3

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

 *  Plugin Contributor [Victor Zarranz](https://wordpress.org/support/users/vicskf/)
 * (@vicskf)
 * [1 year ago](https://wordpress.org/support/topic/bad-request-args-trigger-fatal-error/#post-18394236)
 * Hi [@leedxw](https://wordpress.org/support/users/leedxw/) !
 * Thanks for taking the time to report this and providing the details about it.
 * I’ve been able to replicate the error just like you mention. We’ve logged an 
   internal bug report for this and we’re looking to fix this soon. Once we have
   a fix, we’ll let you know.
 * Internal Ref: TEC-5442
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year ago](https://wordpress.org/support/topic/bad-request-args-trigger-fatal-error/#post-18399907)
 * Hi [@leedxw](https://wordpress.org/support/users/leedxw/)
 * We prioritize bugs by taking into consideration the number of users impacted 
   as well as how the bug impacts one’s ability to run an event/sell tickets. I 
   don’t have a specific timeline as to when this issue will be resolved, but trust
   that our team is aware. Our team communicates updates and bug fixes in our [newsletter](https://theeventscalendar.com/newsletter-signup/)
   and via our [changelog](https://theeventscalendar.com/category/release-notes/).
   We’ll also update you through this thread once the fix is out.
 * I’m happy to help if any other questions are coming up around this topic, otherwise
   I’ll go ahead and close this ticket.
 *  Plugin Support [Chika Ibeneme](https://wordpress.org/support/users/chikaibeneme/)
 * (@chikaibeneme)
 * [1 year ago](https://wordpress.org/support/topic/bad-request-args-trigger-fatal-error/#post-18404521)
 * Hi [@leedxw](https://wordpress.org/support/users/leedxw/)
 * With our latest release we’ve made some performance improvements as well as resolve
   the issue that you had previously with the fatal.
    - [The Events Calendar 6.11.1](https://theeventscalendar.com/release-notes/the-events-calendar/the-events-calendar-6-11-1/)
    - [Event Tickets 5.21.1](https://theeventscalendar.com/release-notes/event-tickets/event-tickets-5-21-1/)
 * We ask that you upgrade to the latest plugin versions in order to take advantage
   of the performance improvements that we’ve made. As always, we recommend testing
   out the updates in a staging version of your site to ensure stability before 
   deploying.

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

The topic ‘Bad request args trigger fatal error’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Chika Ibeneme](https://wordpress.org/support/users/chikaibeneme/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/bad-request-args-trigger-fatal-error/#post-18404521)
 * Status: resolved