Title: PHP 7+ Compatibility Errors
Last modified: March 29, 2019

---

# PHP 7+ Compatibility Errors

 *  [daneloctober](https://wordpress.org/support/users/daneloctober/)
 * (@daneloctober)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-compatibility-errors-5/)
 * 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](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-compatibility-errors-5/#post-11369623)
 * 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 7 years, 2 months ago by [Janis Elsts](https://wordpress.org/support/users/whiteshadow/).

Viewing 1 replies (of 1 total)

The topic ‘PHP 7+ Compatibility Errors’ is closed to new replies.

 * ![](https://ps.w.org/admin-menu-editor/assets/icon-128x128.png?rev=1418604)
 * [Admin Menu Editor](https://wordpress.org/plugins/admin-menu-editor/)
 * [Support Threads](https://wordpress.org/support/plugin/admin-menu-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-menu-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-menu-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-menu-editor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-compatibility-errors-5/#post-11369623)
 * Status: not resolved