# PHP Error in exported PHP Block?

**URL:** https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020
**Category:** WordPress
**Tags:** bug, wordpress
**Created:** [May 10, 2023, 5:50pm UTC](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020 "2023-05-10T17:50:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)
#### Post date: [May 10, 2023, 5:50pm UTC](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020/1 "2023-05-10T17:50:40Z")

</div>

Facing an issue while exporting a newly created block.  
WordPress shows me this:

```auto
syntax error, unexpected identifier "context", expecting ")"

```

 ![CleanShot 2023-05-10 at 19.49.35@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/714058a53b31330361719b8bec8ca907628a80f9.png)

What’s causing this?  
It happens if there is an “Block Inner Content” Smart Action added.

---

<div class="post-metadata">

### Author: ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)
#### Post date: [May 10, 2023, 6:04pm UTC](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020/2 "2023-05-10T18:04:41Z")

</div>

The project setting defaults to PHP Blocks, i have to change the Block to a JS Block manually to get it work with Inner Block.

---

<div class="post-metadata">

### Author: ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)
#### Post date: [May 11, 2023, 6:39am UTC](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020/3 "2023-05-11T06:39:31Z")

</div>

@MichelyWeb can you please send your source project to support at pinegrow com? I can’t replicate the issue here. The exported PHP code shown above seams fine. There might be an issue somewhere else.

---

<div class="post-metadata">

### Author: ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)
#### Post date: [May 11, 2023, 7:38am UTC](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020/4 "2023-05-11T07:38:31Z")

</div>

@matjaz done. Thanks.

---

<div class="post-metadata">

### Author: ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)
#### Post date: [May 12, 2023, 2:24am UTC](https://forum.pinegrow.com/t/php-error-in-exported-php-block/8020/5 "2023-05-12T02:24:36Z")

</div>

Thanks @MichelyWeb! Repeating the response here in case others are facing the same issue:

I found and fixed the issue with PHP blocks that have Inner content on the top element. The fix will be out in the next release. Till then the workaround is to either use JS blocks or to add an inner DIV or similar with Inner content action.
