# Bug in Pinegrow's WP Block Export?

**URL:** <https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328>\
**Category:** Pinegrow WP\
**Tags:** bug\
**Created:** [August 27, 2023, 11:54pm UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328 "2023-08-27T23:54:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aussieaudio](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/aussieaudio/32/5864_2.png) [@aussieaudio](https://forum.pinegrow.com/u/aussieaudio)\
**Post date:** [August 27, 2023, 11:54pm UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/1 "2023-08-27T23:54:54Z")

</div>

There seems to be an issue with a particular block I am exporting. It isn’t doing this with any of my other blocks, but I cannot seem to find a fix. When I load wordpress using Local I get this error. I’m also using one of the bootstrap blocks as a template and only made minor changes to the structure.

**Parse error** : syntax error, unexpected token “/” in **C:\Users\Simeo\Local Sites\living-waters\app\public\wp-content\themes\Living Waters Theme\blocks\meet-the-pastor\meet-the-pastor\_register.php** on line **15**

Here is the code to the block…

 ![Screenshot 2023-08-28 095615](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/6/66c81a7a9aec331b24f51551087f3865a3a0042c.png)

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [August 28, 2023, 1:31pm UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/2 "2023-08-28T13:31:25Z")

</div>

I’ve seen certain SVGs cause issues with exported blocks, but never took the time to figure out the common denominator. Can you post the generated JS or PHP code from the block so the Pinegrow team can take a peek at what’s getting messed up?

---

<div class="post-metadata">

**Author:** ![aussieaudio](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/aussieaudio/32/5864_2.png) [@aussieaudio](https://forum.pinegrow.com/u/aussieaudio)\
**Post date:** [August 29, 2023, 12:41am UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/3 "2023-08-29T00:41:49Z")

</div>

Here is the php file that it says is causing the issue.

 ![Screenshot 2023-08-29 104044](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/8/8e96318e5453f3f61d63200d24d56bdfe4f6dbdc.png)

---

<div class="post-metadata">

**Author:** ![aussieaudio](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/aussieaudio/32/5864_2.png) [@aussieaudio](https://forum.pinegrow.com/u/aussieaudio)\
**Post date:** [August 29, 2023, 12:42am UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/4 "2023-08-29T00:42:20Z")

</div>

I just replied with the php registration file that is says is the issue.

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [August 29, 2023, 10:22pm UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/5 "2023-08-29T22:22:13Z")

</div>

Hey @aussieaudio, the screenshot doesn’t show the line with the SVG. You can paste the code using [markdown](https://www.markdownguide.org/cheat-sheet/). Alternatively, try removing the offending SVG or the xmlns attribute that the error message is referencing and see if that makes any difference.

---

<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:** [August 30, 2023, 6:54am UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/6 "2023-08-30T06:54:43Z")

</div>

@aussieaudio the error is most likely caused by the () used in the image name:

![imgp](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/4/4af73ba676d7dce4751f2d23efef7f5212d89973.jpeg)

Pinegrow interprets () as a function call and therefore does not enclose the string in quotes. Renaming the image should take care of it. In the meantime I’ll check if there if we can somehow make this logic better.

---

<div class="post-metadata">

**Author:** ![aussieaudio](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/aussieaudio/32/5864_2.png) [@aussieaudio](https://forum.pinegrow.com/u/aussieaudio)\
**Post date:** [August 30, 2023, 7:21am UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/7 "2023-08-30T07:21:43Z")

</div>

Thanks! I just thought since it was literally a drag and drop from the bootstrap blocks that it would be ok. Oddly it also works elsewhere with other blocks I did the exact same way

---

<div class="post-metadata">

**Author:** ![aussieaudio](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/aussieaudio/32/5864_2.png) [@aussieaudio](https://forum.pinegrow.com/u/aussieaudio)\
**Post date:** [September 1, 2023, 1:42am UTC](https://forum.pinegrow.com/t/bug-in-pinegrows-wp-block-export/8328/8 "2023-09-01T01:42:14Z")

</div>

This was it. For some reason it was causing issues. The wordpress error indicated that it causes an issue in the register file, not the actual block .php file.
