Question: Does this plugin work with LimeSurvey 6.x?
Closed this issue · 3 comments
edgarrmondragon commented
Tried this plugin with version 6.4.0
and Postgres 16 and ran into:
DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
/var/www/html/application/core/plugins/UpdateCheck/UpdateCheck.php(55)
43 $this->subscribe('beforePluginManagerMenuRender');
44 }
45
46 /**
47 * After super admin log in, check date of next update check and set flag.
48 * @return void
49 */
50 public function afterSuccessfulLogin()
51 {
52 if (Permission::model()->hasGlobalPermission('superadmin')) {
53 // NB: $nextCheck will be set to "now" if next_extension_update_check is empty.
54 // Hence it needs to be initialised *before* today.
55 $nextCheck = new DateTime($this->get('next_extension_update_check'));
56 $today = new DateTime("now");
57 if ($nextCheck <= $today) {
58 // Set flag.
59 Yii::app()->session['do_extensions_update_check'] = true;
60 }
61 }
62 }
63
64 /**
65 * If we're in an admin controller and the flag is set, render the JavaScript that
66 * will Ajax the checkAll() URL and push a notification.
67 * @return void
Shnoulle commented
I think it's not related to this plugin application/core/plugins/UpdateCheck/UpdateCheck.php
Did you test remote control without this plugin ?
edgarrmondragon commented
@Shnoulle You're right. This seems to be related to a server setting instead. Sorry for the noise!
Shnoulle commented
Issue to be reported : https://community.limesurvey.org/bug-tracker/