View Issue Details

This bug affects 4 person(s).
 52
IDProjectCategoryView StatusLast Update
18961Bug reports_ Unknownpublic2023-12-11 13:03
Reporterjuliodiz Assigned ToDenisChenu  
PriorityhighSeverityblock 
Status closedResolutionfixed 
Product Version6.1.x 
Summary18961: {SURVEYURL} didn't work with plugin using cli event
Description

{SURVEYURL} don't show complete URL

/index.php/215424?token=test1&lang=en-US

Steps To Reproduce

Steps to reproduce

Use {SURVEYURL}

Expected result

https://survey.com/index.php/215424?token=test1&lang=en-US

Actual result

/index.php/215424?token=test1&lang=en-US

TagsNo tags attached.
Bug heat52
Complete LimeSurvey version number (& build)6.1
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4.29

Relationships

has duplicate 19182 closedgabrieljenik ConsoleApplication can't use Survey->getSurveyUrl() 
related to 18960 closedollehar Don't create URL using @@SURVEYURL@@ 

Users monitoring this issue

Activities

juliodiz

juliodiz

2023-07-18 01:47

reporter   ~76116

Email Placeholders

juliodiz

juliodiz

2023-07-18 02:23

reporter   ~76119

Application Models Survey

    //$url = App()->createUrl('survey/index', $urlParams);
    $url = App()->createPublicUrl('survey/index', $urlParams);
ollehar

ollehar

2023-07-18 10:48

administrator   ~76121

Can you tell us which file and line you're suggesting a change?

ollehar

ollehar

2023-07-18 10:48

administrator   ~76122

Oh, the Survey model. Will check.

ollehar

ollehar

2023-07-18 11:01

administrator   ~76123

Hello juliodiz,
This should already be fixed in recent versions.
Can you please check if this issue still exists in the latest version of LimeSurvey and let us know?
Thank you!

juliodiz

juliodiz

2023-07-18 15:26

reporter   ~76137

Thanks!
Same problem here
I am using last version Confort Update and still having this issue.

juliodiz

juliodiz

2023-07-22 03:54

reporter   ~76235

[2023-07-21T22:44:11-03:00] [INFO] Start sendMailByCron for 455337
CException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl". in /var/www/public/vendor/yiisoft/yii/framework/base/CComponent.php:266
Stack trace:
#0 /var/www/public/application/models/Survey.php(2355): CComponent->__call('createPublicUrl', Array)

Problem when using

/usr/bin/php /var/www/public/application/commands/console.php plugin cron --interval=1

juliodiz

juliodiz

2023-07-24 15:17

reporter   ~76243

Its not working using the php script console to run and send the email.

juliodiz

juliodiz

2023-07-24 18:00

reporter   ~76252

Need to change
$url = App()->createUrl('survey/index', $urlParams);
to
$url = App()->createAbsoluteUrl('survey/index', $urlParams);

Mazi

Mazi

2023-08-15 10:21

updater   ~76589

We are facing the same "CException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl"" problem. Our inviter and reminder cronjob scripts (https://survey-consulting.com/product-category/limesurvey-plugins/limesurvey-cronjob-scripts) are showing an error when being run on console.
This problem showed up just recently at the latest 5.6.33 version.

bismark

bismark

2023-08-16 11:15

reporter   ~76612

please also fix the 5.x branch

DenisChenu

DenisChenu

2023-08-24 08:32

developer   ~76692

What is the timeframe for fixing this issue ?
Currently : all console plugin sending mail are broken.

Mazi

Mazi

2023-08-24 09:15

updater   ~76693

I'd also like to second that this issue breaks many of our plugins, so a fast fix would be much appreciated.

When applying similar changes in the future, please keep such console things in mind. This was broken several times in the past.

francois-charles.hebert

francois-charles.hebert

2023-08-24 15:49

reporter   ~76695

The bug exist in version 5.6.34, but not in 5.6.16!

DenisChenu

DenisChenu

2023-08-24 16:16

developer   ~76698

Was related to new feature «Survey alias»

DenisChenu

DenisChenu

2023-09-12 08:30

developer   ~76952

@ollehar : if you don't have time : i need it before try fixing sendMailCron,
Then : you can assign it to me.

gabrieljenik

gabrieljenik

2023-09-12 17:44

manager   ~76962

I was just asking this morning about this ticket.
We can take it.
Let me know if you want me to take it or you prefer to do it.

Thanks

DenisChenu

DenisChenu

2023-09-12 17:45

developer   ~76963

