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: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:
<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)
Viewing 1 replies (of 1 total)
- The topic ‘Parse error. T_VARIABLE eval()’ is closed to new replies.