Title: Server Error Logs: PHP Warnings
Last modified: August 11, 2022

---

# Server Error Logs: PHP Warnings

 *  Resolved [clairedelune](https://wordpress.org/support/users/clairedelune/)
 * (@clairedelune)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/)
 * I’m not a developer and have no idea what this means or what is causing it.
 * The errors first started appearing in the log in January; the below is just from
   yesterday:
 * Please help ~ many thanks in advance.
 *     ```
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 00:37:58 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:10 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:13 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:17 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:20 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:23 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:27 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:27:30 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 01:42:29 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 02:22:57 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 03:17:24 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:31:52 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 06:47:41 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:20:49 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 07:43:36 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 10:13:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 45
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:18 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 10:13:20 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 11:04:14 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 11:19:28 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 45
       [10-Aug-2022 12:33:18 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 12:33:18 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:33:19 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 12:56:22 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 12:56:22 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:56:22 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 12:56:22 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 12:56:23 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 12:56:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:56:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:56:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:56:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:56:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 12:56:23 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:00:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:32:15 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 9
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 14
       [10-Aug-2022 13:58:11 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 10
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 17:32:23 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:18:19 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 45
       [10-Aug-2022 18:19:09 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 18:19:09 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:19:09 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:19:09 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:19:09 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:19:09 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:19:09 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 18:21:58 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 11
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 19:36:32 UTC] PHP Warning:  Undefined variable $post_id in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 16
       [10-Aug-2022 23:31:34 UTC] PHP Warning:  Undefined variable $string in /home/mysite**/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()'d code on line 45
       ```
   

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/#post-16037035)
 * Hi [@clairedelune](https://wordpress.org/support/users/clairedelune/),
 * These errors are coming from your snippets. You are attempting to access variables
   called `$string` and `$post_id` without declaring them first.
 * You should be able to locate the snippets where this is happening by doing a 
   search for `$string @line:9` and `$post_id @line:14`.
 * Feel free to post the snippets causing these issues here if you would like help
   resolving these errors.
 *  Thread Starter [clairedelune](https://wordpress.org/support/users/clairedelune/)
 * (@clairedelune)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/#post-16037304)
 * Thank you!
 * Here below is one of the snippets, the other snippets are virtually identical
   apart from being customised for different categories.
 * Many, many thanks for your assistance.
 *     ```
       function faq_postsbycategory() {
       // The Query //
       $the_query = new WP_Query( array(
       	'category_name' => 'faq',
       	'posts_per_page' => 10,
       	'order' => 'ASC',
       	'orderby' => 'link',
       ) );
       // The Loop //
       if ( $the_query->have_posts() ) {
       	$string .= '<div class="postsbycategory widget_recent_entries">';
       	while ( $the_query->have_posts() ) {
       		$the_query->the_post();
       			if ( has_post_thumbnail() ) {
       			$string .= '<p>';
       			$string .= '<b><a href="' . get_the_permalink() . '"rel="bookmark">' . get_the_post_thumbnail($post_id, array( 200, 100) ) . get_the_title() . '</a></b><br><h7>Posted: ' . get_the_date() . '</h7><br>' . get_the_excerpt() . '</p>';
       			}
       		else {
       			// if no featured image is found ONLY ADD EXCERPT CODING //
       			$string .= '<p><a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_title() . '</a><br><h7>Posted: ' . get_the_date() . '</h7><br>' . get_the_excerpt() . '</p>';
       			}
       			}
       	} else {
       	// if no posts found //
       }
       $string .= '</div>';
       // Restore the original Post Data //
       wp_reset_postdata();
       // Output the result //
       return $string;
       }
       // Add a shortcode //
       add_shortcode('faq-posts', 'faq_postsbycategory');
       ```
   
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/#post-16037637)
 * Here is an updated version of that snippet:
 *     ```
       add_shortcode( 'faq-posts', function () {
       	$string = '';
   
       	// The Query //
       	$the_query = new WP_Query( array(
       		'category_name'  => 'faq',
       		'posts_per_page' => 10,
       		'order'          => 'ASC',
       		'orderby'        => 'link',
       	) );
       	// The Loop //
       	if ( $the_query->have_posts() ) {
       		$string .= '<div class="postsbycategory widget_recent_entries">';
       		while ( $the_query->have_posts() ) {
       			$the_query->the_post();
       			if ( has_post_thumbnail() ) {
       				$string .= '<p>';
       				$string .= '<b><a href="' . get_the_permalink() . '"rel="bookmark">' . get_the_post_thumbnail( get_the_ID(), array( 200, 100 ) ) . get_the_title() . '</a></b><br><h7>Posted: ' . get_the_date() . '</h7><br>' . get_the_excerpt() . '</p>';
       			} else {
       				// if no featured image is found ONLY ADD EXCERPT CODING //
       				$string .= '<p><a href="' . get_the_permalink() . '" rel="bookmark">' . get_the_title() . '</a><br><h7>Posted: ' . get_the_date() . '</h7><br>' . get_the_excerpt() . '</p>';
       			}
       		}
       		$string .= '</div>';
       	}
   
       	wp_reset_postdata();
       	return $string;
       } );
       ```
   
 *  Thread Starter [clairedelune](https://wordpress.org/support/users/clairedelune/)
 * (@clairedelune)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/#post-16037664)
 * Sincere thanks [@bungeshea](https://wordpress.org/support/users/bungeshea/) 🙂
   I will update the snippet/s and see if the errors persist.
 *  Thread Starter [clairedelune](https://wordpress.org/support/users/clairedelune/)
 * (@clairedelune)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/#post-16037709)
 * The updated snippet seems to be working.
 * **One more question please: how would I add pagination to the code. At the moment
   it only produces one page of 10 posts but there are many more posts in the category
   and I need them all to be listed but on subsequent pages.**
 * I will check server logs tomorrow.
 * Many thanks again.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/#post-16037752)
 * In order to add pagination, you need to set the `paged` value on the query and
   add a function to [display pagination links](https://developer.wordpress.org/themes/functionality/pagination/):
 *     ```
       add_shortcode( 'faq-posts', function () {
       	$string = '';
   
       	// The Query //
       	$the_query = new WP_Query( array(
       		'category_name'  => 'faq',
       		'posts_per_page' => 10,
       		'order'          => 'ASC',
       		'orderby'        => 'link',
       		'paged'          => get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1,
       	) );
       	// The Loop //
       	if ( $the_query->have_posts() ) {
       		$string .= '<div class="postsbycategory widget_recent_entries">';
       		while ( $the_query->have_posts() ) {
       			$the_query->the_post();
       			if ( has_post_thumbnail() ) {
       				$string .= '<p>';
       				$string .= '<b><a href="' . get_the_permalink() . '"rel="bookmark">' . get_the_post_thumbnail( get_the_ID(), array( 200, 100 ) ) . get_the_title() . '</a></b><br><h7>Posted: ' . get_the_date() . '</h7><br>' . get_the_excerpt() . '</p>';
       			} else {
       				// if no featured image is found ONLY ADD EXCERPT CODING //
       				$string .= '<p><a href="' . get_the_permalink() . '" rel="bookmark">' . get_the_title() . '</a><br><h7>Posted: ' . get_the_date() . '</h7><br>' . get_the_excerpt() . '</p>';
       			}
       		}
   
       		$string .= paginate_links();
       		$string .= '</div>';
       	}
   
       	wp_reset_postdata();
       	return $string;
       } );
       ```
   

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

The topic ‘Server Error Logs: PHP Warnings’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/server-error-logs-php-warnings/#post-16037752)
 * Status: resolved