• Resolved JanSnowski

    (@jansnowski)


    Hi Will, I am trying out your survey plugin on a site I use for trying out stuff before I use it on my main sites. I have hit a snag after I create the survey and save then go to get the shortcode I get the message that I paste below. I also paste the page source code from lines 366 – 381.
    The theme is Suffusion child a child theme up to date.

    Warning: Invalid argument supplied for foreach() in /home/pjaweb/public_html/happyplants.co.za/wp-content/plugins/awesome-surveys/awesome-surveys.php on line 366

    PAGE SOURCE
    From line 366 to 381
    */

    /**
    * @package Awesome_Surveys
    *
    */
    class Awesome_Surveys {

    static private $wwm_plugin_values = array(
    'name' => 'Awesome_Surveys',
    'dbversion' => '1.1',
    'version' => '1.1.1',
    'supplementary' => array(
    'hire_me_html' => 'Hire Me',
    )
    );

    Thanks in advance.
    Janek

    https://wordpress.org/plugins/awesome-surveys/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    Hi Janek,

    Thank you for trying my plugin and thanks so much for the bug report. You’ve provided great information that will help me improve this plugin.

    I’ll get this issue fixed in the next update. I am curious, however, you say that you see this warning *after* you press the ‘Save Survey’ button?

    Thread Starter JanSnowski

    (@jansnowski)

    Hi Will, Thanks for the reply. Yup I created the survey, saved it and then went to get the shortcode and yave a look at this link and you can see the error message:
    http://www.happyplants.co.za/wp-content/uploads/2014/07/Survey-Results.jpg
    Have I done something wrong with the setup possibly?
    Regards,
    Janek

    Plugin Author Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    It is very unlikely that you have done anything wrong with regards to this plugin. It would appear, however, that for some reason your survey is not saving.

    Basically, the warning that you are seeing indicates that nothing has been saved to the database, If there had been no attempt made to save anything, I wouldn’t be overly concerned and would simply fix it, but since you have tried to save a survey, then something mysterious is happening.

    In addition to fixing the warning you are seeing, I’ll do something to try and provide meaningful feedback if a survey fails to save.

    Thanks for your patience while I get this sorted! 🙂

    Thread Starter JanSnowski

    (@jansnowski)

    Hi Will, Well I have no idea why or how but after your last msg I decided to go back and try again. It took two attempts and on the second one it saved and Hey Presto! it’s working. It is exactly what I want and the results are cool as well.
    Thanks for the trouble. Good job.
    Regards,
    Janek

    Plugin Author Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    That’s great news! I’m glad to hear that it’s working for you now. I will still be rolling out an update in the next few days to address the warning that you observed. Thanks again for the bug report.

    Thread Starter JanSnowski

    (@jansnowski)

    Pleasure, I am a follower 😀
    I will donate ASAP
    🙂
    Janek

    Will, I just installed your plugin on a client’s test site and had exactly the same issue after clicking the “Save Survey” button. I will try Jan’s solution of creating the survey again and let you know if that works. But it does look like you have some kind of intermittent bug. Wonder if the browser or OS makes a difference? I’m working in Firefox, latest version, in Windows 8. Sorry, I don’t know how to get that nice source code for you. 🙂

    Plugin Author Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    Janek – Thanks!

    LJWDesign – no worries, I’m intimately familiar with the source code 🙂 The next update will attempt to provide meaningful feedback if saving a survey fails.

    Well, more weirdness. When I went back to the survey creation interface, I used the same survey name as the one that “didn’t save,” and it said a survey with that name already exists. I opened the “Survey Results” tab, and low and behold, there it was!

    It seems that if, after getting the error message, you leave the plug-in interface, your save completes.

    This is a REALLY easy-to-use plug-in. I’m new to creating web sites with WordPress – this is just my second site and is much more complex and functional than my first one was. http;//www.watsonvilledrycleaners.com/wdc if you care to have a look. There will be a survey posted there in a couple of minutes!

    Thanks for the great work, and the helpfulness!

    Plugin Author Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    As of 1.1.2 there should be some type of feedback if saving a survey fails.

    Yay, Will!!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘No Shortcode’ is closed to new replies.