• Resolved rahlvers

    (@rahlvers)


    Hi –

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author hoernerfranz

    (@hoernerfranz)

    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 5 years, 10 months ago by hoernerfranz.
    Plugin Author hoernerfranz

    (@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 5 years, 10 months ago by hoernerfranz.
    • This reply was modified 5 years, 10 months ago by hoernerfranz.
    Plugin Author hoernerfranz

    (@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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue: Can’t Activate’ is closed to new replies.