
Can´t manage simplepoll questions
Reported by Andres Urrea | November 8th, 2012 @ 12:12 AM | in User issues
The module works wrong, can´t create questions and less answers, can´t see the "Manage questions" button, just shows this "new simplepoll_question" and when i clicked in it goes to "Page Not Found" on the exponent. The version when i installed the exponent was 2.0.9, before the patch, now the exponent has the patch 2.0.9-5 already. Maybe is a controller problem, or migration or something like that. Thanks for help me.
Comments and changes to this ticket
-
dleffler November 8th, 2012 @ 02:06 PM
- Tag set to simplepoll
- Assigned user changed from expNinja to dleffler
- Milestone set to 2.1.0
- Milestone order changed from 208 to 0
Was this?:
- fresh install
- upgrade install
- install, then migration
- working in the past
-
dleffler November 8th, 2012 @ 03:13 PM
Also...is this the old simplepollmodule or tne new simple poll controller? If for some reason the 'upgrade' didn't finish completely, you'd need to re-run the upgrade (yoursite.org/install/index.php)
-
Andres Urrea November 8th, 2012 @ 03:55 PM
It is the new controller, I re-run the installer but still getting the same result, when is running the installer it give me this option "Upgrade the Simple Poll module to a Controller" i choose and click next, then tells me this:
Upgrade the Simple Poll module to a Controller
Don´t was upgraded the simple poll module
Don´t was converted the questions of the poll
and, next, was deleted the files of simplepollSorry by my english, this is the best traduction that i can do. Thanks for your help.
-
dleffler November 8th, 2012 @ 04:56 PM
Was this a new install or an upgrade from a previous version?
Was this a NEW module?
Try adding a new Simple Poll module with the 'Show Poll Question' action, 'Default' view. When done you should see the module title and a single link titled 'Manage Questions' When you click on it you should see an (empty) Question list/table with a 'New Question' link at the top of it.
Once you've created a new question, you can add answers to it, HOWEVER, it won't be displayed in the main module view until AFTER it has at least one answer.
What version of PHP does your server run?
-
dleffler November 8th, 2012 @ 04:58 PM
FWIW, I can't reproduce this locally under any version of php
-
-
Andres Urrea November 8th, 2012 @ 05:20 PM
"Was this a new install or an upgrade from a previous version?"
Was a new installation of 2.0.9, later I applied the patch-1 and when was released the patch-5, but i never tried the simple poll module before the apply the two patchs.
"Was this a NEW module?"
I dont know what do you mean.
"Try adding a new Simple ..."
please check the image.
-
Andres Urrea November 8th, 2012 @ 05:30 PM
Sorry i forgot the php version: PHP Version 5.3.18, again thanks a lot for your help.
-
dleffler November 8th, 2012 @ 05:46 PM
Thanks for the image. It looks as if the 'showall.tpl' view file is missing and it is trying to use a generic view which won't work with this module. The view name should be 'Default', NOT 'showall - Default view'
Please check the '/framework/modules/simplepoll/views/simplepoll/' folder, it should ONLY contain:
- /configure folder
- edit.top
- edit_answer.tpl
- manage_question.tpl
- manage_questions.tpl
- showall.tpl
- showRandom.tpl
Then check your current theme for this simplepoll custom view folder '/themes/yourcurrenttheme/modules/simplepoll/views/simplepoll/', if it exists (which probably won't), what files are located there
-
Andres Urrea November 8th, 2012 @ 05:59 PM
Thanks for your answer, in my theme folder i don´t have a simplepoll module folder, and the content in framework > modules is like you say, check the image please.
-
-
-
dleffler November 8th, 2012 @ 08:55 PM
Try adding a NEW simple poll module on that or another page.
When you add the module, you should see TWO content actions 'Show Poll Question' and 'Show Random Question', select Show Poll Question for now.
You should see ONE content display 'Default' (NOT showall - Default view). If you see this, change the content action to 'Show Random Question' and select the content display of 'Default'.
Otherwise, there may have been an issue in version 2.0.9 prior to patch #5 which can only be corrected by manually editing the database tables (which is why we issued the patch).
-
dleffler November 8th, 2012 @ 09:02 PM
To check/correct a possible database tables issue, you'll need to use a mysql database manager/editor like phpMyAdmin.
- Open the database
- Select the 'exponent_simplepoll_question' table
-
Search for 'location_data LIKE %poll%' to pull up all the records with 'poll' in them.
- each of the displayed records should contain a fragment 10:"simplePoll" , if however they contain a fragment 20:"simplePollController" , they must be edited to the former.
-
Select the 'exponent_containers' table
- Search for 'internal LIKE %poll%' to pull up all the records
with 'poll' in them.
- each of the displayed records should contain a fragment 20:"simplePollController" , if however they contain a fragment 10:"simplePoll" , they must be edited to the former.
- Also, both the 'view' and 'action' fields for those records should contain 'showall'
-
Andres Urrea November 8th, 2012 @ 09:26 PM
Hi, i really apreciate your help, the 'exponent_simplepoll_question' table is totally empty, the container table have this result:
i searched %poll% on 'internal' field. See the image. Thanks.
-
Andres Urrea November 8th, 2012 @ 09:37 PM
Also, in both actions the view shows the extra "Default View", when i select the action Show Poll Question the view shows "showall - Default View", and when i select the action Show Random Question the view shows "showRandom - Default View", it is pretty strange. The migration module has something to do?
-
dleffler November 8th, 2012 @ 10:49 PM
Did you Migrate this site from an v0.9x site database? Did you try to create a new Simple Poll module on the page?
For some reason your system is NOT finding the files in the /framework/modules/simplepoll/views/simplepoll/ folder.
Try changing the action/view on another module (text?) and see if you see a view of 'Default' or if you see the 'actionname - Viewname View' instead.
-
dleffler November 8th, 2012 @ 10:50 PM
Specifically, it can't find the views in the Edit Module screen and when it goes to load the view, it can't find it so it uses the system fallback view which is useless in this module.
-
dleffler November 8th, 2012 @ 10:50 PM
You might check to see that the permissions and owner:group for that folder are the same as the other files (775, etc...)?
-
Andres Urrea November 8th, 2012 @ 11:35 PM
The permissions are good, the text module charge the correct view when i choose the action, in the action "showall" charge "default" in view. I am not migrating from an v0.9x database. I dont know what else could be, seems like we are giving up with this.
I install with the same files of the simplepoll module folder,into exponent in a local server and works correctly. Can we fix it?
other thing, are you from the team that make the code of exponent? can I trust on you, for give you the acces data and see what is happening? or maybe it is inappropiate.
-
dleffler November 9th, 2012 @ 12:18 AM
I'm one of the lead developers. You can send me an email dleffler@hughes.net
-
dleffler November 21st, 2012 @ 08:56 PM
- Milestone changed from 2.1.0 to 2.1.1
- Milestone order changed from 62 to 0
-
dleffler December 21st, 2012 @ 03:08 AM
- Assigned user cleared.
-
-
-
dleffler February 16th, 2013 @ 02:55 AM
- Milestone changed from 2.2.0alpha2 to 2.2.0alpha3
-
dleffler February 28th, 2013 @ 07:03 PM
- Milestone cleared.
-
-
-
-
-
dleffler June 3rd, 2016 @ 11:24 AM
- Milestone set to User issues
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Bug Tracker for Exponent CMS