Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

autoComplete plugin cannot be installed, Missing configuration file.

  • francisakabo
  • francisakabo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 8 months ago #231434 by francisakabo
autoComplete plugin has been working very well for me on version 3.27.6+210629 until I upgraded to Version 5.3.32+220817. When I scan for plugin files, I get this error message: "Missing configuration file". I am running LS on Ubuntu 20.04.4 LTS. When i checked online, i saw that a bug was reported and fixed but then when I pulled the latest version, I realized that the issue persisted.

Please any assistance on how to fix this?

Thank you.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 8 months ago #231437 by holch
It would be a good idea to give a link to this autoComplete plugin.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • francisakabo
  • francisakabo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 8 months ago #231439 by francisakabo

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 8 months ago #231440 by Joffm
Regarding the configuraqtion file.

Copy a config file from another plugin and adapt the texts

This I use for "autocomplete"
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config>
    <metadata>
        <name>Autocomplete</name>
        <type>plugin</type>
        <creationDate>2016-11-04</creationDate>
        <lastUpdate>2021-11-12</lastUpdate>
        <author>Denis Chenu</author>
        <authorUrl>https://www.sondages.pro</authorUrl>
        <version>2.2.1</version>
        <license>GNU Affero General Public License v3.0</license>
        <description><![CDATA[Autocomplete]]></description>
    </metadata>
 
    <compatibility>
        <version>5</version>
        <version>3</version>
        <version>2.73</version>
    </compatibility>
</config>

Some plugins originally developed for 3.x. don't include the config.xml. It was not required.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: holch

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 8 months ago - 1 year 8 months ago #231441 by holch
Maybe a pull request would make sense to update the plugin, so that it works out of the box. Thank you Joffm for providing this!

Adding the Config file was what I had remembered, but I couldn't provide any details.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 1 year 8 months ago by holch.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • francisakabo
  • francisakabo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 8 months ago #231448 by francisakabo
Thank you @Joffm I did exactly that and it worked.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 8 months ago #231450 by Joffm
One more word about this plugin.
It gets very very slow when there are many elements.
E.g. a list of 5000 elements took 12 seconds to show a result.
If you have many elements you should use this solution which is really fast.
Code:
<link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" />
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/1.0.11/jquery.csv.min.js"></script><script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:complete',function() {
  var url = "/upload/surveys/{SID}/files/names.csv";
  var Names = new Array();  $.get(url,function(data){
    fullArray = $.csv.toArrays(data);
    $(fullArray).each(function(i, item){
      Names.push(item[0]);
    });    $("#question{QID} input[type=text]:eq(0)").autocomplete({
      minLength: 2,
      source: Names
    });  });});</script>

If there are only a few elements (150) you may have a look at the question theme "searchable dropdown", or even "Multiple Choice dropdown"
[url] github.com/tpartner?tab=repositories [/url]

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 8 months ago #231452 by Joffm
Again the script
Code:
<link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" />
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/1.0.11/jquery.csv.min.js"></script>
 
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:complete', function() {
  var url = "/upload/surveys/{SID}/files/names.csv";
 
  var Names = new Array();
 
  $.get(url, function(data) {
    fullArray = $.csv.toArrays(data);
    $(fullArray).each(function(i, item) {
      Names.push(item[0]);
    });
 
    $("#question{QID} input[type=text]:eq(0)").autocomplete({
      minLength: 2,
      source: Names
    });
 
  });
});
</script>

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • francisakabo
  • francisakabo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 8 months ago #231467 by francisakabo
Thanks, @Joffm. Repo bookmarked with 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 6 months ago #232737 by holch
Ryan, my friend, you have earned yourself a forum ban for spamming the forum! Congratulations!

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose