• Since it appears the Time.ly has abandoned support of this WordPress plugin, I’m posting 2 fixes here that will help others. There are two files that cause many error log entries. This is for the AI1EC plugin version 2.6.8.

    Error Log has entries similar to:
    All-in-One Event Calendar: Undefined index: TZID @ /home/SITENAME/public_html/wdpr/wp-content/plugins/all-in-one-event-calendar/lib/iCal/iCalcreator-2.26.9/src/IcalXML.php:318 #8

    Solution: I have stopped the error log generation by making the following changes to lines 318 and 718 in the file IcalXML.php

    Line 318 change from:
    @is_null( $content[Util::$LCparams][Util::$TZID] )) {

    Line 318 change to:
    (isset($TZID) && @is_null( $content[Util::$LCparams][Util::$TZID] )) ) { // added isset to stop errorlog

    Line 718 change from:
    ( Util::$MINUS != $content[0] ) &&

    Line 718 change to:
    (isset($content[0]) && ( Util::$MINUS != $content[0] )) && // added isset to stop errorlog
    ——————————————————————————–
    Error Log has entries similar to:
    [16-Apr-2021 21:00:46 UTC] Created calendar: Created calendar. Please reload this page to try again. If this error persists, please contact us at [email protected]. In your report please include the information below.<br/>API URL: https://api.time.ly/api/calendars.<br/>Detail: 401 – Unauthorized. – raw error: Array

    Solution: I have stopped the error log generation by making the following changes to lines 576 and 596 in the file \plugins\all-in-one-event-calendar\app\model\api\api-abstract.php

    Search for around line 576:

        protected function save_error_notification( $response, $custom_error_response ) {
            $error_message = $this->_transform_error_message(

    and replace with:

        protected function save_error_notification( $response, $custom_error_response ) {
    		return; // crew manager add to stop error log
            $error_message = $this->_transform_error_message(

    Search for around line 596:

    
        protected function log_error( $response, $custom_error_response ) {
            $error_message = $this->_transform_error_message(

    and replace with:

        protected function log_error( $response, $custom_error_response ) {
    		return; // crew manager add to stop error log
            $error_message = $this->_transform_error_message(
  • The topic ‘Solution for Stopping AI1EC Creating Error Log Entries’ is closed to new replies.