Hi, I'm wondering if you found a solution since I'm experiencing the same problem.
The new 4.2 templates include the filter, constraints="type not poll", but "poll" is either not defined as an article type in the database (which it should be since the developers should know people with earlier versions that do not need it are upgrading to 4.2 and should add mysql tables into the upgrade script) or it is not being recognised as an article type with the result that the polls module cannot be displayed and templates crash. Although in your case it seems this problem is affecting even a new installation!
There is also a similar problem with section headings being called using a new method (#SectionName#) since this is not recognised by the database even after running the upgrade script.
And when I look at the errors that are being discussed in the forum (not being able to move or delete articles, not being able to make a backup, getting white screens/500 errors) I'm beginning to wonder if it was a mistake spending more than a year using Newscoop to create a website.
newer versions of themes have new functionality that we call Dialog (option to introduce new kind of content where two authors offer pro and contra arguments on some topic, and public is able to vote using 'debate' plugin. Example: http://rockstar.lab.sourcefabric.org/en/may2013/dialogue/102/UEFA-Champions-league-Enlargement-yes-or-no.htm). Because of that, we also introduced article type 'poll' which is used to generate simple voting poll (because both poll and debate use same plugin for voting).
Maybe along this process of adding new functionality we were not transparent enough, but versioning of themes and database with clear compatibility relations is discussed and worked on these very days, so such problems should not occur in the near future (new themes will be released soon, meanwhile take a look to our newest theme Tommy at http://tommy.lab.sourcefabric.org/).
-- Ljuba Rankovic Senior Front End Developer, Sourcefabric ljuba.rankovic@sourcefabric.org
Ljuba, thank you for your feedback. The problem is not the themes (I tried Tommy today and although it doesn't have a poll on the homepage, there was a new problem with the article list length being set to 6 in the template but showing more articles).
So the problem with the polls must be that the new tables to support the new functions you describe are not being added to the database when upgrading to 4.2, and I'm wondering if there is an sql query that can be run to fix this. (In fact, I even searched the sample .sql files in the 4.2 installation folder today but couldn't find anything using the word "poll")..
In the admin interface, click on 'Configure' and then click on 'Article Types'. If you don't have the article types that are mentioned in your theme, you should create them and add the fields you need. This can easily be done manually, but if you prefer to use SQL, try this (if you have any data in tables named Xdebate, Xlink, Xnews, Xpage or Xpoll, you need to change the query or you will lose your data):
--
-- Dumping data for table `ArticleTypeMetadata`
--
LOCK TABLES `ArticleTypeMetadata` WRITE;
/*!40000 ALTER TABLE `ArticleTypeMetadata` DISABLE KEYS */;
INSERT INTO `ArticleTypeMetadata` VALUES ('news','NULL',NULL,0,1,NULL,NULL,NULL,0,NULL),('news','deck',2,0,0,NULL,'longtext','editor_size=250',0,NULL),('news','full_text',3,0,0,NULL,'body','editor_size=750',1,NULL),('news','highlight',1,0,0,NULL,'switch',NULL,0,NULL),('page','NULL',NULL,0,0,NULL,NULL,NULL,0,NULL),('page','full_text',1,0,0,NULL,'body','editor_size=750',1,NULL),('link','NULL',NULL,0,0,NULL,NULL,NULL,0,NULL),('link','url',1,0,0,NULL,'text',NULL,0,NULL),('debate','NULL',NULL,0,1,NULL,NULL,NULL,0,NULL),('debate','pro_title',2,0,0,NULL,'text',NULL,0,200),('debate','pro_text',3,0,0,NULL,'body','editor_size=250',0,NULL),('debate','contra_title',4,0,0,NULL,'text',NULL,0,200),('debate','contra_text',5,0,0,NULL,'body','editor_size=250',0,NULL),('debate','teaser',1,0,0,NULL,'body','editor_size=250',0,NULL),('poll','NULL',NULL,0,0,NULL,NULL,NULL,0,NULL);
/*!40000 ALTER TABLE `ArticleTypeMetadata` ENABLE KEYS */;
Sebastian, thank you for posting the SQL which I have only just noticed.
I had given up on 4.2 after even manually copying missing article types shown in the admin interface of the 4.2 demo to my site didn't work and not being able to upgrade to the new way of displaying headings in the new templates, and have now gone back to 4.1 and removed/replaced references to debate, poll, etc. in the new templates. But I will insert your SQL dump into the database when the next stable version is released.