Hi folks,
good to be back again after some time off.
I've got a problem with Polls module after updating to UNA 15.0.0-B1. It seems to be an issue with class encapsulation.
My server logs report as follows:
Got error 'PHP message: PHP Fatal error: Access level to BxPollsTemplate::getSummary() must be public (as in class BxBaseModGeneralTemplate) in on line 181', referer: https://xxxx.xxxx
@Anton L , could this be a bug?
Cheers, thomlin
- 151
Comments
It's good to have you back man.
Locate the BxPollsTemplate class file (typically in /modules/boonex/polls/classes/BxPollsTemplate.php)
Find the getSummary() method around line 181
Change its visibility from whatever it currently is to public
If it works , report back and update the ticket as a possible bug...
T
Hi Chris, yeah, missed you guys.
Thanks for your suggestion, but I think I'll leave the dirty hands work to the professionals. If it really is just such a simple bug, I'm sure the team will provide a fix very quickly.
K, leave it to me... just rapping up on something.
T
Dear @LeonidS has already taken over, thx.
Cool, as long as you didn't have to wait that long... O' @LeonidS is my man and always ready to assist for when ever we need him..
Hi all!
As you may see here the getSummary method has been declared as public for the 15.0.0-B1 release. So it seems this file in your Polls app haven't been upgraded properly. You may try to replace it with the files from the actual package of the Polls app https://unacms.com/view-product/polls
T
Thanks @LeonidS for your support on this. Upgrading seemed smoothly, no errors or other hints on a problem. I'll replace and add the files manually from the repository.