If you think you can fix before end of week : feel free to take it.

DenisChenu

DenisChenu

2023-09-13 17:12

developer   ~77014

@gabrieljenik : remind the publicurl config settings :)

gabrieljenik

gabrieljenik

2023-09-13 17:52

manager   ~77015

Sure... Let me work a bit on it and push something...

gabrieljenik

gabrieljenik

2023-09-18 14:09

manager   ~77120

Last edited: 2023-09-18 14:09

v5: https://github.com/LimeSurvey/LimeSurvey/pull/3454

Please consider the following when reviewing:
Had to add these to the config:

As this is only required when running ConsoleApplication, maybe there is the need of having specific config for console?

DenisChenu

DenisChenu

2023-09-19 09:31

developer   ~77151

v5: https://github.com/LimeSurvey/LimeSurvey/pull/3454

  1. This issue is ONLY for V6 , and are not related to console
  2. No new issue with console and createPublicUrl if i don't make error.

As this is only required when running ConsoleApplication, maybe there is the need of having specific config for console?

This is a new feature and must be reported separatly.

DenisChenu

DenisChenu

2023-09-19 10:07

developer   ~77152

@juliodiz : i check on last git version : seems OK (via web)

Except it don't use publicurl of config.

DenisChenu

DenisChenu

2023-09-19 10:14

developer   ~77153

@gabrieljenick :

Config section ('publicurl'=>'https://limesurvey.example.org:8000/limesurvey')

You can set whole baseUrl in publicurl : 'publicurl' => 'https://www.example.org/example/' work (in current master too).

gabrieljenik

gabrieljenik

2023-09-19 13:34

manager   ~77163

@DenisChenu

re: https://github.com/LimeSurvey/LimeSurvey/pull/3454#pullrequestreview-1632679815
The issue is said to be in console application, so we ported the URL methods to ConsoleApplication.
Why you say is not related?

Was related to new feature «Survey alias»

I am no that sure.
Issue seems to have started here when model got dependen on the application.
https://github.com/LimeSurvey/LimeSurvey/commit/3c7045423a5918987840f2723d7ca2e7f4097823

gabrieljenik

gabrieljenik

2023-09-19 13:37

manager   ~77164

@mazi @francois-charles.hebert @juliodiz
Maybe you can help testing the PR?

Mazi

Mazi

2023-09-19 13:49

updater   ~77165

@bismark, please have a look and check to what extend this affects our Inviter and Reminder cronjobs.

DenisChenu

DenisChenu

2023-09-19 15:23

developer   ~77170

The issue is said to be in console application, so we ported the URL methods to ConsoleApplication.

Look at the issue

Summary 18961: {SURVEYURL} not complete URL
Description

{SURVEYURL} don't show complete URL

/index.php/215424?token=test1&lang=en-US
Steps To Reproduce
Steps to reproduce

Use {SURVEYURL}
Expected result

https://survey.com/index.php/215424?token=test1&lang=en-US
Actual result

/index.php/215424?token=test1&lang=en-US

Where did you see console application here ?

DenisChenu

DenisChenu

2023-09-19 15:56

developer   ~77171

Issue seems to have started here when model got dependen on the application.

Yes, but why fix it in 5.X then ?
There are another issue to report for console here https://bugs.limesurvey.org/view.php?id=18961#c76235

But only for 6.X

gabrieljenik

gabrieljenik

2023-09-19 16:51

manager   ~77177

Yes, but why fix it in 5.X then ?

It is blocking. If fixes are similar, we cna port one to the other.

DenisChenu

DenisChenu

2023-09-19 17:15

developer   ~77181

Last edited: 2023-09-19 17:16

It is blocking. If fixes are similar, we cna port one to the other.

Oh right : the issue wityh console happen too

Just when call Survey->getSurveyUrl()

@juliodiz : can you confirem something : you report the issue only for console or there are another issue ?

juliodiz

juliodiz

2023-09-20 00:33

reporter   ~77191

{SURVEYURL} i use at email and remember email. When i use sendmailbycron URL was missing. (sendmailcron)

DenisChenu

DenisChenu

2023-09-20 09:02

developer   ~77194

{SURVEYURL} i use at email and remember email. When i use sendmailbycron URL was missing. (sendmailcron)

You deactivate error to have the mail sent ?
Because i have CException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl" and it broke!?

Why you din't report at https://gitlab.com/SondagesPro/mailing/sendMailCron/-/issues ?

DenisChenu

DenisChenu

2023-09-20 09:26

developer   ~77195

