Title: Error with php 8.3
Last modified: October 6, 2026

---

# Error with php 8.3

 *  [valentinb](https://wordpress.org/support/users/valentinb/)
 * (@valentinb)
 * [3 days, 21 hours ago](https://wordpress.org/support/topic/error-with-php-8-3-5/)
 * Hello,
 * Since switching to PHP 8.3, none of the snippets are working, and I am getting
   the following error: `wp-content/plugins/insert-php/includes/class.execute.snippet.
   php(808) : eval()'d code on line 4`.
 * Unfortunately, since the majority of my plugins require version 8.3, I cannot
   revert to version 8.2.
 * Can this issue be resolved?
 * Best regards,

Viewing 1 replies (of 1 total)

 *  [malexandric](https://wordpress.org/support/users/malexandric/)
 * (@malexandric)
 * [3 days, 17 hours ago](https://wordpress.org/support/topic/error-with-php-8-3-5/#post-19038234)
 * Hi [@valentinb](https://wordpress.org/support/users/valentinb/),
 * Thanks for reaching out, and sorry for the trouble!
 * The error you quoted points to the code of one of your own snippets, not to Woody
   itself. The `class.execute.snippet.php(808)` part is the place where Woody runs
   your PHP snippets, and `eval()'d code on line 4` means the problem is on line
   4 of one specific snippet. Woody runs fine on PHP 8.3, but when one snippet stops
   with an error, it takes the whole page down with it, which is why it looks like
   none of your snippets are working.
 * Here’s how to get things running again:
    1. While logged in as an administrator, open this address (replace example.com 
       with your domain):
       `https://example.com/wp-admin/edit.php?post_type=wbcr-snippets&
       wbcr-php-snippets-safe-mode`This turns on Woody’s Safe Mode, which pauses all
       snippets for you so you can work in the dashboard.
    2. On the snippets screen, you should see a “Snippet Error Detected” notice with
       the name of the snippet that failed and an Edit Snippet link.
    3. Deactivate that snippet, then click “Disable Safe Mode”. All your other snippets
       will run normally again.
 * One common cause when a host switches PHP versions: the new version doesn’t always
   have the same PHP extensions enabled (for example mbstring or intl), so code 
   that worked before suddenly calls a function that no longer exists. If that’s
   the case, your host can enable the extension for PHP 8.3 and the snippet will
   work again without any changes.
 * Let us know how it goes…

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-with-php-8-3-5%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [malexandric](https://wordpress.org/support/users/malexandric/)
 * Last activity: [3 days, 17 hours ago](https://wordpress.org/support/topic/error-with-php-8-3-5/#post-19038234)
 * Status: not resolved