Title: Fatal error: Uncaught Error: Undefined constant &#8220;php&#8221;
Last modified: May 12, 2023

---

# Fatal error: Uncaught Error: Undefined constant “php”

 *  Resolved [citytechteam](https://wordpress.org/support/users/citytechteam/)
 * (@citytechteam)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-undefined-constant-php/)
 * **Fatal error**: Uncaught Error: Undefined constant “php” in /home/citytech/public_html/
   wp/citytech22/wp-content/plugins/lazy-blocks/classes/class-blocks.php(1313) :
   eval()’d code:17 Stack trace: #0 /home/citytech/public_html/wp/citytech22/wp-
   content/plugins/lazy-blocks/classes/class-blocks.php(1313): eval() #1 /home/citytech/
   public_html/wp/citytech22/wp-content/plugins/lazy-blocks/classes/class-blocks.
   php(1449): LazyBlocks_Blocks->php_eval() #2 /home/citytech/public_html/wp/citytech22/
   wp-includes/class-wp-block.php(258): LazyBlocks_Blocks->render_callback() #3 /
   home/citytech/public_html/wp/citytech22/wp-includes/blocks.php(1051): WP_Block-
   >render() #4 /home/citytech/public_html/wp/citytech22/wp-includes/blocks.php(
   1089): render_block() #5 /home/citytech/public_html/wp/citytech22/wp-includes/
   class-wp-hook.php(308): do_blocks() #6 /home/citytech/public_html/wp/citytech22/
   wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /home/citytech/public_html/
   wp/citytech22/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(
   1860): apply_filters() #8 /home/citytech/public_html/wp/citytech22/wp-includes/
   rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller-
   >prepare_item_for_response() #9 /home/citytech/public_html/wp/citytech22/wp-includes/
   rest-api/class-wp-rest-server.php(1181): WP_REST_Posts_Controller->get_item()#
   10 /home/citytech/public_html/wp/citytech22/wp-includes/rest-api/class-wp-rest-
   server.php(1028): WP_REST_Server->respond_to_request() #11 /home/citytech/public_html/
   wp/citytech22/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #12 /
   home/citytech/public_html/wp/citytech22/wp-includes/rest-api.php(2889): rest_do_request()#
   13 [internal function]: rest_preload_api_request() #14 /home/citytech/public_html/
   wp/citytech22/wp-includes/block-editor.php(634): array_reduce() #15 /home/citytech/
   public_html/wp/citytech22/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()#
   16 /home/citytech/public_html/wp/citytech22/wp-admin/post.php(187): require(‘/
   home/citytech/…’) #17 {main} thrown in **/home/citytech/public_html/wp/citytech22/
   wp-content/plugins/lazy-blocks/classes/class-blocks.php(1313) : eval()’d code**
   on line **17**
 * There has been a critical error on this website. Please check your site admin
   email inbox for instructions.

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-undefined-constant-php/#post-16741772)
 * Hey.
 * You have to check your custom block code for errors. Something wrong with your
   code.
 * Regards, nK.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Uncaught Error: Undefined constant “php”’ is closed to new
replies.

 * ![](https://ps.w.org/lazy-blocks/assets/icon-256x256.png?rev=2584676)
 * [Custom Block Builder - Lazy Blocks](https://wordpress.org/plugins/lazy-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-blocks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-undefined-constant-php/#post-16741772)
 * Status: resolved