Title: Missing information from API
Last modified: August 28, 2020

---

# Missing information from API

 *  Resolved [sl1n](https://wordpress.org/support/users/sl1n/)
 * (@sl1n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/)
 * Our developer keeps saying:
 * > I’m not getting enough information from the API
 * He says that he does not get any API response for the map (with correct Google
   Maps API key) and OpenStreetMap) and information like “Stellplätze – Key Of Field:
   MultiParkingLot” among others.
 * Is that a problem you’re aware of or is he doing something wrong?

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

 *  Thread Starter [sl1n](https://wordpress.org/support/users/sl1n/)
 * (@sl1n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13333793)
 * Other values that are not shown are “Energieffizienzklasse” (energyClass) and
   we get this error for “Küche” (kueche)
 * > Fatal error: Uncaught TypeError: Argument 1 passed to onOffice\WPlugin\Fieldnames::
   > getFieldLabel() must be of the type string, array given, called in /homepages/
   > 30/d834969130/htdocs/clickandbuilds/Freiraum4ImmobilienundFinanzierung/wp-content/
   > plugins/onoffice-for-wp-websites/plugin/EstateList.php on line 407 and defined
   > in /homepages/30/d834969130/htdocs/clickandbuilds/Freiraum4ImmobilienundFinanzierung/
   > wp-content/plugins/onoffice-for-wp-websites/plugin/Fieldnames.php:179 Stack
   > trace: #0 /homepages/30/d834969130/htdocs/clickandbuilds/Freiraum4ImmobilienundFinanzierung/
   > wp-content/plugins/onoffice-for-wp-websites/plugin/EstateList.php(407): onOffice\
   > WPlugin\Fieldnames->getFieldLabel(Array, ‘estate’) #1 /homepages/30/d834969130/
   > htdocs/clickandbuilds/Freiraum4ImmobilienundFinanzierung/wp-content/plugins/
   > onoffice-for-wp-websites/templates.dist/estate/Freiraum4_Detailed_View.php(
   > 143): onOffice\WPlugin\EstateList->getFieldLabel(Array) #2 /homepages/30/d834969130/
   > htdocs/clickandbuilds/Freiraum4ImmobilienundFinanzierung/wp-content in /homepages/
   > 30/d834969130/htdocs/clickandbuilds/Freiraum4ImmobilienundFinanzierung/wp-content/
   > plugins/onoffice-for-wp-websites/plugin/Fieldnames.php on line 179
 * Please let us know what the problem is.
 *  Plugin Author [Jakob](https://wordpress.org/support/users/jayay/)
 * (@jayay)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13345955)
 * Hi!
    I’m going to try to answer each question individually in this comment.
 * > He says that he does not get any API response for the map (with correct Google
   > Maps API key) and OpenStreetMap)
 * Did you have a look at the default templates that ship with the plugin and the
   way the map is included into those? If you’re including the map using a relative
   path, please make sure a copy of the map exists in your individual templates 
   directory as well.
 * > […] information like “Stellplätze – Key Of Field: MultiParkingLot” among others.
 * Requesting information on parking lots is not supported by the API for now, sorry!
 * > Other values that are not shown are “Energieffizienzklasse” and we get this
   > error for “Küche” (kueche)
 * Are the two of them active in onOffice? For “kueche”, it seems like there is 
   an error in the template. I would suggest to analyse usages of ->getFieldLabel()
   inside the templates and observe the argument of the called function.
 * More technical information on the plugin can be found on [wpplugindoc.onoffice.de](https://wpplugindoc.onoffice.de/),
   questions regarding details of the API can be sent to [apisupport@onoffice.de](https://wordpress.org/support/topic/missing-information-from-api/apisupport@onoffice.de?output_format=md)
   or using our [support form](https://apidoc.onoffice.de/support-form/).
 * Have a splendid evening,
 * Jakob
 *  Thread Starter [sl1n](https://wordpress.org/support/users/sl1n/)
 * (@sl1n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13347876)
 * Thanks for your response.
 * > Requesting information on parking lots is not supported by the API for now,
   > sorry!
 * Okay, when will this be added? ..maybe you could note that in the plugin settings
   for all values that the API does not support yet (because they show in the plugin…
   that would have avoided a lot of confusion we had).
 * > Did you have a look at the default templates that ship with the plugin and 
   > the way the map is included into those? If you’re including the map using a
   > relative path, please make sure a copy of the map exists in your individual
   > templates directory as well.
 * The problem is that the map doesn’t even show in the default templates. I just
   downloaded the default view again to see if we mistakenly changed something in
   there, but it’s still the same. It only shows white space above the filters.
 * [http://s834969128.online.de/immobilien-test-23-aug/](http://s834969128.online.de/immobilien-test-23-aug/)
 * We also have a small problem with the status, everything is shown correctly in
   German (Neu, Reserviert, Top Angegobt), but for Verkauft the API shows “Sold”.
 * Thanks a lot.
    -  This reply was modified 5 years, 8 months ago by [sl1n](https://wordpress.org/support/users/sl1n/).
 *  Plugin Author [Jakob](https://wordpress.org/support/users/jayay/)
 * (@jayay)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13376812)
 * Good afternoon,
 * > Okay, when will this be added? ..maybe you could note that in the plugin settings
   > for all values that the API does not support yet (because they show in the 
   > plugin…that would have avoided a lot of confusion we had).
 * This was written down and we’re looking for a solution.
 * > The problem is that the map doesn’t even show in the default templates. I just
   > downloaded the default view again to see if we mistakenly changed something
   > in there, but it’s still the same. It only shows white space above the filters.
 * The map does only show up if at least one estate that would show up in the current
   list view has 1) coordinates different than 0.0 for both longitude and latitude
   and 2) the checkbox “Google Maps” in onOffice > “Marketing” / “Vermarktung” tab
   was checked, and no matter if Google Maps or Open Street Maps are being used.
 * The coordinates get saved once a correct address was typed into the real estate
   within onOffice. I hope that helps.
 * Kind regards,
    Jakob
 *  Thread Starter [sl1n](https://wordpress.org/support/users/sl1n/)
 * (@sl1n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13386865)
 * >  The map does only show up if at least one estate that would show up in the
   > current list view has 1) coordinates different than 0.0 for both longitude 
   > and latitude and 2) the checkbox “Google Maps” in onOffice > “Marketing” / “
   > Vermarktung” tab was checked, and no matter if Google Maps or Open Street Maps
   > are being used.
   > The coordinates get saved once a correct address was typed into the real estate
   > within onOffice. I hope that helps.
 * We have currently more than 20 estates with the correct address and checkbox “
   Google Maps” in onOffice > “Marketing” / “Vermarktung” tab – and yet, the map
   does not show up.
 * What else could be the problem? Could I give access to someone to take a look?
 *  Plugin Author [Jakob](https://wordpress.org/support/users/jayay/)
 * (@jayay)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13387282)
 * Hi,
 * have you tried setting [WP_DEBUG](https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug)
   to true and checking for PHP error messages?
 * If that doesn’t help, you can apply for support using [our WordPress support form](https://wpplugindoc.onoffice.de/support-de/).
   Unfortunately, it is only available in German for now, but I figured the translation
   within the Chrome browser is pretty accurate.
 * Kind regards,
    Jakob
 *  Thread Starter [sl1n](https://wordpress.org/support/users/sl1n/)
 * (@sl1n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13388087)
 * This is the API response for the longitude and latitude:
 * [breitengrad] => 0
    [laengengrad] => 0
 * But the address (from what I can tell) is done correctly in onOffice (Grunddaten–
   Geografische Daten (and it says that the location is valid).
 * Any ideas?
 *  Plugin Author [Jakob](https://wordpress.org/support/users/jayay/)
 * (@jayay)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13388621)
 * Re-saving the estate will re-generate the coordinates if they’re empty. Does 
   that work?
 *  Thread Starter [sl1n](https://wordpress.org/support/users/sl1n/)
 * (@sl1n)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13390606)
 * Unfortunately, it doesn’t.
    -  This reply was modified 5 years, 8 months ago by [sl1n](https://wordpress.org/support/users/sl1n/).
 *  Plugin Author [Jakob](https://wordpress.org/support/users/jayay/)
 * (@jayay)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13431592)
 * Hi,
 * has you problem been solved?
 * If not, I would ask you to use our support form, so that someone can look into
   it.
 * Have a great day!

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

The topic ‘Missing information from API’ is closed to new replies.

 * ![](https://ps.w.org/onoffice-for-wp-websites/assets/icon-256x256.png?rev=3132461)
 * [onOffice for WP-Websites](https://wordpress.org/plugins/onoffice-for-wp-websites/)
 * [Support Threads](https://wordpress.org/support/plugin/onoffice-for-wp-websites/)
 * [Active Topics](https://wordpress.org/support/plugin/onoffice-for-wp-websites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/onoffice-for-wp-websites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/onoffice-for-wp-websites/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Jakob](https://wordpress.org/support/users/jayay/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/missing-information-from-api/#post-13431592)
 * Status: resolved