Title: Parse error. T_VARIABLE eval()
Last modified: August 18, 2023

---

# Parse error. T_VARIABLE eval()

 *  Resolved [JuanM](https://wordpress.org/support/users/jmagtags/)
 * (@jmagtags)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/parse-error-t_variable-eval/)
 * Hi!
   I love your plugin. It’s really useful. But today I come across a problem
   that I can’t solve. I only get the error when accessing the edition of the post.
   When I create the content it allows me to add the block without problem (it doesn’t
   matter if I fill in the fields or not, everything works correctly) The error 
   appears when I want to edit a content that contains the block created with lazy
   blocks. It is the following error:
 *     ```wp-block-code
       Parse error: syntax error, unexpected '$attributes' (T_VARIABLE), expecting ';' or ',' in /wp-content/plugins/lazy-blocks/classes/class-blocks.php(1383) : eval()'d code on line 3
       ```
   
 * I review the code and I can’t find where the error could be. The following is
   the rendering code for the block:
 *     ```wp-block-code
        <div class="contprimary">
               <div class="imagen">
                 <img src=" <?php echo esc_url( $attributes['imagen-producto']['url'] ); ?> ">                       
               </div>
               <div class="cont">
                   <p class="titulo">
                       <?php echo esc_html($attributes['titulo']); ?>
                   </p>
                   <p class="texto">
                       <?php echo esc_html($attributes['texto']); ?>
                   </p>
                   <div class="links">
                     <a class="enlaceam" href="<?php echo esc_url( $attributes['enlace-am']); ?>">am</a>
                     <a class="enlacedec" href="<?php echo esc_url( $attributes['enlace-dec']); ?>">dec</a>
                     <a class="enlacecas" href="<?php echo esc_url( $attributes['enlace-cas']); ?>">cas</a>
                   </div>
               </div>
             </div>
       ```
   
 * Could you help me to solve it?
   Thank you very much in advance!!

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/parse-error-t_variable-eval/#post-17008240)
 * Hi,
 * Unfortunately, I can’t reproduce this error locally. Please, try to try to troubleshoot
   it manually by changing the output code to theme template [https://www.lazyblocks.com/docs/troubleshooting/receive-an-error-type-e-error-eval/](https://www.lazyblocks.com/docs/troubleshooting/receive-an-error-type-e-error-eval/)
 * Regards,
   Nikita.

Viewing 1 replies (of 1 total)

The topic ‘Parse error. T_VARIABLE eval()’ 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: [2 years, 9 months ago](https://wordpress.org/support/topic/parse-error-t_variable-eval/#post-17008240)
 * Status: resolved