Conversation
supportHi – I’m getting this error when I attempt to activate on my test system: Plugin could not be activated because it triggered a fatal error. Fatal error: Can’t use function return value in write context in /home/…/public_html/wp-content/plugins/wp-caldav2ics/Caldav2ics_Plugin.php on line 16 Any troubleshooting tips, or additional config information you’d like to see?
hm, strange, never had this issue here, and nobody else reported this… but wait, I found something related to this error here . I’ll have a closer look at this during the next days and then be back here. This reply was modified 7 years, 4 months ago by hoernerfranz .
ok, first try 🙂 – could you please replace the original function in Caldav2ics_Plugin.php with the following code: protected function CheckMandatoryOptions(array $Options) { if (false == wp_http_validate_url($Options['CalendarURL'])) { return "Invalid Calendar URL:".$Options['CalendarURL']; } $Username = trim($Options['Username']); if (empty($Username)) { return "Invalid Username: ".$Options['Username']; } $Pwd = trim($Options['Password']); if (empty($Pwd)) { return "Invalid Password: ".$Options['Password']; } return ''; } and then try again ? (or, alternatively, use the complete latest Version from here ) This reply was modified 7 years, 4 months ago by hoernerfranz . This reply was modified 7 years, 4 months ago by hoernerfranz .
closing as resolved now for the following reasons: 1. issue is not reproducible, and nobody else reported it 2. the OP is obviously not cooperative / not willing to follow proposals nor trying the latest version
hm, strange, never had this issue here, and nobody else reported this… but wait, I found something related to this error here . I’ll have a closer look at this during the next days and then be back here. This reply was modified 7 years, 4 months ago by hoernerfranz .
ok, first try 🙂 – could you please replace the original function in Caldav2ics_Plugin.php with the following code: protected function CheckMandatoryOptions(array $Options) { if (false == wp_http_validate_url($Options['CalendarURL'])) { return "Invalid Calendar URL:".$Options['CalendarURL']; } $Username = trim($Options['Username']); if (empty($Username)) { return "Invalid Username: ".$Options['Username']; } $Pwd = trim($Options['Password']); if (empty($Pwd)) { return "Invalid Password: ".$Options['Password']; } return ''; } and then try again ? (or, alternatively, use the complete latest Version from here ) This reply was modified 7 years, 4 months ago by hoernerfranz . This reply was modified 7 years, 4 months ago by hoernerfranz .
closing as resolved now for the following reasons: 1. issue is not reproducible, and nobody else reported it 2. the OP is obviously not cooperative / not willing to follow proposals nor trying the latest version