pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 265 forks source link

Getting Fatal Error after WP Update #5662

Closed sueboothby closed 4 years ago

sueboothby commented 4 years ago

Issue Overview

Getting Fatal Error when adding new Pods posts

Expected Behavior

I expect the page to render as usual

Current Behavior

I am getting the following error message:

Fatal error: Uncaught Error: Unsupported operand types in /home/subustud/public_html/peterglaughlin.com/wp-content/plugins/pods/classes/fields/number.php:172
Stack trace:
#0 /home/subustud/public_html/peterglaughlin.com/wp-content/plugins/pods/classes/PodsField.php(245): PodsField_Number->is_empty(Array)
#1 /home/subustud/public_html/peterglaughlin.com/wp-content/plugins/pods/classes/PodsForm.php(1510): PodsField->values_are_empty(Array)
#2 /home/subustud/public_html/peterglaughlin.com/wp-content/plugins/pods/components/Templates/includes/functions-view_template.php(131): PodsForm::field_method('number', 'values_are_empt...', Array)
#3 /home/subustud/public_html/peterglaughlin.com/wp-includes/shortcodes.php(343): frontier_if_block(Array, Array, 'pod_if_field')
#4 [internal function]: do_shortcode_tag(Array)
#5 /home/subustud/public_html/peterglaughlin.com/wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(pod_if...', 'do_shortcode_ta...', '\r\n\t\t<div class=...')
#6 /home/subustud/public_html/peterglaughl in /home/subustud/public_html/peterglaughlin.com/wp-content/plugins/pods/classes/fields/number.php on line 172

Steps to Reproduce (for bugs)

https://peterglaughlin.com/sarasota-luxury-homes/8350-carolina-street/

Possible Solution

WordPress Environment

Debug Information

WordPress Version: 5.4

PHP Version: 7.1.33

MySQL Version: 5.6.40

Server Software: Apache

Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:73.0) Gecko/20100101 Firefox/73.0

Session Save Path: /tmp

Session Save Path Exists: Yes

Session Save Path Writeable: Yes

Session Max Lifetime: 1440

Opcode Cache:

    Apc: No
    Memcached: No
    OPcache: Yes
    Redis: No

Object Cache:

    APC: No
    APCu: No
    Memcache: No
    Memcached: Yes
    Redis: No

WPDB Prefix: wpfm_

WP Multisite Mode: No

WP Memory Limit: 40M

Current Memory Usage: 14.177M

Current Memory Usage (real): 16.000M

Pods Network-Wide Activated: No

Pods Install Location: /home/subustud/public_html/peterglaughlin.com/wp-content/plugins/pods/

Pods Tableless Mode Activated: No

Pods Light Mode Activated: No

Currently Active Theme: Divi Child

Currently Active Plugins:

    Bloom: 1.3.10
    Classic Editor: 1.5
    Cube Portfolio: 1.14.2
    Divi Overlays: 2.0.2
    Duplicate Post: 3.2.4
    Elegant Themes Updater: 1.2
    Flexible Posts Widget: 3.5.0
    Free Responsive iframe Video Embeds: 1.0.6
    Gravity Forms: 2.4.17
    Gravity Forms No CAPTCHA reCAPTCHA: 1.0.7
    Hide YouTube Related Videos: 1.4.2
    Image Map Pro: 4.4.5
    Monarch Plugin: 1.4.12
    PDF Embedder Premium: 2.8
    Pods - Custom Content Types and Fields: 2.7.17.1
    Responsive Image Maps: 1.4
    SG Optimizer: 5.4.6
    Showcase IDX: 3.0.46
    WP Mail SMTP: 1.9.0
    Yoast SEO Premium: 9.2.1

Pods Package Export (helpful!)

