Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version causing issue in HasBladeParser.php #44

Closed
tnylea opened this issue Sep 25, 2018 · 6 comments
Closed

Latest version causing issue in HasBladeParser.php #44

tnylea opened this issue Sep 25, 2018 · 6 comments

Comments

@tnylea
Copy link

tnylea commented Sep 25, 2018

Describe the bug
On PHP 7.1 error in HasBladeParser.php

To Reproduce
Steps to reproduce the behavior:

  1. Install a new version using PHP 7.1
  2. Visit the introduction page or the docs page

Expected behavior
Expect to see the docs

Screenshots
screen shot 2018-09-25 at 6 53 54 am

Desktop (please complete the following information):

  • OS: MacOS High Sierra
  • Chrome
  • Version 68

Additional context
My solution was to downgrade to 1.2.3 because 1.2.4 was giving me this error.

Just wanted to post this incase someone else runs into it.

Thanks.

@phannaly
Copy link
Contributor

@tnylea this is my feature, I will look at this soon. Thank for addressing the issue.

@phannaly
Copy link
Contributor

Hi @tnylea I have tested it with a fresh install on My MacOS Sierra, PHP7.1 and work normally. Can you try a fresh install again?

@tnylea
Copy link
Author

tnylea commented Sep 25, 2018

@phannaly Thanks for addressing this.

It turns out in my overview.md, I put some links to other pages of the documentation and when I use the:

{{version}}

Variable I get an error.

Try this out, put this inside of your overview.md

[Link](/docs/{{version}}/features)

And it will throw an error instead of creating the link for the specific version.

Thanks again 👍 Let me know if I can do anything to help on my end.

@phannaly
Copy link
Contributor

phannaly commented Sep 25, 2018

@tnylea {{version}} doesn't work in other markdown files beside index.md. If you want, you need to do this.
Inside DocumentationController

public function show($version, $page = null)
{
        $data = ["version" => "1.0"]; // any version as you want
        $documentation = $this->documentationRepository->get($version, $page, $data);

And inside overview.md

[Link](/docs/{{$version}}/features)

@saleem-hadad
Copy link
Owner

saleem-hadad commented Sep 25, 2018

Thank you @tnylea for addressing this issue.
I know what is causing this
In the feature added by @phannaly the blade renders the content before replacing the versions placeholders in the docs.
I've fixed the issue now by changing the order only 😂 see
the fix is now ready for v1.2.5

@tnylea
Copy link
Author

tnylea commented Sep 25, 2018

Thanks guys 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants