Title: Plugin Error with PHP 7.4
Last modified: June 11, 2020

---

# Plugin Error with PHP 7.4

 *  Resolved [javismo](https://wordpress.org/support/users/javismo/)
 * (@javismo)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/plugin-error-with-php-7-4/)
 * I have a website with this plugin installed. The public site works fine but the
   admin area fails randomly with a 500 server error.
 * If I active the debug mode, only shows errors for this plugin:
 * Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a?
   b : c) ? d : e` or `a ? b : (c ? d : e)` in /…/wp-content/plugins/leaflet-map/
   shortcodes/class.map-shortcode.php on line 131
 * Warning: Cannot modify header information – headers already sent by (output started
   at /…/wp-content/plugins/leaflet-map/shortcodes/class.map-shortcode.php:131) 
   in /…/wp-includes/functions.php on line 6221
 * Warning: Cannot modify header information – headers already sent by (output started
   at /…/html/wp-content/plugins/leaflet-map/shortcodes/class.map-shortcode.php:
   131) in /…/html/wp-admin/includes/misc.php on line 1282
 * Warning: Cannot modify header information – headers already sent by (output started
   at /…/html/wp-content/plugins/leaflet-map/shortcodes/class.map-shortcode.php:
   131) in /…/html/wp-admin/includes/template.php on line 1962
 * Wordpress is updated to the last version.
    Is the PHP version (7.4) the reason
   for this error? Can this error cause a 500 server error? Does this error have
   a solution in this version?
    -  This topic was modified 5 years, 12 months ago by [javismo](https://wordpress.org/support/users/javismo/).
    -  This topic was modified 5 years, 12 months ago by [javismo](https://wordpress.org/support/users/javismo/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-error-with-php-7-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/plugin-error-with-php-7-4/#post-12971547)
 * Looks like an issue with the PHP version. I can look at fixing the deprecated
   issue. I’m wondering if there’s some other php setting to squelch warnings you
   could use too.
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/plugin-error-with-php-7-4/#post-12971560)
 * Added an issue here: [https://github.com/bozdoz/wp-plugin-leaflet-map/issues/107](https://github.com/bozdoz/wp-plugin-leaflet-map/issues/107)
 *  Thread Starter [javismo](https://wordpress.org/support/users/javismo/)
 * (@javismo)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/plugin-error-with-php-7-4/#post-12971734)
 * Ok, the error is only with PHP 7.4, in PHP 7.3 works fine. I remember to change
   the version but, for some reason, I guess cache, keeps showing the error.
 * Thanks!
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/plugin-error-with-php-7-4/#post-12985341)
 * Should be fixed in newest version; tested myself

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

The topic ‘Plugin Error with PHP 7.4’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-map/assets/icon-256x256.png?rev=1693083)
 * [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-map/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/plugin-error-with-php-7-4/#post-12985341)
 * Status: resolved