Title: Error from Log
Last modified: July 20, 2023

---

# Error from Log

 *  Resolved [oaufi](https://wordpress.org/support/users/oaufi/)
 * (@oaufi)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-from-log-2/)
 * Hi Support Team , I have around 50 code snippets how can i search wich snippets
   causing this error 
   [20-Jul-2023 08:30:42 UTC] PHP Deprecated: Optional parameter
   $order_number declared before required parameter $order_id is implicitly treated
   as a required parameter in /home2/captuing/yeti-adventures.com/wp-content/plugins/
   code-snippets/php/snippet-ops.php(575) : eval()’d code on line 44

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

 *  [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/error-from-log-2/#post-17069872)
 * Hi [@oaufi](https://wordpress.org/support/users/oaufi/),
 * You can try searching in the code snippets list by `$order_number` to list only
   the code snippet with this variable. Then, search in the line 44 of all the listed
   code snippet to update the deprecated code.
 * Hope it helps!
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-from-log-2/#post-17075500)
 * To add to Yordan, you can also specify the specific line number in the search
   to narrow down the list even further:
 * `$order_number @line:44`
 * I’ll close this for now, but feel free to post the snippet code here, once you
   find it, if you’d like any assistance in fixing it up.
 *  [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-from-log-2/#post-17076694)
 * Hi [@bungeshea](https://wordpress.org/support/users/bungeshea/),
 * I think you can take advantage of this topic to pass the snippet ID to the error
   returned, so the notice return more accurate details about the root source of
   the issue, something like this:
 * >  [Error message] : eval()’d code on line 321 (**snippet ID: 123**)
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-from-log-2/#post-17076727)
 * [@yordansoares](https://wordpress.org/support/users/yordansoares/) Unfortunately,
   the error [@oaufi](https://wordpress.org/support/users/oaufi/) is receiving is
   coming directly from PHP, and we have essentially zero control over what is being
   displayed.
 * I’ve tried a bunch of approaches to attempt to rewrite it into something more
   useful, but nothing has stuck.
 *  [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-from-log-2/#post-17076752)
 * Thanks for the explanation [@bungeshea](https://wordpress.org/support/users/bungeshea/).
   That definitely has sense.

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

The topic ‘Error from Log’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/error-from-log-2/#post-17076752)
 * Status: resolved