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

Undefined variable: output in/core/components/siblingnav/model/siblingnav/siblingnav.class.php on line 93 #7

Open
DisobedientMedia opened this issue Aug 2, 2012 · 2 comments

Comments

@DisobedientMedia
Copy link

Hi, using v1.0.1 with following

<ul class='quoteNav'>
[[+sn.prev]]
[[+sn.next]]
</ul>

this is throwing the above error. If I remove the $output variable to the getChunks call, all seems well. Not sure what $output is supposed to do, looks like it's been commented out lower down...

Thanks,
robin

@oksushi
Copy link

oksushi commented Sep 9, 2012

I’m getting the same error with 1.0.1

@oo12
Copy link

oo12 commented Mar 12, 2013

I haven't looked into the exact purpose of $output either, but you can fix the problem by making sure it's initialized. In /core/components/siblingnav/model/siblingnav/siblingnav.class.php right before the $this->getChunks call on line 98 add this line:

$output = isset($output) ? $output : array();  // if it's got a value, use that. Otherwise make it an empty array.

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