Forums

Free Survey Plugin or working version of WP-Survey? (13 posts)

  1. c0y0te
    Member
    Posted 3 years ago #

    Ok - first thing first, I've scanned the support forum (using search) for any references to this but so far I've come up short.

    Basically I'm looking to do a decent survey on my site, and I'm hoping to use a WP plugin if one exists - but I don't want to have to pay anyone (you know who you are) for a plugin.

    I've managed to download a copy of WP-SURVEY and it seems to work (sort of) except that when I Try to view or download the comments left by folks, I get an error as follows:-
    Warning: Invalid argument supplied for foreach() in c:\home\avalon5\www\wptest\wp-content\plugins\survey_creator.php on line 407

    I also note that it doesn't quite work perfectly (validation checking, return to home page instead of confirmation when data entered correctly etc.)

    It's a valient attempt - but perfect it aint. Does anyone have a hacked / corrected version of this plugin working on their site which they (feeling all generous and altruistic) would like to share with me?

    Failing that - does anyone know of any other survey plugin I could use, or indeed any survey software which would be easy to bash into a WP site without breaking anything.

    All help and advice greatly appreciated. Thanks in advance.

    c0y0te

  2. jwurster
    Member
    Posted 3 years ago #

    I did a search for the error here and found a few references to other plugins which had similar problems. I think from my recollection, that the argument passed to the 'for each' should be an array. Have you contacted the plugin author?

  3. jimatwork
    Member
    Posted 3 years ago #

    You might also want to check out the WP-Polls plugin.

  4. c0y0te
    Member
    Posted 3 years ago #

    jimatwork: I had WP-Polls before, but I want to create a more specific survey rather than just a single voting/poll thing.

    jwurster: As ever, I'm keen to fix but I possibly lack the skills. What exactly do you mean when you say that the argument should be an array? Do you mean it is not being declared properly, or that the syntax of passing the argument is possibly incorrect? Any chance you could give me a sample of what is correct?

    As ever - thanks.

  5. jwurster
    Member
    Posted 3 years ago #

    Those are both me. Let me install the plugin and see what I can see. I just did a quick search and found what I had found before. The argument needs to be an array and/or not null. The solution in the other Post thread was to change the argument by adding (array) in front of it.

    Maybe someone with better php skills than me can explain why.

  6. jwurster
    Member
    Posted 3 years ago #

    In another thread, I found a better description and got a little more info from a google search.

    Apparently then argument in that function is not loaded with anything, maybe from a database select, when it should be an array of data. So, another solution would be, just before the foreach(), insert:

    if (!is_array($variable_name)) $variable_name = array();

    This does the same thing as in my prior post.

    I'm still curious why this occurs. Could it be an incomplete plugin setup issue?

  7. c0y0te
    Member
    Posted 3 years ago #

    I'll try it and let you know.. thanks a mil :)

  8. c0y0te
    Member
    Posted 3 years ago #

    Unfortunately all it did was remove the error, but produced no results.

    Let me be clear on that... the error was occurring when I tried to download data or comments from a survey, and all I got was the error message.

    When I put this code in front of those statements... I now no longer get an error message, but I just get a blank output instead of the comments or data from the survey.

  9. jimatwork
    Member
    Posted 3 years ago #

    Do you have phpmyadmin access so that you can see if there is data in the sql table?

  10. c0y0te
    Member
    Posted 3 years ago #

    yup.

    data does exist in the table. no issues

  11. c0y0te
    Member
    Posted 3 years ago #

    Sorry - just to clarify..data does exist but the code (When using the suggested amendment above) doesn't seem to extract said data.

  12. Dgold
    Member
    Posted 3 years ago #

    Any updates on this question: a working plugin for a true survey (not just a poll)?

    coyote said: - does anyone know of any other survey plugin I could use, or indeed any survey software which would be easy to bash into a WP site without breaking anything.

  13. bgswm1
    Member
    Posted 3 years ago #

    I would apprechiate any good and flexable survey plugins too, the Survey Creator plugin seems very limiting.

Topic Closed

This topic has been closed to new replies.

About this Topic