{"meta":{"version":"2.7.17.1","build":1585851502},"pods":{"347":{"id":347,"name":"sarasota_luxury_home","label":"Sarasota Luxury Homes","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"address":{"id":349,"name":"address","label":"Address","description":"","help":"","class":"","type":"text","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"1","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"mls_number":{"id":359,"name":"mls_number","label":"MLS #","description":"","help":"","class":"","type":"text","weight":1,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"list_price":{"id":350,"name":"list_price","label":"List Price","description":"Format: $9,999,999","help":"","class":"","type":"text","weight":2,"pick_object":"","pick_val":"","sister_id":"","required":"1","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"active":{"id":2240,"name":"active","label":"Active","description":"","help":"","class":"","type":"boolean","weight":3,"pick_object":"","pick_val":"","sister_id":"","required":"0","pick_allow_html":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0"},"under_construction":{"id":49272,"name":"under_construction","label":"Under Construction","description":"","help":"","class":"","type":"boolean","weight":4,"pick_object":"","pick_val":"","sister_id":"","required":"0","unique":"0","pick_allow_html":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"oembed_enabled_providers_collegehumorcom":"0","oembed_enabled_providers_funnyordiecom":"0","oembed_enabled_providers_photobucketcom":"0","oembed_enabled_providers_polldaddycom":"0","pick_post_status":["publish"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2"},"coming_soon":{"id":2202,"name":"coming_soon","label":"Coming Soon","description":"","help":"","class":"","type":"boolean","weight":5,"pick_object":"","pick_val":"","sister_id":"","required":"0","pick_allow_html":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","oembed_enabled_providers_collegehumorcom":"0","oembed_enabled_providers_funnyordiecom":"0","oembed_enabled_providers_photobucketcom":"0","oembed_enabled_providers_polldaddycom":"0","pick_post_status":["publish"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2"},"pending":{"id":2201,"name":"pending","label":"Pending","description":"Check Active + Pending","help":"","class":"","type":"boolean","weight":6,"pick_object":"","pick_val":"","sister_id":"","required":"0","pick_allow_html":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0"},"sold":{"id":2237,"name":"sold","label":"Sold","description":"","help":"","class":"","type":"boolean","weight":7,"pick_object":"","pick_val":"","sister_id":"","required":"0","pick_allow_html":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0"},"new_construction_status":{"id":49276,"name":"new_construction_status","label":"New Construction Status","description":"","help":"","class":"","type":"pick","weight":8,"pick_object":"custom-simple","pick_val":"","sister_id":"","pick_custom":"01-Active\n02-Under Construction\n03-Coming Soon\n04-Sold","required":"0","oembed_enabled_providers_collegehumorcom":"0","oembed_enabled_providers_funnyordiecom":"0","oembed_enabled_providers_photobucketcom":"0","oembed_enabled_providers_polldaddycom":"0","pick_format_type":"single","pick_format_single":"radio","pick_format_multi":"checkbox","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"beds":{"id":351,"name":"beds","label":"Bedrooms","description":"(leave blank for land)","help":"","class":"","type":"text","weight":9,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"baths":{"id":352,"name":"baths","label":"Baths","description":"(leave blank for land)","help":"","class":"","type":"text","weight":10,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"square_feet":{"id":353,"name":"square_feet","label":"Square Feet","description":"Format: 9,999 (leave blank for land)","help":"","class":"","type":"text","weight":11,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"lot_size":{"id":2247,"name":"lot_size","label":"Lot Size","description":"Fill in only for land listings. Format: 9,999 sq. ft. \/ 99 acres","help":"","class":"","type":"text","weight":12,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"features":{"id":354,"name":"features","label":"Features","description":"","help":"","class":"","type":"wysiwyg","weight":13,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","wysiwyg_repeatable":"0","wysiwyg_allowed_html_tags":""},"video_link":{"id":355,"name":"video_link","label":"Video Embed URL","description":"iPlayer: share URL w\/out \/share | YouTube: embed src URL","help":"","class":"","type":"code","weight":14,"pick_object":"","pick_val":"","sister_id":"","required":"0","code_allow_shortcode":"0","code_max_length":"0","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","code_repeatable":"0","oembed_enabled_providers_collegehumorcom":"0","oembed_enabled_providers_funnyordiecom":"0","oembed_enabled_providers_photobucketcom":"0","oembed_enabled_providers_polldaddycom":"0","pick_post_status":["publish"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2"},"matterport_link":{"id":51679,"name":"matterport_link","label":"Matterport Embed URL","description":"Matterport link","help":"","class":"","type":"code","weight":15,"pick_object":"","pick_val":"","sister_id":"","required":"0","unique":"0","code_allow_shortcode":"0","code_max_length":"0","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"code_repeatable":"0","oembed_enabled_providers_collegehumorcom":"0","oembed_enabled_providers_funnyordiecom":"0","oembed_enabled_providers_photobucketcom":"0","oembed_enabled_providers_polldaddycom":"0","pick_post_status":["publish"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2"},"videourl":{"id":1863,"name":"videourl","label":"Video URL","description":"","help":"","class":"","type":"text","weight":16,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"photos":{"id":357,"name":"photos","label":"Photos","description":"All photos, including featured photo.","help":"","class":"","type":"file","weight":17,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","file_format_type":"multi","file_uploader":"attachment","file_attachment_tab":"upload","file_edit_title":"1","file_linked":"0","file_limit":"80","file_restrict_filesize":"10MB","file_type":"images","file_add_button":"Add Image","file_modal_title":"Attach Image","file_modal_add_button":"Add Image","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","file_wp_gallery_output":"0","file_wp_gallery_random_sort":"0","pick_post_status":["publish"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","file_show_edit_link":"0","file_field_template":"rows","oembed_enabled_providers_collegehumorcom":"0","oembed_enabled_providers_funnyordiecom":"0","oembed_enabled_providers_photobucketcom":"0","oembed_enabled_providers_polldaddycom":"0","file_allowed_extensions":""},"features_sheet":{"id":358,"name":"features_sheet","label":"Features Sheet","description":"","help":"","class":"","type":"file","weight":18,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","file_format_type":"single","file_uploader":"attachment","file_attachment_tab":"upload","file_edit_title":"1","file_linked":"0","file_limit":"0","file_restrict_filesize":"10MB","file_type":"other","file_allowed_extensions":"pdf","file_add_button":"Add File","file_modal_title":"Attach a file","file_modal_add_button":"Add File","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","file_show_edit_link":"0","file_field_template":"rows"},"survey":{"id":360,"name":"survey","label":"Survey","description":"","help":"","class":"","type":"file","weight":19,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","file_format_type":"single","file_uploader":"attachment","file_attachment_tab":"upload","file_edit_title":"1","file_linked":"0","file_limit":"0","file_restrict_filesize":"10MB","file_type":"other","file_allowed_extensions":"pdf","file_add_button":"Add File","file_modal_title":"Attach a file","file_modal_add_button":"Add File","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","file_show_edit_link":"0","file_field_template":"rows"},"floorplan":{"id":3214,"name":"floorplan","label":"Floorplan","description":"","help":"","class":"","type":"file","weight":20,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","unique":"0","file_format_type":"single","file_uploader":"attachment","file_attachment_tab":"upload","file_edit_title":"1","file_linked":"0","file_limit":"0","file_restrict_filesize":"10MB","file_type":"other","file_allowed_extensions":"pdf","file_add_button":"Add File","file_modal_title":"Attach a file","file_modal_add_button":"Add File","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"pick_post_status":["publish"],"file_show_edit_link":"0","file_field_template":"rows"},"map":{"id":494,"name":"map","label":"Map","description":"Map Embed Code (custom size: 960x600)","help":"","class":"","type":"text","weight":21,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"1","text_allowed_html_tags":"iframe","text_max_length":"1000","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","pick_post_status":["publish"],"text_placeholder":""},"sale_price":{"id":361,"name":"sale_price","label":"Sale Price","description":"Format: $9,999,999","help":"","class":"","type":"currency","weight":22,"pick_object":"","pick_val":"","sister_id":"","required":"0","currency_format_type":"number","currency_format_sign":"usd","currency_format_placement":"before","currency_format":"i18n","currency_decimals":"2","currency_step":"1","currency_min":"0","currency_max":"1000","currency_max_length":"12","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","currency_repeatable":"0","currency_decimal_handling":"none","currency_placeholder":""},"days_on_market":{"id":362,"name":"days_on_market","label":"Days on Market","description":"Enter only if ≤ 180 days","help":"","class":"","type":"text","weight":23,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","text_repeatable":"0","text_placeholder":""},"list_to_sale_price":{"id":363,"name":"list_to_sale_price","label":"List to Sale Price","description":"Enter only if ≥ 93%","help":"","class":"","type":"number","weight":24,"pick_object":"","pick_val":"","sister_id":"","required":"0","number_format_type":"number","number_format":"i18n","number_decimals":"0","number_step":"1","number_min":"0","number_max":"100","number_max_length":"12","pick_allow_html":"0","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","number_repeatable":"0","number_format_soft":"0","number_placeholder":""},"outstanding":{"id":2398,"name":"outstanding","label":"Outstanding?","description":"Check to show in outstanding results page.","help":"","class":"","type":"boolean","weight":25,"pick_object":"","pick_val":"","sister_id":"","required":"0","pick_allow_html":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0"}},"show_in_menu":"1","label_singular":"Sarasota Luxury Homes","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"sarasota_luxury_home","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"1","supports_excerpt":"1","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"1","built_in_taxonomies_cubeportfolio_category":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","built_in_taxonomies_project_category":"0","built_in_taxonomies_project_tag":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_append_single":"append","pfat_append_archive":"append","pfat_single":"listings","rewrite_custom_slug":"sarasota-luxury-homes","pfat_filter_single":"the_content","pfat_filter_archive":"the_content","pfat_run_outside_loop":"0","rest_enable":"0","rest_base":"sarasota_luxury_home","read_all":"0","write_all":"0","built_in_taxonomies_yst_prominent_words":"0"}},"templates":{"listings_single":{"id":398,"name":"listings_single","code":"<!-- SECTION 0 -->\r\n<div class=\"et_pb_section property-header listings-single et_pb_section_0\">\r\n\r\n<div class=\"et_pb_row et_pb_row_0 et_pb_gutters2\">\r\n<div class=\"et_pb_column et_pb_column_1_2 et_pb_column_1    et_pb_css_mix_blend_mode_passthrough\">\r\n  <div class=\"et_pb_module et_pb_text et_pb_text_0 et_pb_bg_layout_light  et_pb_text_align_left\">\r\n    <div class=\"et_pb_text_inner\">\r\n      <h1 class=\"property-title\">[if active]<a class=\"back-arrow\" href=\"\/sarasota-luxury-homes\/\"><i class=\"fa fa-angle-left\"><\/i><\/a>[\/if][if sold]<a class=\"back-arrow\" href=\"\/sold-luxury-homes\/\"><i class=\"fa fa-angle-left\"><\/i><\/a>[\/if]{@address} | {@list_price}<\/h1>\r\n    <\/div>\r\n  <\/div> <!-- .et_pb_text -->\r\n <\/div>\r\n <!-- .et_pb_column -->\r\n \r\n <div class=\"et_pb_column et_pb_column_1_4 et_pb_column_2    et_pb_css_mix_blend_mode_passthrough\">\r\n  <div class=\"et_pb_button_module_wrapper et_pb_button_0_wrapper et_pb_button_alignment_ et_pb_module property-cta-buttons\">\r\n    <a style=\"width:100%;\" class=\"et_pb_promo_button et_pb_button\" href=\"tel:19413568428\">Call 941.356.8428<\/a>\r\n  <\/div>\r\n<\/div>\r\n<!-- .et_pb_column -->\r\n\r\n[if active]\r\n<div class=\"et_pb_column et_pb_column_1_4 et_pb_column_3    et_pb_css_mix_blend_mode_passthrough\">\r\n  <div class=\"et_pb_button_module_wrapper et_pb_button_1_wrapper et_pb_button_alignment_ et_pb_module property-cta-buttons\">\r\n    <a style=\"width:100%;\" class=\"et_pb_promo_button et_pb_button\" href=\"\/request-showing?Address={@address}\">Request Showing<\/a>\r\n  <\/div>\r\n<\/div>\r\n[\/if]\r\n<!-- .et_pb_column -->\r\n<\/div>\r\n<!-- .et_pb_row -->\r\n\r\n<\/div>\r\n<!-- SECTION 0 -->\r\n\r\n<!-- SECTION 1 -->\r\n<div class=\"et_pb_section et_pb_fullwidth_section et_pb_section_1 et_section_regular\" style=\"clear:both;\">\r\n\r\n  [if video_link]\r\n      <div class=\"video-container listing-video\">\r\n        <iframe width=\"1920\" height=\"1080\" src=\"{@video_link}\" frameborder=\"0\"><\/iframe>\r\n      <\/div> \r\n  \r\n    <!-- .et_pb_row -->\r\n    <div id=\"cta-buttons\" class=\"et_pb_row et_pb_row_0 et_pb_gutters2 property-cta-buttons2\">\r\n\r\n    <!-- .et_pb_column -->\r\n    <div class=\"et_pb_column et_pb_column_1_3 et_pb_column_0    et_pb_css_mix_blend_mode_passthrough\">\r\n      <div class=\"et_pb_button_module_wrapper et_pb_button_0_wrapper et_pb_button_alignment_center et_pb_module \">\r\n        <a class=\"et_pb_button et_pb_button_0 et_pb_bg_layout_light\" style=\"width:100%;\" href=\"tel:19413568428\">941.356.8428<\/a>\r\n      <\/div>\r\n    <\/div>\r\n    <!-- .et_pb_column -->\r\n\r\n    <!-- .et_pb_column -->\r\n    <div class=\"et_pb_column et_pb_column_1_3 et_pb_column_1    et_pb_css_mix_blend_mode_passthrough\">\r\n      <div class=\"et_pb_button_module_wrapper et_pb_button_1_wrapper et_pb_button_alignment_center et_pb_module \">\r\n        <a class=\"et_pb_button et_pb_button_1 et_pb_bg_layout_light\" style=\"width:100%;\" href=\"#request-info-form\">Request Information<\/a>\r\n      <\/div>\r\n    <\/div>\r\n    <!-- .et_pb_column -->\r\n\r\n    <!-- .et_pb_column -->\r\n    <div class=\"et_pb_column et_pb_column_1_3 et_pb_column_2    et_pb_css_mix_blend_mode_passthrough\">\r\n      <div class=\"et_pb_button_module_wrapper et_pb_button_2_wrapper et_pb_button_alignment_center et_pb_module \">\r\n          <a href=\"{@post_thumbnail_url.large}\" class=\"et_pb_button et_pb_button_2 et_pb_bg_layout_light cbp-lightbox\" style=\"width:100%;\">Photo Gallery<\/a>\r\n      <\/div>\r\n    <\/div>\r\n    <!-- .et_pb_column -->\r\n\t\t\t\t\r\n    <\/div>\r\n    <!-- .et_pb_row -->\r\n  [\/if]\r\n\r\n  <div id=\"cbp-photo-slider\" class=\"cbp cbp-l-grid-mosaic\">\r\n\r\n  [if videourl]\r\n\t<div class=\"cbp-item cbp-video\">\r\n\t\t<a href=\"{@videourl}&rel=0\" class=\"cbp-caption cbp-lightbox\">\r\n\t\t\t<div class=\"cbp-caption-defaultWrap\">\r\n\t\t\t\t<img src=\"{@post_thumbnail_url.medium}\" alt=\"\">\r\n\t\t\t<\/div>\r\n\t\t<\/a>\r\n\t<\/div>\r\n  [\/if]\r\n\r\n  [each photos]\r\n\t<div class=\"cbp-item\">\r\n\t\t<a href=\"{@_src.large}\" class=\"cbp-caption cbp-lightbox\">\r\n\t\t\t<div class=\"cbp-caption-defaultWrap\">\r\n\t\t\t\t<img src=\"{@_src.medium}\" data-cbp-src=\"{@_src.medium}\" width=\"640\" height=\"400\">\r\n\t\t\t<\/div>\r\n\t\t\t<div class=\"cbp-caption-activeWrap\">\r\n\t\t\t\t<div class=\"cbp-l-caption-alignCenter\">\r\n\t\t\t\t\t<div class=\"cbp-l-caption-body\">\r\n\t\t\t\t\t\t<div><i class=\"fa fa-plus-circle fa-4x\"><\/i><\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t<\/a>\r\n\t<\/div>\r\n  [\/each]\r\n  <\/div>\r\n\r\n  [if matterport_link]\r\n      <div class=\"video-container\" id=\"matterport\">\r\n        <iframe width=\"1920\" height=\"1080\" src=\"{@matterport_link}&wh=0\" frameborder=\"0\" allowfullscreen allow=\"vr\"><\/iframe>\r\n      <\/div> \r\n  [\/if]\r\n\r\n<\/div>\r\n<!-- SECTION 1 -->\r\n\r\n<!-- SECTION 2 -->\r\n<div class=\"et_pb_section  et_pb_section_2 et_section_regular listing-info\">\r\n\r\n<!-- SECTION 2 ROW 1 -->\r\n<div id=\"listing-info\" class=\" et_pb_row et_pb_row_1\">\r\n\r\n<!-- SECTION 2 ROW 1 COL 1 -->\r\n<div class=\"et_pb_column et_pb_column_2_3  et_pb_column_2\">\r\n\t\r\n<div class=\"et_pb_text et_pb_module et_pb_bg_layout_light et_pb_text_align_left  et_pb_text_2\">\r\n\t<h2>{@post_title}[if awc]<span class=\"listing-status\"> - Active with Contract<\/span>[\/if][if pending]<span class=\"listing-status\"> - Pending<\/span>[\/if][if sold]<span class=\"listing-status\"> - Sold<\/span>[\/if]<\/h2>\r\n\t[if lot_size]<h3>Land: {@lot_size}<\/h3>[\/if]\r\n\t[if beds]<h3>{@beds} Beds | {@baths} Baths | {@square_feet} sq. ft.<\/h3>[\/if]\r\n\t<h4>Luxury Home [if active]for Sale[\/if][if sold]Sold[\/if] in Sarasota, FL | {@mls_number}<\/h4>\r\n\t[if sold]\r\n\t\t<div class=\"sale-price\">Selling Price: {@sale_price}<br\/>\r\n\t\t\tSold\r\n\t\t\t[if days_on_market] in {@days_on_market} days[\/if]\r\n\t\t\t[if list_to_sale_price] at {@list_to_sale_price}%[\/if]\r\n\t\t<\/div>\r\n\t[\/if]\r\n\t{@post_content}<br\/>\r\n\t<strong>{@address}<br\/>\r\n\tSarasota, Florida<\/strong>\r\n<\/div>\r\n\r\n<div id=\"request-info-form\" class=\"et_pb_text et_pb_module et_pb_bg_layout_light et_pb_text_align_left\">\r\n\t<h2>Request Information for <em>{@post_title}<\/em><\/h2>\r\n\t<?php echo do_shortcode('[gravityform id=\"3\" title=\"false\" description=\"false\" ajax=\"true\" field_values=\"address=' . get_the_title() . '\"]'); ?>\r\n<\/div>\r\n\r\n<\/div>\r\n<!-- SECTION 2 ROW 1 COL 1 -->\r\n\r\n<!-- SECTION 2 ROW 1 COL 2 -->\r\n<div class=\"et_pb_column et_pb_column_1_3  et_pb_column_3\">\r\n  <div class=\"et_pb_text et_pb_module et_pb_bg_layout_light et_pb_text_align_left et_pb_text_4\">\r\n\t[if floorplan]<a class=\"et_pb_promo_button et_pb_button property-action-button\" href=\"{@floorplan}\" target=\"_blank\" rel=\"noopener noreferrer\">Download Floorplan<\/a>[\/if]\r\n\t[if features_sheet]<a class=\"et_pb_promo_button et_pb_button property-action-button\" href=\"{@features_sheet}\" target=\"_blank\" rel=\"noopener noreferrer\">Download Feature Sheet<\/a>[\/if]\r\n\t[if survey]<a class=\"et_pb_promo_button et_pb_button property-action-button\" href=\"{@survey}\" target=\"_blank\" rel=\"noopener noreferrer\">Download Survey<\/a>[\/if]\r\n  <\/div>\r\n  [if features]\r\n  <div class=\"et_pb_text et_pb_module et_pb_bg_layout_light et_pb_text_align_left et_pb_text_3 property-features\">\r\n\t<h2>Property Features:<br\/>\r\n\t<em>{@post_title}<\/em><\/h2>\r\n\t{@features}\r\n  <\/div>\r\n  [\/if]\r\n<\/div>\r\n<!-- SECTION 2 ROW 1 COL 2 -->\r\n\r\n<\/div>\r\n<!-- SECTION 2 ROW 1 -->\r\n\r\n<!-- SECTION 2 ROW 2 -->\r\n<div id=\"locator-map\" class=\" et_pb_row et_pb_row_2\">\r\n<div class=\"et_pb_column et_pb_column_4_4  et_pb_column_4\">\r\n\t<h2>Map &amp; Directions for <em>{@post_title}<\/em><\/h2>\r\n\t<div class=\"listing-map\">\r\n\t\t{@map}\r\n\t<\/div>\r\n<\/div>\r\n<\/div>\r\n<!-- SECTION 2 ROW 2 -->\r\n\r\n<\/div>\r\n<!-- SECTION 2 -->\r\n\r\n<!-- INIT CUBEPORTFOLIO PHOTO SLIDER -->\r\n<script type=\"text\/javascript\" src=\"<?php echo get_stylesheet_directory_uri(); ?>\/js\/cubeportfolio\/js\/cpb-photo-slider.js\"><\/script>\r\n\r\n<!-- SCHEMA MARKUP -->\r\n<span itemscope itemtype=\"http:\/\/schema.org\/Product\">\r\n  <meta itemprop=\"name\" content=\"{@address}\">\r\n  <meta itemprop=\"image\" content=\"{@post_thumbnail_url.medium}\">\r\n  <meta itemprop=\"url\" content=\"{@permalink}\">\r\n  <meta itemprop=\"description\" content=\"{@post_excerpt}\">\r\n<\/span>","type":"template","slug":"single-listing","options":{"_edit_last":"1","_edit_lock":"1569442812:1","admin_only":"","restrict_capability":"","capability_allowed":"","post_do_preventscroll":"0","post_enableurltrigger":"0","overlay_automatictrigger_disablemobile":"0","post_do_hideclosebtn":"0","post_do_customizeclosebtn":"0","pod_reference":"a:1:{s:3:\"pod\";s:20:\"sarasota_luxury_home\";}"}}},"pages":{"sarasota-luxury-homes\/*":{"id":401,"name":"sarasota-luxury-homes\/*","code":"","type":"page","slug":"sarasota_luxury_home","options":{"_edit_last":"1","_edit_lock":"1474228634:1","page_title":"{@address}","precode":"","page_template":"listings-single-template.php","pod":"sarasota_luxury_home","pod_slug":"","admin_only":"","restrict_role":"","roles_allowed":"","restrict_capability":"","capability_allowed":"","restrict_redirect":"","restrict_redirect_login":"","restrict_redirect_url":""}}}}

Workaround or Alternate Solution Until Bug is Addressed

Related Issues and/or PRs

sc0ttkclark commented 4 years ago

Have you tried redownloading Pods yet?

sc0ttkclark commented 4 years ago

Nevermind, found the issue.

@JoryHogeveen See our usage of the += here converting the number but it is getting passed an array at some point: https://github.com/pods-framework/pods/blob/master/classes/fields/number.php#L172

sueboothby commented 4 years ago

I just noticed a message in the input page: image

JoryHogeveen commented 4 years ago

@sc0ttkclark I can see why that could cause the error, but why is this field getting a non-scalar value at all?? I cannot replicate this..

sueboothby commented 4 years ago

It happens every time I try to add a new post. It started happening after the latest WP update.

The problem Pod had one field "Sale Price" with the type "Currrency" and one field "List to Sale Price" with the type "Plain Number".

Changed "Sale Price" to "Plain Text" - still got error Changed "List to to Sale Price" to "Plain Text" - no error (both fields set to "Plain Text")

Changed "Sale Price" back to "Currency" - no error (field had value) Changed "List to Sale Price" back to "Plain Number" - no error (field had value / both fields had value)

Removed value from "List to Sale Price" - got error in input form at "List to Sale Price" field and Fatal Error when trying to view post Removed value from "Currency" - got error in input form at "Currency" field and Fatal Error when trying to view post

My current conclusion: if there is no value in a "Number" field, error. If there are values in the "Number" fields, no error.

Therefore, I can get around the error by entering 0 as the value for those fields. I had a conditional testing for an empty field. I will change it to test for zero-value instead.

JoryHogeveen commented 4 years ago

Hi @sueboothby

Check, not sure why, but I can only replicate a warning, not a fatal error. This PR should fix it: #5666 Let me know!

jimtrue commented 4 years ago

@sueboothby You can download the patched version of Pods through https://pods.io/latest/

JoryHogeveen commented 4 years ago

@jimtrue Not yet, this patch isn't merged yet.

Download link of the patch: https://github.com/pods-framework/pods/archive/feature/5662-php-warning-operand-types.zip

sueboothby commented 4 years ago

Let me know when the patch is merged. Thank you for working on this.

JoryHogeveen commented 4 years ago

@sueboothby Could you test the patch and let us know if it also fixes your case? Since I could not reproduce the fatal error I want to make sure it actually fixes your issue.

sc0ttkclark commented 4 years ago

@sueboothby To make it easier, here's the ZIP for the fixed version of Pods you'll want to test with: https://github.com/pods-framework/pods/archive/feature/5662-php-warning-operand-types.zip

sueboothby commented 4 years ago

I installed the patched version of Pods. The issue is resolved. Thank you!!!