Coder Social home page Coder Social logo

Poll not Displaying on Elgg3.2 about poll HOT 7 CLOSED

coldtrick avatar coldtrick commented on September 16, 2024
Poll not Displaying on Elgg3.2

from poll.

Comments (7)

jeabakker avatar jeabakker commented on September 16, 2024

please try version 4.2

fixed: return a no results text if there are no votes on poll details

maybe that's an issue

from poll.

Ngseri avatar Ngseri commented on September 16, 2024

Thank you. I tried Poll 4.2 and learn that even polls created in Elgg2.3 with votes, it still displays only 'No vote has been cast yet'.

Also, I just noticed that polls created in Elgg2.3 display differently from polls created in Elgg3.2.

Below poll was created in Elgg2.3
Screen Shot 2020-02-21 at 8 48 57 AM

Below poll was created in Elgg3.2
Screen Shot 2020-02-21 at 8 46 46 AM

One other issue is that after casting a vote, when I visit that poll, it throws Javascript error complaining about chartjs. So, I did further research and found out poll/elgg-plugin.php refers to chartjs library in vendor/npm-asset directory. But chartjs does not exist there in Elgg3.2.

from poll.

Ngseri avatar Ngseri commented on September 16, 2024

Correction to previous comment
First attachment is the poll created in Elgg3.2 and the second in Elgg2.3

from poll.

jeabakker avatar jeabakker commented on September 16, 2024

How did you install the plugin?

  • using composer
  • zip download from community
  • zip download from github (if so, did you use the 'source code' zip or the 'poll_v4.2zip')

If chart.js isn't installed in either webroot/vendor or webroot/mod/poll/vendor that explains the problem. The github source zip doesn't have all dependencies, the 'poll_v4.2.zip' does have it.
Or if you install using composer, that should also download the correct version and install it.

This is how it looks on my PC
afbeelding

from poll.

Ngseri avatar Ngseri commented on September 16, 2024

I chose poll 4.2 and ran git clone it using HTTPS approach. How can I run composer install poll plugin?
Thanks so much!

from poll.

jeabakker avatar jeabakker commented on September 16, 2024

go to the /mod/poll folder and run composer install --no-dev

from poll.

Ngseri avatar Ngseri commented on September 16, 2024

Awesome! Thanks jeabakker!
I just learned that why polls created in Elgg2.3 look different from Elgg3.2. In my Elgg2.3 site, I use Poll version 2.3.4 and the poll objects do not have answers metadata like Poll version 4.*

from poll.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.