• Resolved Sergey

    (@rubaka)


    Hi, I’ve tested your plugin with https://github.com/PHPCompatibility/PHPCompatibility and found such error, could you please review and responce?

    FILE: \wp-content\plugins\newsletter\emails\tnp-composer\blocks\content-02-heading.block.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: \wp-content\plugins\newsletter\emails\tnp-composer\blocks\content-03-text.block.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: \wp-content\plugins\newsletter\emails\tnp-composer\blocks\content-05-image.block.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: \wp-content\plugins\newsletter\emails\tnp-composer\blocks\_\content-01-hero.block.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: \wp-content\plugins\newsletter\users\statistics-countries.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.
    ———————————————————————————————————————————————————————————-

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Errors are reporting “No PHP code was found in this file”, but a php file is not required to contain php code, at the end.

    That is not an error.

    Stefano.

    I get some warnings too:

    Warning: is_file(): open_basedir restriction in effect. File(/usr/home/mydomain.com/web/wp-content/plugins/newsletter/emails/themes/composer.gif/theme.php) is not within the allowed path(s): (/usr/home/mydomain.com/:/home/mydomain.com/:/usr/home/services/:/usr/share/php70/) in /usr/home/mydomain.com/web/wp-content/plugins/newsletter/includes/themes.php on line 114

    Is it normal?

    Plugin Author Stefano Lissa

    (@satollo)

    Thank you, fix will be available on next release.
    Stefano.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘php 7.2 compatibility’ is closed to new replies.