Title: PHP fatal error in posts.php
Last modified: September 17, 2024

---

# PHP fatal error in posts.php

 *  [ewd910](https://wordpress.org/support/users/ewd910/)
 * (@ewd910)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-in-posts-php/)
 * Hi, getting a lot of these errors on my production install. It seems to be an
   issue with WP core. Has anyone seen this before, and is there a way to fix it?
   Thanks
 *     ```wp-block-code
       [16-Sep-2024 20:54:58 UTC] PHP Fatal error:  Uncaught TypeError: urldecode(): Argument #1 ($string) must be of type string, array given in /var/app/current/wp-includes/post.php:5864Stack trace:#0 /var/app/current/wp-includes/post.php(5864): urldecode()#1 /var/app/current/wp-includes/class-wp-query.php(2152): get_page_by_path()#2 /var/app/current/wp-includes/class-wp-query.php(3852): WP_Query->get_posts()#3 /var/app/current/wp-includes/class-wp.php(696): WP_Query->query()#4 /var/app/current/wp-includes/class-wp.php(816): WP->query_posts()#5 /var/app/current/wp-includes/functions.php(1336): WP->main()#6 /var/app/current/wp-blog-header.php(16): wp()#7 /var/app/current/index.php(17): require('...')#8 {main}  thrown in /var/app/current/wp-includes/post.php on line 5864
       ```
   

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-in-posts-php/#post-18020414)
 * This problem may be a plugin or theme conflict. Please attempt to deactivate 
   all plugins and switch to the default Twenty Twenty-Four theme. If the problem
   goes away, re-activate them one by one to identify the source of the problem.
 * If you can install plugins, install [Health Check](https://wordpress.org/plugins/health-check/).
   On the troubleshooting tab, you can click the button to deactivate all plugins
   and change the theme for you while you’re still logged in **without affecting
   normal visitors to your site**.

Viewing 1 replies (of 1 total)

The topic ‘PHP fatal error in posts.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-in-posts-php/#post-18020414)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