Last edited: 2023-09-20 09:39

Checked with no update on sendMail Cron

With https://github.com/LimeSurvey/LimeSurvey/commit/55d9eda4c9407db6982dfad0ae8355dfc3c0d572 (parent of https://github.com/LimeSurvey/LimeSurvey/commit/3c7045423a5918987840f2723d7ca2e7f4097823 ) :

  • OK with only sendMailCron config
tibor.pacalat

tibor.pacalat

2023-09-22 17:58

administrator   ~77287

@gabrieljenik it looks like there is more work to be done here. Any update on this?

DenisChenu

DenisChenu

2023-09-22 19:04

developer   ~77289

@Mazi and @bismark : did you test with your own plugin ?

sendMailCron didn't work, but create a fix is easy.

gabrieljenik

gabrieljenik

2023-09-25 15:30

manager   ~77313

@gabrieljenik it looks like there is more work to be done here. Any update on this?

What;s pending?

DenisChenu

DenisChenu

2023-09-26 08:34

developer   ~77321

We just wait test from @Mazi or @bismark , no ?

bismark

bismark

2023-09-26 16:50

reporter   ~77338

/**
     * php application/commands/console.php plugin --target=Mailer
     */
    public function direct()
    {
        $event = $this->getEvent();
        $target = $event->get('target');
        if ($target != get_class()) return;

        $baseUrl = $this->get('baseUrl');
        Yii::app()->setConfig('publicurl', $baseUrl);
        $survey = Survey::model()->findByPk(646148);
        var_dump($survey->getSurveyUrl();
    }
grafik.png (104,429 bytes)
DenisChenu

DenisChenu

2023-09-26 17:02

developer   ~77339

OK, then don't work : right ?

Thanks for testing

bismark

bismark

2023-09-26 19:02

reporter   ~77351

//in config.php you can define a baseUrl
'urlManager' => array(
            'baseUrl' => 'http://dev5.localhost',
            'urlFormat' => 'path',
            'rules' => array(
                // You can add your own rules here
            ),
            'showScriptName' => true,
        ),

then the following code works, the $preferShortUrl branch not

$survey = Survey::model()->findByPk(646148);
        var_dump($survey->getSurveyUrl(null, [], false));
DenisChenu

DenisChenu

2023-09-27 08:32

developer   ~77352

        'baseUrl' => 'http://dev5.localhost',

We can not force using baseUrl in config.php : a lot of user have access to same DB from different URL (and some just for admin).

juliodiz

juliodiz

2023-09-27 17:09

reporter   ~77386

Hey.
Update last version confortupdate , using sendmailcron error:

[2023-09-27T12:04:58-03:00] [INFO] Start sendMailByCron for 692856
CException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl". in public/vendor/yiisoft/yii/framework/base/CComponent.php:266

DenisChenu

DenisChenu

2023-10-02 17:04

developer   ~77468

Last edited: 2023-10-02 17:05

We can not force using baseUrl in config.php : a lot of user have access to same DB from different URL (and some just for admin).

And more the question is to don't force any admin user to set someting in config.php, must work with Plugin config set.

Plugin can easily set publicurl before usage (App()->setConfig is public, and maybe we can move it to LimeSurveyAPI)

If current PR work with (App()->setConfig('publicurl'),"http.example.org") inside a plughin : let's go ?

juliodiz

juliodiz

2023-10-02 20:36

reporter   ~77478

Update the last version and still the same problem:

http://index.php/238118?token=Q8eBcFasdsadasdqeL&lang=en

juliodiz

juliodiz

2023-10-04 04:58

reporter   ~77490

Still need to change

Application Models Survey

$url = App()->createAbsoluteUrl('survey/index', $urlParams);

gabrieljenik

gabrieljenik

2023-10-04 19:43

manager   ~77508

@juliodiz this is not released yet. If you want to test, please use the PR in this post: https://bugs.limesurvey.org/view.php?id=18961#c77120

gabrieljenik

gabrieljenik

2023-10-04 19:44

manager   ~77509

@DenisChenu

If current PR work with (App()->setConfig('publicurl'),"http.example.org") inside a plughin : let's go ?

Haven't tested it, but following the automatic tests, I would say it works.
You tested somethingsimilar on your plugin, right?

gabrieljenik

gabrieljenik

2023-10-05 15:40

manager   ~77521

@bismark

the $preferShortUrl branch not

You have set publicUrl?

Also, have you tried setting the request->hostinfo ?
Also, setting the baseUrl of the request as well, because hostinfo will look for it when it does not have a baseurl.

A clarification regarding setting the baseUrl: there are two.

  • One is the one for the request
  • and another is the one for the url manager.

Both are needed.

DenisChenu

DenisChenu

2023-10-25 19:03

developer   ~78013

You tested somethingsimilar on your plugin, right?

Not currently, wait for feedback from @bismark

francois-charles.hebert

francois-charles.hebert

2023-11-23 18:22

reporter   ~78700

Hi,
I tested some things related to this. It might be helpful, otherwise don't mind this note.

1- I managed to trigger sendMailCron using the CLI while using this https://github.com/LimeSurvey/LimeSurvey/pull/3454 (LS v5.6.37, PHP 8.0.2, sendMailCron version 4.3.2) without any errors. (see first picture for cli results)
Note: i did not edit the config file beforehand.
I received the email with complete url.
''
Cliquez ici pour remplir ce questionnaire :
http://limesurvey.local.e-alpha.ca/index.php?r=survey/index&token=test123&sid=729582&lang=fr

Si vous ne souhaitez pas participer à ce questionnaire et ne souhaitez plus recevoir aucune invitation, veuillez cliquer sur le lien suivant :
http://limesurvey.local.e-alpha.ca/index.php?r=optout/tokens&surveyid=729582&token=test123&langcode=fr

Si vous êtes sur liste noire mais que vous voulez participer à ce questionnaire et recevoir les invitations, merci de cliquer sur le lien suivant :
http://limesurvey.local.e-alpha.ca/index.php?r=optin/tokens&surveyid=729582&token=test123&langcode=fr
''

2- I tried this line as mentionned in another comment: php application/commands/console.php plugin --target=Mailer, but did not seems to do anything on my installation. (No exception raised, nothing).

Is there any other specific test that needs to be done?

gabrieljenik

gabrieljenik

2023-11-23 20:08

manager   ~78703

Note: i did not edit the config file beforehand.
I received the email with complete url

Strange, Maybe it was already set?

francois-charles.hebert

francois-charles.hebert

2023-11-27 18:43

reporter   ~78750

I rechecked my config file, and its not set.
Here's my file:
<pre>
<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
/*
------------------------------------------------------------------- DATABASE CONNECTIVITY SETTINGS
This file will contain the settings needed to access your database.
For complete instructions please consult the 'Database Connection'
page of the User Guide.
-------------------------------------------------------------------
EXPLANATION OF VARIABLES
-------------------------------------------------------------------
'connectionString' Hostname, database, port and database type for
the connection. Driver example: mysql. Currently supported:
mysql, pgsql, mssql, sqlite, oci
'username' The username used to connect to the database
'password' The password used to connect to the database
'tablePrefix' You can add an optional prefix, which will be added
to the table name when using the Active Record class

*/
return array(

// 'request' => ['baseUrl' => '/LimeSurvey'],
'components' => array(
    'db' => array(
        'connectionString' => 'mysql:host=localhost;port=3306;dbname=limesurvey;',
        'emulatePrepare' => true,
        'username' => 'root',
        'password' => '',
        'charset' => 'utf8mb4',
        'tablePrefix' => 'lime_',
    ),

    'session' => array(
        'sessionName' => 'LS-ZTZQQQPRUJMTJHLT',
        // Uncomment the following lines if you need table-based sessions.
        // Note: Table-based sessions are currently not supported on MSSQL server.
        // 'class' => 'application.core.web.DbHttpSession',
        // 'connectionID' => 'db',
        // 'sessionTableName' => '{{sessions}}',
    ),

    'urlManager' => array(
        'urlFormat' => 'get',
        'rules' => array(// You can add your own rules here
        ),
        'showScriptName' => true,
    ),

    'log' => array(
        'routes' => array(
            'allError' => array(
                'class' => 'CFileLogRoute',
                'levels' => 'error',
                // 'levels' => 'info, error, warning',
                'logFile' => 'logs/app.log',
            ),
        ),
    ),
),

// For security issue : it's better to set runtimePath out of web access
// Directory must be readable and writable by the webuser
// 'runtimePath'=>'/var/limesurvey/runtime/'
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config' => array(
    // 'publicurl' => 'https://limesurvey.local.e-alpha.ca/',

    // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
    // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
    // on your webspace.
    // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
    'debug' => 2,
    'debugsql' => 0, // Set this to 1 to enanble sql logging, only active when debug = 2
    // Mysql database engine (INNODB|MYISAM):
    'mysqlEngine' => 'MYISAM',        // Update default LimeSurvey config here
)

);
</pre>

