• Resolved yoanr

    (@yoanroux)


    I just installed Webba Booking Lite and everything works fine BUT I get the following error message when I create a Service:

    Warning: Undefined property: stdClass::$gg_calendars in /home/clients/.../wp-content/plugins/webba-booking-lite/common/class_wbk_service_deprecated.php on line 437

    When I look at this class_wbk_service_deprecated.php file on my server, I see the following definition (and corresponding lines).

    38 	// gg calendars
    39 	protected $gg_calendars;

    
    305     // set users
    306	public function setGgCalendars( $value ) {
    307		if ( $value == '' ){
    308			$this->gg_calendars = '';
    309			return true;
    310		}
    311		$this->gg_calendars = $value;
    312		return true;
    313	}
    314	// get users
    315	public function getGgCalendars() {
    316		return $this->gg_calendars;
    317	}

    437		if( !$this->setGgCalendars( $result->gg_calendars ) ){
    438			//return false;
    439		}


    477 'gg_calendars' => $this->getGgCalendars(),

    540 'gg_calendars' => $this->getGgCalendars(),

    Any idea why I get this message? (it disappears when I remove all Services created).

    • This topic was modified 3 years, 6 months ago by yoanr.
    • This topic was modified 3 years, 6 months ago by yoanr.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Webba Appointment Booking

    (@webba-agency)

    Hi,

    Thank you for reporting about this issue.

    The fast fix is completely remove the following code from the file class_wbk_service_deprecated.php.

    if( !$this->setGgCalendars( $result->gg_calendars ) ){
        //return false;
    }

    Lines: 437-439.

    This fix will be also included in the next release.

    Thread Starter yoanr

    (@yoanroux)

    Thank you very much for your help. It is fixed indeed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP error message after Service Creation’ is closed to new replies.