Title: PHP7.2 Compatibility Problems
Last modified: January 16, 2018

---

# PHP7.2 Compatibility Problems

 *  [ispreview](https://wordpress.org/support/users/ispreview/)
 * (@ispreview)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php7-2-compatibility-problems/)
 * One for WPGReady and the other developers if they’re still around. There are 
   a few problems that people will face if they use the plugin with PHP7.2 installed.
   Most of these issues are deprecated features and so the errors could in theory
   just be hidden, but it’s always better to make sure they’re fixed.
 * From the latest PHP Compatibility plugin.
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/admin/class-ngg-
   album-manager.php
    ——————————————————————————————————————————————————————————————–
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ——————————————————————————————————————————————————————————————–
   101 | WARNING | The “result” parameter for function parse_str() is missing. Passing
   this parameter is no longer optional. The optional nature of the parameter is
   deprecated since PHP 7.2 ——————————————————————————————————————————————————————————————–
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/admin/functions.
   php
    ————————————————————————————————————— FOUND 0 ERRORS AND 1 WARNING AFFECTING
   1 LINE ————————————————————————————————————— 1245 | WARNING | INI directive ‘
   safe_mode_gid’ is deprecated since PHP 5.3 and removed since PHP 5.4 —————————————————————————————————————
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/lib/imagemagick.
   inc.php
    ——————————————————————————————————————- FOUND 0 ERRORS AND 1 WARNING
   AFFECTING 1 LINE ——————————————————————————————————————- 103 | WARNING | Use 
   of deprecated PHP4 style class constructor is not supported since PHP 7. ——————————————————————————————————————-
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/lib/meta.php
   ———————————————————————————————————–
   FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES ———————————————————————————————————–
   99 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead 185 | WARNING | Function create_function() is deprecated
   since PHP 7.2; Use an anonymous function instead 260 | WARNING | Function create_function()
   is deprecated since PHP 7.2; Use an anonymous function instead 402 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead ———————————————————————————————————–
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/lib/ngg-db.php
   ————————————————————————————————————
   FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES ————————————————————————————————————
   910 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead 970 | WARNING | Function create_function() is deprecated
   since PHP 7.2; Use an anonymous function instead 1018 | WARNING | Function create_function()
   is deprecated since PHP 7.2; Use an anonymous function instead ————————————————————————————————————
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/lib/swfobject.
   php
    ————————————————————————————————————- FOUND 0 ERRORS AND 1 WARNING AFFECTING
   1 LINE ————————————————————————————————————- 85 | WARNING | Use of deprecated
   PHP4 style class constructor is not supported since PHP 7. ————————————————————————————————————-
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/widgets/class-
   ngg-gallery-widget.php
    ——————————————————————————————————————————– FOUND 0 ERRORS
   AND 1 WARNING AFFECTING 1 LINE ——————————————————————————————————————————– 252
   | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous
   function instead ——————————————————————————————————————————–
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/widgets/class-
   ngg-media-rss-widget.php
    ———————————————————————————————————————————- FOUND 
   0 ERRORS AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————————————————-
   133 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead ———————————————————————————————————————————-
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/widgets/class-
   ngg-slideshow-widget.php
    ———————————————————————————————————————————- FOUND 
   0 ERRORS AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————————————————-
   175 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead ———————————————————————————————————————————-
 * FILE: /../wp-content/plugins/nextcellent-gallery-nextgen-legacy/nggallery.php
   ———————————————————————————————————–
   FOUND 0 ERRORS AND 12 WARNINGS AFFECTING 12 LINES ———————————————————————————————————–
   147 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an
   anonymous function instead 177 | WARNING | Function create_function() is deprecated
   since PHP 7.2; Use an anonymous function instead 228 | WARNING | Function create_function()
   is deprecated since PHP 7.2; Use an anonymous function instead 262 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead 328 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3
   and removed since PHP 5.4 330 | WARNING | INI directive ‘safe_mode’ is deprecated
   since PHP 5.3 and removed since PHP 5.4 331 | WARNING | INI directive ‘safe_mode’
   is deprecated since PHP 5.3 and removed since PHP 5.4 333 | WARNING | INI directive‘
   safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4 710 | WARNING
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead 734 | WARNING | Function create_function() is deprecated since PHP 7.2;
   Use an anonymous function instead 738 | WARNING | Function create_function() 
   is deprecated since PHP 7.2; Use an anonymous function instead 803 | WARNING 
   | Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead ———————————————————————————————————–

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

 *  Anonymous User 9105421
 * (@anonymized-9105421)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php7-2-compatibility-problems/#post-9871741)
 * Thanks for pointing this out.
 *  [codifex](https://wordpress.org/support/users/codifex/)
 * (@codifex)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php7-2-compatibility-problems/#post-9906698)
 * /wp-admin/admin.php?page=nextcellent-gallery-nextgen-legacy shows the following
   warning when using the plugin witz PHP 7.2:
 * `Warning: Use of undefined constant BLOGUPLOADDIR - assumed 'BLOGUPLOADDIR' (
   this will throw an Error in a future version of PHP) in [...]/wp-content/plugins/
   nextcellent-gallery-nextgen-legacy/admin/class-ngg-overview.php on line 84`
 * The warning is shown next to the “Add new pictures” button.
 * I believe that all the compatibility warnings can be fixed by minimal changes
   to the code. A fixed version of the plugin would be highly appreciated!
    -  This reply was modified 8 years, 4 months ago by [codifex](https://wordpress.org/support/users/codifex/).

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

The topic ‘PHP7.2 Compatibility Problems’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextcellent-gallery-nextgen-legacy_9c9087.
   svg)
 * [NextCellent Gallery - NextGEN Legacy](https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/)
 * [Active Topics](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextcellent-gallery-nextgen-legacy/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [PHP 7.2](https://wordpress.org/support/topic-tag/php-7-2/)

 * 2 replies
 * 3 participants
 * Last reply from: [codifex](https://wordpress.org/support/users/codifex/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/php7-2-compatibility-problems/#post-9906698)
 * Status: not resolved