Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Poll error message - A Simple Press Poll can only appear in a forum post
Avatar
torontocapital
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 9:34 pm

Hello,

whenever I create a poll in my forum I get the following error message in side the newly created post: "A Simple Press Poll can only appear in a forum post". What does it mean ?

poll.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 9:37 pm

well it means just what it says...  ;)   you can only create a poll in a post... if you try to put in a sidebar widget, for example, it wont work...

problem there, of course, is that looks like in a post to me...

please verify your wp version, sp version and polls plugin version...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 9:39 pm

That message is displayed when we dont think we are in the forum...

any chance your forum is displayed twice on the page??  it does not appear that is in the main wp loop...

also maybe check forum - integration - page and permalink and see what you have for the display in loop and display mutiple options...  ideally they should be true and false...

Avatar
torontocapital
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 9:47 pm

The forum is displayed once on the page.

It was "false" and "false".

When I select "true" for display in loop, the forum completely disappears (there is header and footer of wordpress site, but no body).

Avatar
torontocapital
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 9:55 pm

WP 3.6, SP 5.3 , Polls 1.3.6

Created a WP page called forum, url = site.com/forum

Select the WP Page to be used to display your forum:  Forum

Am I correct here ?

 

 

Filter WP list pages TRUE

Load javascript in footer FALSE

Force the strict use of the WP API FALSE

Limit forum display to within WP loop FALSE=forum works fine except for polls, TRUE=forum disappears

Allow multiple loading of forum content FALSE

Bypass wp_head action complete requirement FALSE

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 9:57 pm

well there is the problem...  the forum is not being displayed with in the loop... so hence you get the error about must be in forum post...

so try setting the options the way I said... and then turn the strict wp api option on...

what wp theme?  and what other plugins?

Avatar
torontocapital
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 10:12 pm

If I put it within the loop - the forum disappears completely.

 

WP theme - directory press. Plugins - there are at least 15 of them installed + simple press plugins.

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2013 - 10:31 pm

Did you turn on the strict api as requested? 

If so, we need to figure out why.. The forum,like any other wp page, should only be displayed within the loop. 

Avatar
torontocapital
Member
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 1:27 pm

Deactivated all the WP-plugins.

There is only the WP-theme (directorypress) and Simple-Forum plugin.

If I put the forum within the loop (with Force the strict use of the WP API or without) - the forum disappears completely.

If it's not within the loop - it works fine, except for polls not working.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 1:31 pm

so you have set display multiple true, in loop true and strict wp api true...  and as a test, what if you set, display multiple true and display in loop false?

afraid that makes no sense...  does this theme use the standard wp loop???  have not heard of it before...  for some reason it is displaying the wp page outside the wp loop...

can you try a quick temp switch to the default wp theme and see if anything changes?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625