• Hello.
    Thank you for your plugin development.

    While using the PHP Compatibility Checker plugin from the WordPress repository, it generated the following two errors when tested against PHP 7:

    FILE: /plugins/pc-robotstxt/pc-robotstxt.php
    ———————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————–
    35 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    ———————————————————————————–

    FILE: /plugins/pc-robotstxt/admin.php
    —————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————-
    4 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7
    —————————————————————————-

    Sure you know of this, but for others…whilst researching topic…
    PHP Remove Constructors page.

    Curt

    • This topic was modified 8 years, 2 months ago by Curtis.
Viewing 1 replies (of 1 total)
  • All what is needed to fixit

    file:admin.php line:4 replace with:
    function __construct() {

    file:pc_robotstxt.php line:35 replace with:
    function __construct() {

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7 compatibility’ is closed to new replies.