Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Poll error - showing visible code on page instead

meadwaykmeadwayk New
edited March 2011 in Vanilla 2.0 - 2.8
Hi, Installed the poll, managed to set permissions correctly, and then when I went to an existing discussion (and I tried creating a new discussion) I got this appearing on then page, in the LHN:

_PollAnswers->Result() as $Answer):?> votes / $this->_PollVotes) * 100)?>
title), 'vanilla/discussion/poll/'.$this->_PollData->id.'/vote/'.$Answer->id)?>
% (votes?> votes)

_PollData->id, 'Reset poll')?>
_PollData->id.'/reset', 'Reset poll')?>
_PollData->id.'/delete', 'Delete poll')?>
ID, 'Attach a poll')?>

Any ideas on how to resolve?



  • Options
    Anyone else having similar issues with this plugin?
  • Options
    I also have this issue, using Vanilla and the embedded theme. Did you find a fix in the end?
  • Options
    Plugin is written with php short tags. "<? ?>"

    You have to manually replace all "<?=" codes with "<?php echo ", and all remaining "<?" codes with "<?php"
  • Options
    thanks @onurguzel

    I spent some time adding the tags as suggested above, and the poll now works fine. Very odd that the plugin has been released like this or will it work with some specific server configurations that accept php short tags? No idea how common servers that do, are, but at least I've got it working now :)

  • Options

    Doesn't work in Even when updating the php tags.

  • Options

    Sorry, got it to work. Find function of my mac failed me. Was finding all "<?" tags.

Sign In or Register to comment.