View Issue Details

This bug affects 2 person(s).
 10
IDProjectCategoryView StatusLast Update
14214Bug reportsComfortUpdatepublic2021-07-16 12:09
Reportermfreund Assigned ToLouisGac 
PrioritynoneSeverityblock 
Status closedResolutionunable to reproduce 
Product Version3.13.x 
Summary14214: Error when trying to update ComfortUpdate key
Description

I am currently running Version 3.14.11+180926, and just purchased a new ComfortUpdate key.

When I went into my Limesurvey admin, I selected Configuration from the top nav menu, then ComfortUpdate, then Manage Your Key.

This is the error I received:

PHP notice
Undefined property: stdClass::$validuntil

/home/lunafr2/public_html/survey/application/views/admin/update/manage/manage_key.php(41)

29 </thead>
30
31 <tbody>
32 <tr>
33 <td>
34 <?php if(!App()->getConfig('hide_update_key')):?>
35 <?php echo $updateKey; ?>
36 <?php else:?>
37 <em>XXXXXXXXXXX</em>
38 <?php endif;?>
39 </td>
40 <td>
41 <?php echo convertToGlobalSettingFormat($updateKeyInfos->validuntil); ?>
42 </td>
43 <td>
44 <?php echo $updateKeyInfos->remaining_updates; ?>
45 </td>
46 <td>
47 <a data-href="<?php echo App()->createUrl('/admin/update/sa/delete_key');?>" class="btn btn-default" data-toggle="modal" data-target="#confirmation-modal" data-tooltip="true" title="<?php eT("Delete");?>" >
48 <span class="text-danger fa fa-trash"></span>
49 </a>
50 </td>
51 </tr>
52 </tbody>
53 </table>
Stack Trace
#0

  • /home/lunafr2/public_html/survey/framework/web/CBaseController.php(126): require("/home/lunafr2/public_html/survey/application/views/admin/update/...")
    #1
  • /home/lunafr2/public_html/survey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/lunafr2/public_html/survey/application/views/admin/update/...", array("serverAnswer" => stdClass, "fullpagebar" => array("closebutton" => array("url" => "admin/update")), "updateKey" => "V5143M0J302", "updateKeyInfos" => stdClass), true)
    #2
  • /home/lunafr2/public_html/survey/framework/web/CController.php(872): CBaseController->renderFile("/home/lunafr2/public_html/survey/application/views/admin/update/...", array("serverAnswer" => stdClass, "fullpagebar" => array("closebutton" => array("url" => "admin/update")), "updateKey" => "V5143M0J302", "updateKeyInfos" => stdClass), true)
    #3
    – /home/lunafr2/public_html/survey/application/core/Survey_Common_Action.php(267): CController->renderPartial("/admin/update/manage//manage_key", array("serverAnswer" => stdClass, "fullpagebar" => array("closebutton" => array("url" => "admin/update")), "updateKey" => "V5143M0J302", "updateKeyInfos" => stdClass), true)
    262 // Load views
    263 $content = "";
    264 foreach ($aViewUrls as $sViewKey => $viewUrl) {
    265 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) {
    266 if (is_numeric($sViewKey)) {
    267 $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true);
    268 } elseif (is_array($viewUrl)) {
    269 foreach ($viewUrl as $aSubData) {
    270 $aSubData = array_merge($aData, $aSubData);
    271 $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true);
    272 }
    #4
    – /home/lunafr2/public_html/survey/application/core/Survey_Common_Action.php(338): Survey_Common_Action->renderCentralContents("update/manage/", "manage_key", array("serverAnswer" => stdClass, "fullpagebar" => array("closebutton" => array("url" => "admin/update")), "updateKey" => "V5143M0J302", "updateKeyInfos" => stdClass))
    333 }
    334 } else {
    335 $renderFile = $basePath.'/'.$sRenderFile;
    336 }
    337
    338 $content = $this->renderCentralContents($sAction, $aViewUrls, $aData);
    339 $out = $this->renderInternal($renderFile, ['content' => $content, 'aData' => $aData], true);
    340
    341 App()->getClientScript()->render($out);
    342 echo $out;
    343 }
    #5
    – /home/lunafr2/public_html/survey/application/controllers/admin/update.php(107): Survey_Common_Action->_renderWrappedTemplate("update/manage/", "manage_key", array("serverAnswer" => stdClass, "fullpagebar" => array("closebutton" => array("url" => "admin/update")), "updateKey" => "V5143M0J302", "updateKeyInfos" => stdClass))
    102 if (!$updateKey) {
    103 $aData['fullpagebar']['saveandclosebutton']['form'] = true;
    104 $this->_renderWrappedTemplate('update/manage/', 'subscribe', $aData);
    105 } else {
    106 $aData['updateKeyInfos'] = $updateModel->checkUpdateKeyonServer($updateKey);
    107 $this->_renderWrappedTemplate('update/manage/', 'manage_key', $aData);
    108 }
    109 }
    110 }
    111
    112 public function manage_submitkey()
    #6
    unknown(0): update->managekey()
    #7
  • /home/lunafr2/public_html/survey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(update, array())
    #8
  • /home/lunafr2/public_html/survey/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(update, ReflectionMethod, array("sa" => "managekey"))
    #9
  • /home/lunafr2/public_html/survey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "managekey"))
    #10
  • /home/lunafr2/public_html/survey/framework/web/CController.php(286): CController->runAction(update)
    #11
  • /home/lunafr2/public_html/survey/framework/web/CController.php(265): CController->runActionWithFilters(update, array())
    #12
  • /home/lunafr2/public_html/survey/application/controllers/AdminController.php(158): CController->run("update")
    #13
  • /home/lunafr2/public_html/survey/framework/web/CWebApplication.php(282): AdminController->run("update")
    #14
  • /home/lunafr2/public_html/survey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/update/sa/managekey")
    #15
  • /home/lunafr2/public_html/survey/framework/base/CApplication.php(185): CWebApplication->processRequest()
    #16
  • /home/lunafr2/public_html/survey/index.php(194): CApplication->run()
    2018-11-05 15:05:04 Apache Yii Framework/1.1.19
