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
meadwayk
New
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:
_PollData)):?>
_PollData->title)?>
_PollAnswers->Result() as $Answer):?> votes / $this->_PollVotes) * 100)?>
title), 'vanilla/discussion/poll/'.$this->_PollData->id.'/vote/'.$Answer->id)?>
% (votes?> votes)
CheckPermission('Plugins.Poll.Manage')):?>
_PollData->id, 'Reset poll')?>
_PollData->id.'/reset', 'Reset poll')?>
_PollData->id.'/delete', 'Delete poll')?>
CheckPermission('Plugins.Poll.Manage')):?>
ID, 'Attach a poll')?>
Any ideas on how to resolve?
thanks,
_PollData)):?>
_PollData->title)?>
_PollAnswers->Result() as $Answer):?> votes / $this->_PollVotes) * 100)?>
title), 'vanilla/discussion/poll/'.$this->_PollData->id.'/vote/'.$Answer->id)?>
% (votes?> votes)
CheckPermission('Plugins.Poll.Manage')):?>
_PollData->id, 'Reset poll')?>
_PollData->id.'/reset', 'Reset poll')?>
_PollData->id.'/delete', 'Delete poll')?>
CheckPermission('Plugins.Poll.Manage')):?>
ID, 'Attach a poll')?>
Any ideas on how to resolve?
thanks,
1
Comments
You have to manually replace all "<?=" codes with "<?php echo ", and all remaining "<?" codes with "<?php"
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
regards,
Kris
Doesn't work in 2.0.18.4. Even when updating the php tags.
Sorry, got it to work. Find function of my mac failed me. Was finding all "<?" tags.