I ran the following command:
<pre>
php -d memory_limit=768M C:\laragon\www\limesurvey\application\commands\console.php plugin cron sendMailCronDebug=3 sendMailCronType=12h00 --interval=60
</pre>

Which, if i understand correctly, trigger the CLI event for plugin.

I kept the default email template, which contains the {SURVEYURL}, and the link in the received email is complete:

<pre>
Dear François Charles,

You have been invited to participate in a survey.

The survey is titled:
"test fix sendMailCron with Survey url"

""

To participate, please click on the link below.

Sincerely,

Dialogs Brio (info@dialogsbriodemo.com)


Click here to do the survey:
http://limesurvey.local.e-alpha.ca/index.php?r=survey/index&amp;token=7hItBEkyPLjlqCc&amp;sid=837923&amp;lang=fr

If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:
http://limesurvey.local.e-alpha.ca/index.php?r=optout/tokens&amp;surveyid=837923&amp;token=7hItBEkyPLjlqCc&amp;langcode=fr

If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link:
http://limesurvey.local.e-alpha.ca/index.php?r=optin/tokens&amp;surveyid=837923&amp;token=7hItBEkyPLjlqCc&amp;langcode=fr
</pre>

All i did was checkout on the branch https://github.com/LimeSurvey/LimeSurvey/tree/bug/18961--SURVEYURL-not-complete-URL , create a new survey with participant, configure send mail cron for the survey and then trigger manually the command.

