Parse error from custom meta boxes after 2.2.1 update

Easy Property Listings WordPress Real Estate Plugin Forums Basic Support Parse error from custom meta boxes after 2.2.1 update

Viewing 2 posts - 1 through 2 (of 2 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #14812
    Billy Waller
    Spectator

    So I have added some custom meta boxes to my funtions.php file and it appeared to be working before the update. I am now recieving this error message.
    Parse error: syntax error, unexpected T_FUNCTION in /home/content/63/8460763/html/itxwp/wp-content/plugins/easy-property-listings/lib/shortcodes/shortcode-listing.php on line 88

    this is the php I have added to my funtions.php:

     function my_add_meta_box_epl_listings_advanced_callback($meta_fields) {
        $custom_field = array(
                'id'        =>   'epl_property_listing_custom_data_id',
                'label'     =>   __('Custom Details', 'epl'), // Box header
                'post_type' =>   array('property', 'rural', 'rental', 'land', 'commercial', 'commercial_land', 'business'), // Which listing types these will be attached to
                'context'   =>   'normal',
                'priority'  =>   'default',
                'groups'    =>   array(
                    array(
                        'id'        =>   'property_custom_data_section_1',
                        'columns'   =>   '2', // One or two columns
                        'label'     =>   'custom property data 1',
                        'fields'    =>   array(
                            array(
                                'name'      =>   'property_custom_data_text',
                                'label'     =>   __('custom property data', 'epl'),
                                'type'      =>   'text',
                                'maxlength' =>   '150',
                                'help'      =>   'Help text',
                            ),
                            array(
                                'name'      =>   'property_ownership_type_radio',
                                'label'     =>   __('Ownership Type', 'epl'),
                                'type'      =>   'radio',
                                'opts'      =>   array(
                                        'option_1'  =>   'Leased',
                                        'option_2'  =>   'Deeded',
                                        'option_3'  =>   'Perpitouity',
                                    ),
                                'help'      =>   'Radio help text',
                            ),
                            array(
                                'name'      =>   'property_point_based_checkbox_single',
                                'label'     =>   __('Point Based', 'epl'),
                                'type'      =>   'checkbox_single',
                                'opts'      =>   array(
                                    'yes'   =>   __('Yes', 'epl'),
                                )
                            ),
    						
    						array(
                                'name'      =>   'property_points_number',
                                'label'     =>   __('Number of Points', 'epl'),
                                'type'      =>   'number',
                                'maxlength' =>   '50'
                            ),
    						
    						array(
                                'name'      =>   'property_week_choice_number',
                                'label'     =>   __('Available Week', 'epl'),
                                'type'      =>   'number',
                                'maxlength' =>   '50'
                            ),
                             
                            array(
                                 'name'      =>   'property_weeks_available_number',
                                'label'     =>   __('Number of Weeks available', 'epl'),
                                'type'      =>   'number',
                                'maxlength' =>   '50'
                                ),
                        )
                    ),
                     
                    array(
                        'id'        =>   'property_custom_data_section_2',
                        'columns'   =>   '2', // One or two columns
                        'label'     =>   'custom property data 2',
                        'fields'    =>   array(
                            array(
                                'name'      =>   'property_sale_type_select',
                                'label'     =>   __('Sale Type', 'epl'),
                                'type'      =>   'select',
                                'opts'      =>   array(
                                        'select_1'  =>   'For Sale',
                                        'select_2'  =>   'For Rent',
                                        'select_3'  =>   'Both',
                                    ),
                            ),
    						
    						array(
    							'name'		=>	'property_custom_maintenance_price_view',
    							'label'		=>	__('Maintenance Price', 'epl'),
    							'type'		=>	'text',
    							'maxlength'	=>	'50'
    						),
    						
    						array(
                                'name'      =>   'property_season_select',
                                'label'     =>   __('Season', 'epl'),
                                'type'      =>   'select',
                                'opts'      =>   array(
                                        'select_1'  =>   'High',
                                        'select_2'  =>   'Medium',
                                        'select_3'  =>   'Low',
                                    ),
                            ),
    						
    						array(
                                'name'      =>   'property_use_type_select',
                                'label'     =>   __('Use Type', 'epl'),
                                'type'      =>   'select',
                                'opts'      =>   array(
                                        'select_1'  =>   'Annual Fixed Week',
                                        'select_2'  =>   'Annual Floating Week',
                                        'select_3'  =>   'Bi-Annual Fixed Week (even yr.)',
                                        'select_4'  =>   'Bi-Annual Fixed Week (odd yr.)',
    									'select_5'  =>   'Bi-Annual Floating Week (even yr.)',
                                        'select_6'  =>   'Bi-Annual Floating Week (odd yr.)',
                                        'select_7'  =>   'Vacation Rental',
                                    ),
                            ),
                             
                            array(
                                'name'      =>   'property_checkin_date',
                                'label'     =>   __('Check in Date', 'epl'),
                                'type'      =>   'date',
                                'maxlength' =>   '100'
                            ),
                             
    						 array(
                                 'name'      =>   'property_experation_year_number',
                                'label'     =>   __('Experation Year', 'epl'),
                                'type'      =>   'number',
                                'maxlength' =>   '50'
                                ),
                        )
                    ),
                    /*array(
                        'id'        =>   'property_custom_data_section_3',
                        'columns'   =>   '1', // One or two columns
                        'label'     =>   '',
                        'fields'    =>   array(
     
                            array(
                                'name'      =>   'property_custom_editor',
                                'label'     =>   __('Custom Editor', 'epl'),
                                'type'      =>   'editor',
                            )
                        )
                    )*/
                )
            );
        $meta_fields[] = $custom_field;
        return $meta_fields;
    }
    add_filter( 'epl_listing_meta_boxes' , 'my_add_meta_box_epl_listings_advanced_callback' );
    #14823
    Merv Barrett
    Keymaster

    This is due to your server PHP is less than 5.3. We had a function written for 5.3 which we have downgraded in the just release Easy Property Listings 2.2.3

    Updating to Easy Property Listings 2.2.3 will resolve the issue. The issue was with the sorter feature which was upgraded to allow for additional sort options to be added through filters and hooks.

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Basic Support’ is closed to new topics and replies.