Support » Plugin: OSM - OpenStreetMap » Fatal error line 249 osm.php

  • Resolved Dom Martigne

    (@dom-martigne)


    Hello, help!
    Can not use the plugin on one of my sites in php 7.1.
    Fatal error line 249 of osm.php
    It is a site in development and it is very urgent that it works.
    I use OSM on other sites without apparent problems, but I do not dare to update.

    Do you have a solution? please ?
    And by the way a hello from a landscape of Europe under the storm, beautiful.

    The message sent by wordpress:

    
    ====
    
    Détails de l’erreur
    ======================
    Une erreur de type E_ERROR a été causée dans la ligne 249 du fichier /home/artibydom/sites/acadie.artybi.com/wp-content/plugins/osm/osm.php. Error Message: Uncaught Error: Using $this when not in object context in /home/artibydom/sites/acadie.artybi.com/wp-content/plugins/osm/osm.php:249
    Stack trace:
    #0 /home/artibydom/sites/acadie.artybi.com/wp-content/plugins/osm/osm.php(268): Osm::traceErrorMsg('[OL3_createMark...')
    #1 /home/artibydom/sites/acadie.artybi.com/wp-content/plugins/osm/osm.php(513): Osm::traceText(1, '[OL3_createMark...')
    #2 /home/artibydom/sites/acadie.artybi.com/wp-content/plugins/osm/osm_map_v3/osm-sc-osm_map_v3.php(474): Osm::OL3_createMarkerList('osm_l', 'osm_all', 'Osm_None', 'post', 'Osm_All', 'category')
    #3 /home/artibydom/sites/acadie.artybi.com/wp-content/plugins/osm/osm.php(869): include('/home/artibydom...')
    #4 /home/artibydom/sites/acadie.artybi.com/wp-includes/shortcodes.php(325): Osm->sc_OL3JS(Array, '', 'osm_map_v3')
    #5 [internal function]: do_shortcode_tag(Array)
    #6 /home/artibydom/sites/acadie.artybi.com/wp-includes/shortcodes.php(199): preg_replace_callback('/\\[(\\[?)(osm_ma...', 'do_shortcode_ta...', '\net le texte...')
    #7
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MiKa

    (@photoweblog)

    Hello @dom-martigne

    thanks to @adamfranco it is solved with the last release.

    BTW: Feel free to support us with your rate here:

    https://wordpress.org/support/plugin/osm/reviews/

    Br, Mika

    Yess you are great!
    both.
    Thank you.
    Thank you @adamfranco

    but, but, but another urgent question!
    the plugin does not work with the custom post type to display a map that lists all the articles. nor with the widget. Is there a solution? can not I do? it’s really urgent and I’m not really a developer …
    I have a site that works very well with OSM
    But the one I have to put on line works with cpt.

    • This reply was modified 4 months, 1 week ago by Dom Martigne.
    Plugin Author MiKa

    (@photoweblog)

    Hello @dom-martigne

    Good to hear the fix worked for you.

    Regarding your request: What do you want to do?

    Do have a map with markers of articles is basically splitted in two steps:

    1.) you have to set geotag at the article
    2.) you have to create a map that shows markers with a link to the article

    Do you have custom post types at the articles or custom post type at the map with all markers.

    If you add the widget to your article the geotag of this article is shown. If there is no geotag set, no map is shown.

    Br, MiKa

    PS: Since this topic is solved I will close it and ask you to write about your request in a new one.

    • This reply was modified 4 months, 1 week ago by MiKa.
    • This reply was modified 4 months, 1 week ago by MiKa.
    • This reply was modified 4 months, 1 week ago by MiKa.
    Plugin Author MiKa

    (@photoweblog)

    • This reply was modified 4 months, 1 week ago by MiKa.
    • This reply was modified 4 months, 1 week ago by MiKa.

    Thank you, YES, resolved.
    I ask my other question on a new topic

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.