PHP 7 Compatibility Warnings
-
Hi, we’re preparing to update to PHP 7, and I’m running preliminary checks of our code using the PHP Compatibility Checker plugin. It sounds as though you’ve already tested on versions of PHP 7, so this is possibly info you already have. If not: NextGen Gallery is throwing 25 warnings when tested with PHP 7.2. A lot of them look like they may be false positives. The details are below:
FILE: [path redacted]/wp-content/plugins/nextgen-gallery/freemius/includes/fs-essential-functions.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
165 | WARNING | Function name “__fs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_settings_manager.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
203 | WARNING | Method name “C_Photocrati_Settings_Manager_Base::__toArray” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/templates/display_tab_source.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/plugins/nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/templates/display_tab_type.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/templates/preview_tab.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/templates/tinymce_placeholder.php
———————————————————————–
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
2 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- ref %>” data-shortcode=…
3 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- nextgen_gallery %></h3>
4 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- edit %>” class=”nggPlac…
7 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- remove %>” class=”nggPl…
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/templates/not_authorized.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php
———————————————————————–
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
———————————————————————–
1195 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
3845 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1996 | WARNING | Method name “C_Displayed_Gallery_Source_Manager::__sort_by_name” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/container/after.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/container/before.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/image/after.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/list/after.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/list/before.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/manage-sort.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
18 | 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: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/overview.php
———————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————–
28 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
———————————————————————–FILE: [path redacted]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/nggallery.php
———————————————————————–
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
———————————————————————–
200 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
202 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
203 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
205 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
———————————————————————–
The topic ‘PHP 7 Compatibility Warnings’ is closed to new replies.