View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
19182 | Bug reports | Plugins | public | 2023-10-20 09:30 | 2023-10-25 18:48 |
Reporter | fcatalan | Assigned To | gabrieljenik | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | duplicate | ||
Product Version | 6.2.x | ||||
Summary | 19182: ConsoleApplication can't use Survey->getSurveyUrl() | ||||
Description | We use the sendMailCron plugin to automate our reminder mailings. We have a new 6.2 install and were trying the plugin. We had to update the compatibility section in config.xml on the plugin and then it installed and configured just fine. But when trying it we got the following error: CException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl". in /var/www/limesurvey/vendor/yiisoft/yii/framework/base/CComponent.php:266 We have worked around this by reverting the Survey URL generation in LimeMailer->getTokenReplacements() to use App()->getController() | ||||
Steps To Reproduce | Steps to reproduce-Install the latest version of sendMailCron https://github.com/SondagesPro/LS-sendMailCron (update config.xml to allow installing on LS 6.x) Expected resultPending mails are sent, for example: [2023-10-20T08:47:28+02:00] [INFO] Start sendMailByCron for 122796 Actual resultCException: ConsoleApplication and its behaviors do not have a method or closure named "createPublicUrl". in /var/www/limesurvey/vendor/yiisoft/yii/framework/base/CComponent.php:266 | ||||
Tags | No tags attached. | ||||
Bug heat | 0 | ||||
Complete LimeSurvey version number (& build) | 6.2.5+230828 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | - | ||||
Database type & version | mysql Ver 8.0.34 | ||||
Server OS (if known) | Ubuntu 22.04.3 | ||||
Webserver software & version (if known) | nginx | ||||
PHP Version | PHP 8.1.2-1 | ||||
duplicate of | 18961 | closed | DenisChenu | {SURVEYURL} didn't work with plugin using cli event |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-10-20 09:30 | fcatalan | New Issue | |
2023-10-20 09:37 | DenisChenu | Relationship added | related to 18961 |
2023-10-25 18:48 | gabrieljenik | Assigned To | => gabrieljenik |
2023-10-25 18:48 | gabrieljenik | Status | new => closed |
2023-10-25 18:48 | gabrieljenik | Resolution | open => duplicate |
2023-10-25 18:48 | gabrieljenik | Relationship replaced | duplicate of 18961 |