---
title: "Receive an Error Type E_ERROR eval()’d code causes error: Uncaught TypeError"
description: "If you receive an error \"Type E_ERROR in line ... of the file ... eval()’d code causes error: Uncaught TypeError...\", that means that the error received from your block code."
url: "https://www.lazyblocks.com/docs/troubleshooting/receive-an-error-type-e-error-eval/"
lastUpdated: 2025-02-24
source: "troubleshooting/receive-an-error-type-e-error-eval.mdx"
---
# Receive an Error Type E_ERROR eval()’d code causes error: Uncaught TypeError

If you receive an error "Type E_ERROR in line ... of the file ... eval()’d code causes error: Uncaught TypeError...", that means that the error received from your block code.

If you use the block PHP render string, your code is executed using `eval()` function, and the error comes from your custom block code. Since it is rendered using eval it is hard to debug what exactly is failed.

Try to change your block code to the functional callback or template render to better understand what happens.

- [PHP Callback](https://www.lazyblocks.com/docs/blocks-code/php-callback/)
- [Theme Template](https://www.lazyblocks.com/docs/blocks-code/theme-template/)

## Documentation Index
> Fetch the complete documentation index at: https://www.lazyblocks.com/llms.txt
> Fetch every page in a single file at: https://www.lazyblocks.com/llms-full.txt
