• Resolved sl1n

    (@sl1n)


    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

    (@sl1n)

    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

    (@jayay)

    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, questions regarding details of the API can be sent to [email protected] or using our support form.

    Have a splendid evening,

    Jakob

    Thread Starter sl1n

    (@sl1n)

    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.

    https://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 4 years, 6 months ago by sl1n.
    Plugin Author Jakob

    (@jayay)

    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

    (@sl1n)

    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

    (@jayay)

    Hi,

    have you tried setting 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. 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

    (@sl1n)

    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

    (@jayay)

    Re-saving the estate will re-generate the coordinates if they’re empty. Does that work?

    Thread Starter sl1n

    (@sl1n)

    Unfortunately, it doesn’t.

    • This reply was modified 4 years, 6 months ago by sl1n.
    Plugin Author Jakob

    (@jayay)

    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.