francois-charles.hebert

francois-charles.hebert

2023-11-27 18:48

reporter   ~78751

On the 5.x branch, if i run the same command, it raises the following error:

[2023-11-27T17:47:26+00:00] [TRACE] Send : francois-charles.hebert@dialogs.ca (1) for 837923
CException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl". in C:\laragon\www\LimeSurvey\vendor\yiisoft\yii\framework\base\CComponent.php:266
Stack trace:
#0 C:\laragon\www\LimeSurvey\application\models\Survey.php(2386): CComponent->__call('createPublicUrl', Array)
#1 C:\laragon\www\LimeSurvey\application\core\LimeMailer.php(826): Survey->getSurveyUrl('en', Array)
#2 C:\laragon\www\LimeSurvey\application\core\LimeMailer.php(855): LimeMailer->getTokenReplacements()
#3 C:\laragon\www\LimeSurvey\application\core\LimeMailer.php(566): LimeMailer->doReplacements('Invitation to p...')
#4 C:\laragon\www\LimeSurvey\plugins\sendMailCron\sendMailCron.php(979): LimeMailer->sendMessage()
#5 C:\laragon\www\LimeSurvey\plugins\sendMailCron\sendMailCron.php(782): sendMailCron->sendEmails('837923', 'invite')
#6 C:\laragon\www\LimeSurvey\plugins\sendMailCron\sendMailCron.php(341): sendMailCron->sendTokenMessages()
#7 [internal function]: sendMailCron->sendMailByCron()
#8 C:\laragon\www\LimeSurvey\application\libraries\PluginManager\PluginManager.php(269): call_user_func(Array)
#9 C:\laragon\www\LimeSurvey\application\commands\PluginCommand.php(38): LimeSurvey\PluginManager\PluginManager->dispatchEvent(Object(PluginEvent))
#10 [internal function]: PluginCommand->actionCron('60')
#11 C:\laragon\www\LimeSurvey\vendor\yiisoft\yii\framework\console\CConsoleCommand.php(178): ReflectionMethod->invokeArgs(Object(PluginCommand), Array)
#12 C:\laragon\www\LimeSurvey\vendor\yiisoft\yii\framework\console\CConsoleCommandRunner.php(71): CConsoleCommand->run(Array)
#13 C:\laragon\www\LimeSurvey\vendor\yiisoft\yii\framework\console\CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#14 C:\laragon\www\LimeSurvey\vendor\yiisoft\yii\framework\base\CApplication.php(185): CConsoleApplication->processRequest()
#15 C:\laragon\www\LimeSurvey\application\commands\console.php(77): CApplication->run()
#16 {main}

gabrieljenik

gabrieljenik

2023-11-27 23:37

manager   ~78753

On the 5.x branch, if i run the same command, it raises the following error:
Yes, the fix is not merged on 5.x

Note: i did not edit the config file beforehand.
I received the email with complete url

Does that make sense @DenisChenu?

DenisChenu

DenisChenu

2023-11-28 08:51

developer   ~78756

Does that make sense @DenisChenu?

