Title: PHP 8
Last modified: May 12, 2022

---

# PHP 8

 *  Resolved [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * (@simoncox)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-50/)
 * Hi,
 * I am aware you have stopped supporting the free version except for occasional
   security patches etc but the issue is that with PHP8 the free version now causes
   a error and the page the map is on crashes entirely. Here is the error:
 *     ```
       /wp-content/plugins/leaflet-maps-marker/inc/showmap.php on line 483
   
       This is the line:
   
                                       $mlm_count_temp{$mlmrowcount} = $wpdb->get_var('SELECT count(*) FROM <code>'.$table_name_layers.'</code> as l INNER JOIN <code>'.$table_name_markers.'</code> AS m ON l.id=m.layer WHERE l.id='.intval($mlmrowcount));
       ```
   
 * Its probably a small change that needs to be done to be compatible with php8 
   but without it every single website running the free version will crash. Would
   it be possible to release an update to the free version to fix the issue as appose
   to trying to manually fix it? Thanks

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

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-50/#post-15640687)
 * Hi Simon,
 * thanks for the notice about the PHP8 incompatbility. As you stated correctly,
   we stopped supporting “Leaflet Maps Marker” more than 2 years ago and we are 
   since focusing on our pro version “Maps Marker Pro” which is actively developed
   and maintained. See [https://www.mapsmarker.com/changelog/pro](https://www.mapsmarker.com/changelog/pro)
   for full development log.
 * The fix for the issue reported is pretty easy – just replace
    `$mlm_count_temp{
   $mlmrowcount}` with `$mlm_count_temp[$mlmrowcount]` in /inc/shopmap.php and the
   fatal error on frontend will be gone.
 * I also hotfixed the current release, so that new installs and updates from older
   version from today on will not experience this issue. If you already have the
   latest version, you can also download the current plugin package and replace 
   the file `/wp-content/plugins/leaflet-maps-marker/inc/showmap.php` on your server.
 * Just be aware, that the plugin is not fully functional (anymore) due progress
   in browsers and libraries used. Our recommendation is still to use the integrated
   upgrader to migrate your data from the (retired) free version to our pro version(
   which still works). If you are unsure if Maps Marker Pro is an upgrade worth 
   for you, you can try it for free for 30 days – if you use the coupon code
 * > LMM-RETIREMENT
 *  on checkout, you will get 10% off any license package.
    best regards & happy
   mapping!
 * Robert
    -  This reply was modified 3 years, 10 months ago by [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/).
 *  Thread Starter [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * (@simoncox)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-50/#post-15648157)
 * Hi Robert,
 * Thats great, thanks for you help and quick response, much appreciated. I will
   look into the Pro version.
 * Simon

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

The topic ‘PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Simon Cox](https://wordpress.org/support/users/simoncox/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-50/#post-15648157)
 * Status: resolved