• Resolved oaufi

    (@oaufi)


    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)
  • Hi @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

    (@bungeshea)

    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.

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

    (@bungeshea)

    @yordansoares Unfortunately, the error @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.

    Thanks for the explanation @bungeshea. That definitely has sense.

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

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