Seems great ! Let's go :)

(Still : i need to fix the way sendMailCron plugin do it : i think usage of publicurl is better, i do it after the commit is done)

DenisChenu

DenisChenu

2023-11-28 08:52

developer   ~78757

ready for merge ?

tibor.pacalat

tibor.pacalat

2023-11-28 17:04

administrator   ~78785

@DenisChenu Some conflicts need to be resolved first https://github.com/LimeSurvey/LimeSurvey/pull/3454

gabrieljenik

gabrieljenik

2023-11-28 20:34

manager   ~78796

Ready

guest

guest

2023-11-29 16:35

viewer   ~78810

Fix committed to 5.x branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=35795

cartwheeljoint

cartwheeljoint

2023-11-30 09:03

reporter   ~78816

We are facing the same "CException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl"" problem. Our inviter and reminder cronjob scripts (https://doodlejumping.com) are showing an error when being run on console.
This problem showed up just recently at the latest 5.6.33 version.

Mazi

Mazi

2023-11-30 12:52

updater   ~78821

@cartwheeljoint: We have just released updated versions of the "Inviter" and "Reminder" email plugins. If you have purchased them within the last 12 months, you should be able to download the Limesurvey plugins for free.
You can find all latest fixed and new feature added at the "Changelog" tab at:
https://survey-consulting.com/product/automatically-send-email-invitations/
https://survey-consulting.com/product/automatically-send-email-reminders/

gabrieljenik

gabrieljenik

2023-11-30 13:55

manager   ~78828

Master: https://github.com/LimeSurvey/LimeSurvey/pull/3645

LimeBot

LimeBot

2023-12-04 13:02

administrator   ~78863

Fixed in Release 5.6.48+231205

DenisChenu

DenisChenu

2023-12-04 16:16

developer   ~78866

I assign it to me for testing too :)

gabrieljenik

gabrieljenik

2023-12-04 16:35

manager   ~78867

Wondering if we should create a new story for this:

Had to add these to the config:

  • Config section ('publicurl'=>'https://limesurvey.example.org:8000/limesurvey')
  • Components section ('request ' => ['baseUrl' => '/limesurvey'])
    As this is only required when running ConsoleApplication, maybe there is the need of having specific config for console?

Or add it somewhere as comments in a config? Or somewhere in the doc?

DenisChenu

DenisChenu

2023-12-04 16:38

developer   ~78868

Wondering if we should create a new story for this:

There are no current console action sending email, then set publicurl (or other way) are the responsibility to plugin dev.

But : why not add it to API : it can be interesting

gabrieljenik

gabrieljenik

2023-12-04 17:03

manager   ~78869

There are no current console action sending email, then set publicurl (or other way) are the responsibility to plugin dev.

We can provide something as to ease that.
It is not much of a hassle to allow a specific config file only for console that would allow extra configs.

DenisChenu

DenisChenu

2023-12-04 17:09

developer   ~78870

It is not much of a hassle to allow a specific config file only for console that would allow extra configs.

publicurl is used for all links

Else : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/config/console.php

  1. Unsure it was loaded,
  2. Can include a config-console if exist

good idea :)

guest

guest

2023-12-05 16:15

viewer   ~78881

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=35805

DenisChenu

DenisChenu

2023-12-05 16:15

developer   ~78882

Since other user test it and i test it (and commit is clean !)

Merged

LimeBot

LimeBot

2023-12-11 13:03

administrator   ~78936

Fixed in Release 6.3.9+231211

Related Changesets

LimeSurvey: 5.x 9d4abed0

2023-11-29 16:26:59

Gabriel Jenik


Committer: GitHub Details Diff
Fixed issue 18961: {SURVEYURL} didn't work with plugin using cli event (#3454)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
18961
mod - application/core/LSYii_Application.php Diff File
mod - application/core/Traits/LSApplicationTrait.php Diff File

LimeSurvey: master ad076b19

2023-12-05 16:15:09

Gabriel Jenik


Committer: GitHub Details Diff
Fixed issue 18961: {SURVEYURL} didn't work with plugin using cli event Affected Issues
18961
mod - application/core/LSYii_Application.php Diff File
mod - application/core/Traits/LSApplicationTrait.php Diff File

Issue History

