WordPress.org

Ready to get started?Download WordPress

Forums

SurveyMe
[resolved] Fatal error: Call to undefined function fnmatch() (23 posts)

  1. rbncha
    Member
    Posted 3 years ago #

    Installed SurveyMe. But it couldn't be activated and gives this error.

    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Call to undefined function fnmatch() in C:\wamp\www\wordpress\wp-content\plugins\wp-survey\library\base\b1v\FS.php on line 48

    Can you suggest me what to do ?

    I have PHP 5.2.6.

    Thanks in advance

  2. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    Damn,
    It would look that function didn't become available on a windows platform will version 5.3.

    I'll what can be done.

    -D

  3. egoipse
    Member
    Posted 3 years ago #

    The installation and all the functions worked fine. But it is not recording the answers. Any time you go to "Collected Data" tab, you only see a big 0 (zero) in "Records" field. And the tab only shows the "download" option. There's no "Table" options. And, of course, the cvs downloaded file is totally empty. The same happens in mysql table: empty. The plugin is not recording answers.

    This is the best surveys plugin around. It's quite nice. DCoda did a great job. But it is not precisely useful if it doesn't record the answers.

    Any help will be great. All my e-mail db received an invitation to answer.

    Thanks a lot

  4. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    @rbncha:
    A solution has been found and should apear in the next release.

  5. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    @egoipse:
    If you could let me know the php version , OS, mysql version and wordpress version that would be handy.

    If everything else is working fine, then the problem may be with the survey you created. Can I ask you to try the default survey to see if that works, and send me a screenshot of the survey you created to see if i can spot anything in the configuration.

    -D

  6. egoipse
    Member
    Posted 3 years ago #

    Thanks a lot for the answer. Here's the information you're asking for:

    1. I did not try with the default survey. I created a new one.
    2. I created the new one, called "Encuesta 2010", with html code for css styling. Then I removed it, but with no changes.
    3. PHP version: 5.2.10
    4. Mysql server version: 5.0.91-community
    5. OS: Mac OS 10.6 Leopard
    6. WordPress Version: 3.0.2

    Here's a snapshot of survey's back-end: http://vidaoutdoor.com/surveyme.png

    You can see the survey itself here.

  7. egoipse
    Member
    Posted 3 years ago #

    I tried to answer the default survey. The answer was recorded. But when I try to download the .csv file, i get the this message. So can see it here: http://vidaoutdoor.net/SurveyMe/default.csv

  8. egoipse
    Member
    Posted 3 years ago #

    I also got a new error. All the required questions were answered, but the survey is loaded again with some questions red-marked as they weren't answered. I removed the "required" check to all questions and the issue got solved.

    It seems you found a hard and an annoying tester here.

    Thanks a lot again for your time

  9. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    The html in the question will definitely be a problem.
    The flexibility of the form relies on using the questions as the name on the form and in the table. If you could remove this and rely on a stylesheet to change the way the questions look.

    The problem with the csv not downloading should be addressed in the next release.

    The problem with the mandatory fields would also be down to the html in the questions as form names don't like certain characters and modifies them, which means they cannot be matched to the questions you entered.
    The problem with non alpha numerica characters in the question is something we will try to fix but its a difficult one to get all the permutations. So its best to keep the questions as simple as possible.

  10. egoipse
    Member
    Posted 3 years ago #

    I've already tried without the html code. And the result is the same. So, the problem doesn't rely on the code...

  11. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    You said the survey was called "Encuesta 2010", is that exact or did it have some special characters in the title as well?
    I do think the whole problem is down to characters that are not allowed as form fields and table fields and names, definitely the brackets in the html, and probably the special characters too.

    A new version is due to be release that should cure some of the problems.
    But this will need a bit of experimenting to determine the exact cause, hopefully a solution should be in the version after next.
    If i can ask you to leave up the survey somewhere i can get to it so i can use it as a test case.

    -D

  12. egoipse
    Member
    Posted 3 years ago #

    This is the exact title. Would you include the spanish-language accents on "special characters" category you're talking about?? Because practically all the question fields have characters with accents... Let me try without accents and tell you the results.

    Thanks again for the time.

  13. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    Yes I think the spanish characters maybe a problem, as they and the only difference apparent at the moment. If they do apear to be the case a possible solution would be to swap them when they are used for the field names.

    -D

  14. egoipse
    Member
    Posted 3 years ago #

    Well... I'm removing all the spanish characters, including question marks.

    Just one observation: without html, the survey it's illegible... Take a look: http://vidaoutdoor.net/

  15. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    you will need to apply some css styling to the LABEL tags to get the questions to look the way you need.

    -D

  16. egoipse
    Member
    Posted 3 years ago #

    BTW, which characters would you consider "special" ones? Maybe slash, the "@" character?

  17. egoipse
    Member
    Posted 3 years ago #

    There's a problem with the solution you suggest. In the question fields we also write the observations and instructions, which need to look different to avoid peolple confuse them with the question itself. So, we would need two labels for one field, which, according to you, it is not posible, because html tags are not allowed. Waht a about a new field for observations and instructions? Other plugins have it...

  18. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    The character seems to be valid in mysql fields.

    did you say that no table was showing up?

    That is what has me. The name you supplied for the form is valid, and it should at least create the basic table before adding the question fields.
    I'll have a quick look tomorrow to see if a fix can be included in the next release.

    -D

  19. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    I'll add the second field to the list for a later version.

  20. egoipse
    Member
    Posted 3 years ago #

    It didn't work. I replace all heterodox characters. But it didn't work.

    I have to move on. I'll write the code by my self. The plugin is not working.

    Thanks again for your time

  21. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry for not finding a solution.
    I'll still try to recreate the problem , so a solution can be found, just for my piece of mind.

  22. egoipse
    Member
    Posted 3 years ago #

    Finally I had to code all the survey since the beginning.

    I saw you updated the plugin. Is it a mayor upgrade? Are some problems discussed here solved? I didn't uninstalled the plugin yet. And if it is working fine or, at least, better, maybe I'll keep it...

  23. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    Its not considered a major upgrade, since there are no new feature just a few bug fixes and a few have been polished.

    This release was in the works before we talked, but should address the problem you had with downloading.

    THe problem with the special characters is still being looked into.

    -D

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags