Support » Plugin: Admin Menu Editor » PHP 7+ Compatibility Errors

  • daneloctober

    (@daneloctober)


    Hi!

    We’re readying our site to upgrade to PHP 7+, but we get the following warnings:

    Name: Admin Menu Editor

    FILE: /home/s3/html/wp-content/plugins/admin-menu-editor/includes/cap-suggestion-box.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: /home/s3/html/wp-content/plugins/admin-menu-editor/includes/test-access-screen.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: /home/s3/html/wp-content/plugins/admin-menu-editor/modules/actor-selector/actor-selector-template.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.
    ———————————————————————————————————————————————————————————-

    Are these going to affect the plugin functionality? Will these be addressed soon? We have the latest plugin version. Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    These warnings can be safely ignored because they are false positives. The reported files don’t actually use short open tags, so they shouldn’t cause any problems with PHP 7. Also, I’ve tested the plugin up to PHP 7.2 and I haven’t found any PHP compatibility issues.

    The files are templates that the plugin uses to display parts of its settings page. They don’t contain any PHP code right now, but they might need it in the future.

    To get rid of the warnings it would be necessary to change the extension of these files from .php to something else. Currently, I don’t think fixing a false positive in another tool is important enough to justify making that change.

    • This reply was modified 10 months ago by Janis Elsts.
Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7+ Compatibility Errors’ is closed to new replies.