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
  • Away
  • Junior Member
  • Junior Member
More
3 hours 33 minutes 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.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose