pods-address-maps icon indicating copy to clipboard operation
pods-address-maps copied to clipboard

php 8 breaks google map and Geocode in backend, WP 6.5.2 php > 7.4, PODs.io V. 3.2.1, pods-address-maps GitHub-Version

Open oligoform opened this issue 2 months ago • 2 comments

The input fields for the address are shown in WP Backend but then a lot of warnings „Undefined variable“: Warning: Undefined variable $form_field_type in /wp-content/plugins/pods-address-field/ui/fields/address.php on lines 12, 34, 39, 44, 49, 54, 63, 73

The Map and of course then, the Address-Lookup isn’t there.

The Errors/Warnings are gone If I define the Variable in /wp-content/plugins/pods-address-field/ui/fields/address.php on line ~ 6 like this:

//fix for php8
if ( empty( $form_field_type ) ) {
	$form_field_type = '';
}
//added before this line:
$attributes             = PodsForm::merge_attributes( $attributes, $name, $form_field_type, $options );

but unfortunately no Map or Lookup.

Do you have a hint where to look for a fix?

  • WP 6.5.2,
  • php > 7.4,
  • PODs.io V. 3.2.1,
  • pods-address-maps new GitHub-Version

oligoform avatar Apr 24 '24 11:04 oligoform