Support » Plugin: WP Mapbox GL JS Maps » PHP notices on class-wp-mapbox-gl-js-public.php

  • I’m getting this:

    Notice: Undefined property: stdClass::$mapCategories in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 135
    
    Notice: Undefined index: mapOrigin in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 136
    
    Notice: Undefined property: stdClass::$preFillDirections in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 136
    
    Notice: Trying to get property 'origin' of non-object in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 136
    
    Notice: Undefined index: mapDestination in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 137
    
    Notice: Undefined property: stdClass::$preFillDirections in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 137
    
    Notice: Trying to get property 'destination' of non-object in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 137
    
    Notice: Undefined property: stdClass::$mapLayersFilter in /home/siloporp/novo.silopor.pt/wp-content/plugins/wp-mapbox-gl-js/public/class-wp-mapbox-gl-js-public.php on line 138

    https://snipboard.io/B8ZAWU.jpg

    WordPress + OceanWP theme + Elementor + your plugin: all updated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tempranova

    (@tempranova)

    Hello, is this happening with WP DEBUG turned on? We can make some time to look at removing excess classes. Is this accompanied with any errors on the website itself? If you can give a link to the live site that would be appreciated. Thanks!

    WP_DEBUG on, yes.

    No errors on the website or map, just the PHP notices.

    I can’t provide a link to the live website because we’ve turned WP_DEBUG off when moving to production 🙂

    Plugin Author tempranova

    (@tempranova)

    OK. Thanks! I will note those PHP errors for future versions, but if they are hidden with WP DEBUG off I will forget about them for right now:) Thanks Marco!!

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