Date Modified Username Field Change
2023-07-18 00:35 juliodiz New Issue
2023-07-18 01:47 juliodiz Note Added: 76116
2023-07-18 01:47 juliodiz Bug heat 0 => 2
2023-07-18 02:23 juliodiz Note Added: 76119
2023-07-18 10:48 ollehar Note Added: 76121
2023-07-18 10:48 ollehar Bug heat 2 => 4
2023-07-18 10:48 ollehar Note Added: 76122
2023-07-18 10:53 ollehar Priority none => high
2023-07-18 11:01 ollehar Note Added: 76123
2023-07-18 11:01 ollehar Assigned To => ollehar
2023-07-18 11:01 ollehar Status new => feedback
2023-07-18 15:26 juliodiz Note Added: 76137
2023-07-18 15:26 juliodiz Status feedback => assigned
2023-07-22 03:54 juliodiz Note Added: 76235
2023-07-24 15:17 juliodiz Note Added: 76243
2023-07-24 17:59 DenisChenu Issue Monitored: DenisChenu
2023-07-24 17:59 DenisChenu Bug heat 4 => 6
2023-07-24 18:00 juliodiz Note Added: 76252
2023-08-15 10:04 guest Bug heat 6 => 12
2023-08-15 10:21 Mazi Note Added: 76589
2023-08-15 10:21 Mazi Bug heat 12 => 20
2023-08-16 11:15 bismark Note Added: 76612
2023-08-16 11:15 bismark Bug heat 20 => 22
2023-08-24 08:32 DenisChenu Note Added: 76692
2023-08-24 08:32 DenisChenu Bug heat 22 => 24
2023-08-24 09:15 Mazi Note Added: 76693
2023-08-24 15:07 guest Bug heat 24 => 30
2023-08-24 15:11 francois-charles.hebert Issue Monitored: francois-charles.hebert
2023-08-24 15:11 francois-charles.hebert Bug heat 30 => 32
2023-08-24 15:49 francois-charles.hebert Note Added: 76695
2023-08-24 15:49 francois-charles.hebert Bug heat 32 => 34
2023-08-24 16:16 DenisChenu Note Added: 76698
2023-09-11 19:52 gabrieljenik Relationship added related to 18960
2023-09-12 08:30 DenisChenu Note Added: 76952
2023-09-12 17:44 gabrieljenik Note Added: 76962
2023-09-12 17:44 gabrieljenik Bug heat 34 => 36
2023-09-12 17:45 DenisChenu Note Added: 76963
2023-09-12 18:50 gabrieljenik Assigned To ollehar => gabrieljenik
2023-09-13 17:12 DenisChenu Note Added: 77014
2023-09-13 17:52 gabrieljenik Note Added: 77015
2023-09-18 14:09 gabrieljenik Assigned To gabrieljenik => DenisChenu
2023-09-18 14:09 gabrieljenik Status assigned => ready for code review
2023-09-18 14:09 gabrieljenik Note Added: 77120
2023-09-18 14:09 gabrieljenik Note Edited: 77120
2023-09-19 09:31 DenisChenu Note Added: 77151
2023-09-19 10:07 DenisChenu Note Added: 77152
2023-09-19 10:14 DenisChenu Note Added: 77153
2023-09-19 10:15 DenisChenu Assigned To DenisChenu => gabrieljenik
2023-09-19 10:15 DenisChenu Status ready for code review => in code review
2023-09-19 13:34 gabrieljenik Note Added: 77163
2023-09-19 13:37 gabrieljenik Note Added: 77164
2023-09-19 13:49 Mazi Note Added: 77165
2023-09-19 15:23 DenisChenu Note Added: 77170
2023-09-19 15:56 DenisChenu Note Added: 77171
2023-09-19 16:51 gabrieljenik Note Added: 77177
2023-09-19 17:15 DenisChenu Note Added: 77181
2023-09-19 17:16 DenisChenu Note Edited: 77181
2023-09-20 00:33 juliodiz Note Added: 77191
2023-09-20 09:01 DenisChenu Summary {SURVEYURL} not complete URL => {SURVEYURL} didn't work with plugin using cli event
2023-09-20 09:02 DenisChenu Note Added: 77194
2023-09-20 09:19 DenisChenu Status in code review => ready for testing
2023-09-20 09:26 DenisChenu Note Added: 77195
2023-09-20 09:27 DenisChenu Note Edited: 77195
2023-09-20 09:39 DenisChenu Note Edited: 77195
2023-09-20 14:39 gabrieljenik Assigned To gabrieljenik => tibor.pacalat
2023-09-22 17:57 tibor.pacalat Status ready for testing => feedback
2023-09-22 17:57 tibor.pacalat Assigned To tibor.pacalat => gabrieljenik
2023-09-22 17:58 tibor.pacalat Note Added: 77287
2023-09-22 17:58 tibor.pacalat Bug heat 36 => 38
2023-09-22 19:04 DenisChenu Note Added: 77289
2023-09-25 15:30 gabrieljenik Note Added: 77313
2023-09-26 08:34 DenisChenu Note Added: 77321
2023-09-26 16:50 bismark Note Added: 77338
2023-09-26 16:50 bismark File Added: grafik.png
2023-09-26 17:02 DenisChenu Note Added: 77339
2023-09-26 19:02 bismark Note Added: 77351
2023-09-27 08:32 DenisChenu Note Added: 77352
2023-09-27 17:09 juliodiz Note Added: 77386
2023-09-27 17:09 juliodiz Status feedback => assigned
2023-10-02 17:04 DenisChenu Note Added: 77468
2023-10-02 17:05 DenisChenu Note Edited: 77468
2023-10-02 20:36 juliodiz Note Added: 77478
2023-10-04 04:58 juliodiz Note Added: 77490
2023-10-04 19:43 gabrieljenik Note Added: 77508
2023-10-04 19:44 gabrieljenik Note Added: 77509
2023-10-05 15:40 gabrieljenik Note Added: 77521
2023-10-09 19:04 gabrieljenik Status assigned => feedback
2023-10-20 09:37 DenisChenu Relationship added related to 19182
2023-10-25 18:48 gabrieljenik Relationship replaced has duplicate 19182
2023-10-25 18:48 gabrieljenik Bug heat 38 => 44
2023-10-25 18:48 gabrieljenik Issue Monitored: fcatalan
2023-10-25 18:48 gabrieljenik Bug heat 44 => 46
2023-10-25 19:03 DenisChenu Note Added: 78013
2023-11-23 18:22 francois-charles.hebert Note Added: 78700
2023-11-23 18:22 francois-charles.hebert File Added: image_2023-11-23_121838376.png
2023-11-23 20:08 gabrieljenik Note Added: 78703
2023-11-27 18:43 francois-charles.hebert Note Added: 78750
2023-11-27 18:48 francois-charles.hebert Note Added: 78751
2023-11-27 23:37 gabrieljenik Note Added: 78753
2023-11-28 08:51 DenisChenu Note Added: 78756
2023-11-28 08:52 DenisChenu Status feedback => ready for testing
2023-11-28 08:52 DenisChenu Status ready for testing => ready for merge
2023-11-28 08:52 DenisChenu Note Added: 78757
2023-11-28 17:04 tibor.pacalat Note Added: 78785
2023-11-28 20:34 gabrieljenik Note Added: 78796
2023-11-29 16:27 tibor.pacalat Status ready for merge => resolved
2023-11-29 16:27 tibor.pacalat Resolution open => fixed
2023-11-29 16:35 Changeset attached => LimeSurvey 5.x 9d4abed0
2023-11-29 16:35 guest Note Added: 78810
2023-11-29 16:35 guest Bug heat 46 => 48
2023-11-30 09:03 cartwheeljoint Note Added: 78816
2023-11-30 09:03 cartwheeljoint Bug heat 48 => 50
2023-11-30 12:52 Mazi Note Added: 78821
2023-11-30 13:55 gabrieljenik Status resolved => ready for code review
2023-11-30 13:55 gabrieljenik Note Added: 78828
2023-12-04 13:02 LimeBot Note Added: 78863
2023-12-04 13:02 LimeBot Status ready for code review => closed
2023-12-04 13:02 LimeBot Bug heat 50 => 52
2023-12-04 13:41 gabrieljenik Assigned To gabrieljenik => DenisChenu
2023-12-04 13:41 gabrieljenik Status closed => ready for code review
2023-12-04 16:16 DenisChenu Note Added: 78866
2023-12-04 16:16 DenisChenu Status ready for code review => ready for testing
2023-12-04 16:35 gabrieljenik Note Added: 78867
2023-12-04 16:38 DenisChenu Note Added: 78868
2023-12-04 17:03 gabrieljenik Note Added: 78869
2023-12-04 17:09 DenisChenu Note Added: 78870
2023-12-05 16:15 Changeset attached => LimeSurvey master ad076b19
2023-12-05 16:15 guest Note Added: 78881
2023-12-05 16:15 DenisChenu Status ready for testing => resolved
2023-12-05 16:15 DenisChenu Note Added: 78882
2023-12-11 13:03 LimeBot Note Added: 78936
2023-12-11 13:03 LimeBot Status resolved => closed