Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter groar

    (@groar)

    Apper this error:

    offset: 0 in /var/www/vhosts/website.com/httpdocs/wp-content/plugins/google-calendar-events/includes/admin/meta-boxes.php on line 48

    and code, where an error occurs:

    public function __construct() {
    
    		$settings = get_option( 'simple-calendar_settings_calendars' );
    
    /************ Here is line 48 **************************/
    if ( isset( $settings['general']['attach_calendars_posts'] ) ) {
    /*********************************/
    			$this->post_types = $settings['general']['attach_calendars_posts'];
    		}
    
    		// Load meta boxes to save settings.
    		new Metabox\Settings();
    		new Metabox\Attach_Calendar();
    		new Metabox\Newsletter();
    		do_action( 'simcal_load_meta_boxes' );
    
    		// Add meta boxes.
    		add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 30 );
    
    		// Process meta boxes.
    		add_action( 'simcal_save_settings_meta','\SimpleCalendar\Admin\Metaboxes\Settings::save', 10, 2 );
    		add_action( 'simcal_save_attach_calendar_meta','\SimpleCalendar\Admin\Metaboxes\Attach_Calendar::save', 10, 2 );
    
    		// Save meta boxes data.
    		add_action( 'save_post', array( $this, 'save_meta_boxes' ), 1, 2 );
    
    		// Uncomment this for debugging $_POST while saving a meta box.
    		// add_action( 'save_post', function() { echo '<pre>'; print_r( $_POST ); echo '</pre>'; die(); } );
    	}
    Thread Starter groar

    (@groar)

    No, it’s the same thing.

    Thread Starter groar

    (@groar)

    Appear this error:

    Notice: Uninitialized string offset: 0 in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/google-calendar-events/includes/assets.php on line 82 Notice: Uninitialized string offset: 0 in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/google-calendar-events/includes/assets.php on line 86 Notice: Uninitialized string offset: 0 in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/google-calendar-events/includes/assets.php on line 90 Notice: Uninitialized string offset: 0 in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/google-calendar-events/includes/post-types.php on line 255 Notice: Uninitialized string offset: 0 in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/google-calendar-events/includes/post-types.php on line 255

Viewing 3 replies - 1 through 3 (of 3 total)