New install results in "Parse error: syntax error, unexpected 'yield' (T_YIELD)"
  • thatonefreemanthatonefreeman
    Posts: 1Member

    Hello everyone, I am new to Bonfire and I am excited to try it out to expedite development. However, after I followed the installation guide (using Bonfire 0.6) I receive the following error:

    "Parse error: syntax error, unexpected 'yield' (T_YIELD), expecting identifier (T_STRING) in E:\Programs\newxampp\htdocs\ITDesk\bonfire\application\libraries\template.php on line 305"

    I don't see any obvious syntax errors and I am at a loss. My environment is Windows 7, XAMPP stack 1.8.2.

    Did I manage to skip over something? As far as I know all my paths are correct and htaccess is set to the suggested rewrite base.

    Any help would be greatly appreciated.

    Thank-you.

  • DaveMC08DaveMC08
    Posts: 7Member

    http://stackoverflow.com/questions/13990693/laravel-4-syntax-error-out-of-the-box It would seem that it is the same issue as this. Only, difference being that the XAMPP 1.8.2 stack should be on php 5.4, which, if I understand, doesn't use generators yet. However, I would like to get the devs take on this. @lonnieezell (Hope I brought him in correctly)

  • DaveMC08DaveMC08
    Posts: 7Member

    Also, submitted a pull request for this issue.....https://github.com/ci-bonfire/Bonfire/pull/869

  • lonnieezelllonnieezell
    Posts: 550Administrator

    That does sound like the same issue, so downgrading to 5.4 will fix it.

    I'll take a look at your pull request Dave.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Poll

No poll attached to this discussion.

In this Discussion