Welcome to the LimeSurvey Community Forum

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

"PlugIn not compatible with your current Limesurvey version"

  • hagerregah
  • hagerregah's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 weeks 4 days ago #270255 by hagerregah
PHP 8.3
LimeSurvey Community Edition   Version 6.12.4+250408 

I wanted to add a new basic plugin (with the php file+ the config.xml) I added them to a folder named (Topix_v2) inside plugins folder.
Then when i went to limesurvey's plugin managers and refreshed the page it gives me the following message"PlugIn not compatible with your current Limesurvey version"


Here is the full config.xml


"<?xml version="1.0" encoding="UTF-8"?>
<config>
    <metadata>
        <name>Topix_v2</name>
        <description>Topix_v2</description>
        <version>1.0</version>
        <author>Your Name</author>
        <license>GPLv3</license>
       <compatibility>6.12.4</compatibility>
    </metadata>
</config>
"




"<?php

use LimeSurvey\PluginManager\PluginBase;

class Topix_v2 extends PluginBase
{
    static protected $description = 'Un plugin de test très simple compatible LS 6';
    static protected $name = 'Topix_v2';

    public function init()
    {
        $this->subscribe('afterSurveyComplete');
    }

    public function afterSurveyComplete()
    {
        $event = $this->getEvent();
        $surveyId = $event->get('surveyId');
        $responseId = $event->get('responseId');

        // Écrit dans le log runtime
        Yii::log("Topix_v2: Le sondage $surveyId est terminé (réponse $responseId).", 'info', 'application.plugins.HelloWorld');

        // Montre un message de test à l'utilisateur
        $this->getController()->renderPartial(
            'message',
            array(
                'title' => 'Merci !',
                'message' => 'Merci d\'avoir participé au sondage ! (Plugin Topix_v2)'
            )
        );
    }
}
"

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 4 days ago - 3 weeks 4 days ago #270256 by Joffm
Hi,
your "config.xml" is nor correct.
  • <compatibility> is not part of <metadata>
  • <version> has to be added to <compatibility>
Please compare with the "config.xml" of other plugins!

With this
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config>
    <metadata>
        <name>Topix2</name>
        <type>plugin</type>
        <description><![CDATA[Topix_v2]]></description>
        <version>1.0</version>
        <license>GPLv3</license>
        <creationDate>2025-01-06/creationDate>
        <lastUpdate>2025-01-31</lastUpdate>
        <author>My Name</author>
    </metadata>
    <compatibility>
        <version>6</version>
    </compatibility>
</config>

I do not see an issue to install the plugin.
 
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 weeks 4 days ago by Joffm.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • hagerregah
  • hagerregah's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 weeks 4 days ago #270257 by hagerregah
Ok I did the installation, but when i try to activate it I get this: "Missing configuration file for plugin Topix2, looked in "Topix2/config.xml", inside the folder related to "user" plugin type."

why?

The config file exist

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 weeks 1 day ago #270280 by DenisChenu
Send the plugin zip here

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose