Title: PHP Fatal Error
Last modified: March 7, 2023

---

# PHP Fatal Error

 *  Resolved [jahrat](https://wordpress.org/support/users/jahrat/)
 * (@jahrat)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-348/)
 * I keep seeing this error in my error logs. However, there is no apparent effect
   on the front or backends that I notice.
 * **_PHP Fatal error: Uncaught TypeError: ltrim(): Argument #1 ($string) must be
   of type string, array given in /…/wp-includes/formatting.php:4379_**
 * The stack trace only refers to jetpack and the first lines read:
 * **0 /…/wp-includes/formatting.php(4379): ltrim(Array)**
   **1 /…/wp-content/plugins/
   jetpack/functions.opengraph.php(261): esc_url(Array)****2 /…/wp-includes/class-
   wp-hook.php(308): jetpack_og_tags(”)**
 * I have the rest of the stack trace available if required.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-348%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [JS (a11n)](https://wordpress.org/support/users/julesomattic/)
 * (@julesomattic)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-348/#post-16538017)
 * I’d recommend following these steps to check if another plugin is interfering
   with Jetpack and causing that error:
    1. Temporarily deactivate all plugins except Jetpack, and [clear your browser’s cache](https://wordpress.com/support/browser-issues/#browser-cache).
    2. Then, check for the PHP error again. If the PHP error is gone, then you know
       another plugin is conflicting here.
    3. You can reactivate plugins one by one, checking checking for the PHP error after
       each one, to discover which plugin is causing the problem.
    4. You can leave that other plugin deactivated and/or contact whoever makes that
       plugin for help resolving the issue it’s causing.
 * If deactivating plugins doesn’t help, it may be your theme. You can follow these
   steps to check if your theme is causing the problem.
    1. Temporarily activate a default WordPress theme like [Twenty Twenty-One](https://wordpress.org/themes/twentytwentyone/).
    2. Then, try checking for the PHP error again. If the PHP error is gone, then you
       know it’s a problem with the theme. You can contact whoever makes the theme 
       for help resolving the issue it’s causing.
 * If the PHP error remains with all other plugins deactivated and a default theme
   active, please send us the full error message so we can look into it You can 
   send it [via this contact form](https://jetpack.com/contact-support/?rel=support&hpi=1)
   and mention this thread.
 *  Plugin Contributor [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-348/#post-16560780)
 * Hi [@jahrat](https://wordpress.org/support/users/jahrat/),
 * It’s been one week since this topic was last updated. I’m going to mark this 
   thread as solved. If you have any further questions or need more help, you’re
   welcome to open another thread here. Cheers!

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

The topic ‘PHP Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * 2 replies
 * 4 participants
 * Last reply from: [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-348/#post-16560780)
 * Status: resolved