• 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

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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?

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

    Thread Starter c0y0te

    (@c0y0te)

    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.

    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.

    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?

    Thread Starter c0y0te

    (@c0y0te)

    I’ll try it and let you know.. thanks a mil ??

    Thread Starter c0y0te

    (@c0y0te)

    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.

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

    Thread Starter c0y0te

    (@c0y0te)

    yup.

    data does exist in the table. no issues

    Thread Starter c0y0te

    (@c0y0te)

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

    Dgold

    (@dgold)

    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.

    bgswm1

    (@bgswm1)

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Free Survey Plugin or working version of WP-Survey?’ is closed to new replies.