• Resolved jahrat

    (@jahrat)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.
    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.
    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 and mention this thread.

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @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.