Additional Information

I also tried to click on "Use ComfortUpdate" and then "Enter a New Key" and got the following message:

you have an error, or a notice, inside your local installation of limesurvey. See :
PHP Error [400]
The CSRF token could not be verified. (/home/lunafr2/public_html/survey/framework/web/CHttpRequest.php:1362)

#0 /home/lunafr2/public_html/survey/framework/base/CErrorHandler.php(131): CErrorHandler->handleException()
#1 /home/lunafr2/public_html/survey/framework/base/CApplication.php(750): CErrorHandler->handle()
#2 unknown(0): LSYii_Application->handleException()

TagsNo tags attached.
Attached Files
Bug heat10
Complete LimeSurvey version number (& build)Version 3.14.11+180926
I will donate to the project if issue is resolvedYes
BrowserChrome Version 70.0.3538.77 (Official Build) (64-bit)
Database type & versionmysqlnd 5.0.11-dev - 20120503
Server OS (if known)Apache
Webserver software & version (if known)Apache Version 2.4.33
PHP Version 5.6.38

Users monitoring this issue

There are no users monitoring this issue.

Activities

LimeBot

LimeBot

2019-07-11 15:32

administrator   ~52842

This bug cannot be reproduce. It's probaly fixed in the superior Version of LS

alorenc

alorenc

2021-07-16 12:09

reporter   ~65469

Hi, I'm using version 3.25.19 and I'm having the same bug.
Works in a test environment (local Windows IIS, MSSQL v15, PHP 7.4).
Before, I used a code that was free (monthly). Now I wanted to update the project to the new code purchased (on an account set up specifically for the client).

I go to the place where the object "$updateKeyInfos" is created, that is "\application\controllers\admin\update.php" method "managekey()", dumps the object "$updateModel" below screen, as you can see the method is called twice. The first time the object is normal after the second is empty (here it returns a reference error to the parameter "validuntil" because the object "$updateKeyInfos" contains the same).

There is a problem somewhere, unfortunately I do not have time for a more detailed analysis. I deleted the old comfortUpdate code from the database, the "settubgs_global" table, the "update_key" key and that temporarily solved my problem.

Issue History

Date Modified Username Field Change
2018-11-05 16:15 mfreund New Issue
2018-11-05 16:15 mfreund Status new => assigned
2018-11-05 16:15 mfreund Assigned To => LouisGac
2018-11-05 16:15 mfreund File Added: Screenshot 2018-11-05 10.05.15.png
2018-11-05 16:15 mfreund File Added: Screenshot 2018-11-05 10.07.38.png
2019-07-11 15:32 LimeBot Status assigned => closed
2019-07-11 15:32 LimeBot Resolution open => unable to reproduce
2019-07-11 15:32 LimeBot Note Added: 52842
2021-07-16 12:09 alorenc Note Added: 65469
2021-07-16 12:09 alorenc File Added: comfortUpdate_obj_updateModel.png
2022-04-26 16:30 cbm.it Bug heat 4 => 10