• That’s what we got after checking our site with php7cc before upgrading PHP5 to PHP7 on a server.

    File: .../plugins/oauth2-provider/library/OAuth2/Storage/Wordpressdb.php
    > Line 214: Function argument(s) returned by "func_get_args" might have been modified
        func_get_args();
    
    File: .../plugins/oauth2-provider/library/OAuth2/Storage/Pdo.php
    > Line 184: Function argument(s) returned by "func_get_args" might have been modified
        func_get_args();
    
    File: .../plugins/oauth2-provider/library/class-wo-table.php
    > Line 85: Removed function "mysql_real_escape_string" called
        mysql_real_escape_string($_GET['orderby']);
    > Line 86: Removed function "mysql_real_escape_string" called
        mysql_real_escape_string($_GET['order']);
    > Line 94: Removed function "mysql_real_escape_string" called
        mysql_real_escape_string($_GET['paged']);

    Do you have plans to fix that and when will it be done?

    https://wordpress.org/plugins/oauth2-provider/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Justin Greer

    (@justingreerbbi)

    The next version will contain mysql_real_escape_string updates. Sorry for the late reply.

    Thread Starter Slava Abakumov

    (@slaffik)

    Glad to hear that.
    Is there any ETA when it will be released?

    Plugin Author Justin Greer

    (@justingreerbbi)

    The trunk is updated already but I am thinking in the next week or two for the official update.

    Mohd Rihan

    (@classicalrehan)

    The issue is still exist, I have upgraded my wp version with 4.8 and check the compatibility with PHP7 and found this issue in lots of files. some of them are below mention.

    can you please check.

    File: /apps/CareerSite/careersite/wp-admin/includes/class-pclzip.php
    > Line 292: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 475: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 732: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 889: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 1031: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 5345: Removed function “set_magic_quotes_runtime” called
    set_magic_quotes_runtime(0);
    > Line 5376: Removed function “set_magic_quotes_runtime” called
    set_magic_quotes_runtime($this->magic_quotes_status);

    File: /apps/CareerSite/careersite/wp-admin/includes/class-wp-ajax-upgrader-skin.php
    > Line 94: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 110: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 129: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-admin/includes/dashboard.php
    > Line 996: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-admin/includes/class-wp-upgrader-skin.php
    > Line 149: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-admin/includes/class-bulk-upgrader-skin.php
    > Line 58: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-admin/includes/media.php
    > Line 534: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-admin/includes/class-automatic-upgrader-skin.php
    > Line 76: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-includes/plugin.php
    > Line 184: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 198: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 231: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 432: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 451: Function argument(s) returned by “func_get_arg” might have been modified
    func_get_arg($a);
    > Line 502: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    File: /apps/CareerSite/careersite/wp-includes/widgets.php
    > Line 358: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 499: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 538: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 580: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-includes/deprecated.php
    > Line 1789: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 1802: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 2065: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 2120: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 2177: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-includes/capabilities.php
    > Line 544: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 571: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 601: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();
    > Line 623: Function argument(s) returned by “func_get_args” might have been modified
    func_get_args();

    File: /apps/CareerSite/careersite/wp-includes/rest-api/class-wp-rest-server.php
    > Line 737: Nested by-reference foreach loop, make sure there is no iteration over the same array
    foreach ($handlers as $key => &$handler) {
    }
    > Line 1304: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;
    > Line 1310: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;
    > Line 1311: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;
    > Line 1314: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;

    File: /apps/CareerSite/careersite/xmlrpc.php
    > Line 21: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;
    > Line 22: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;
    > Line 26: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;
    > Line 27: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;
    > Line 27: Removed “HTTP_RAW_POST_DATA” variable used
    $HTTP_RAW_POST_DATA;

    Plugin Author Justin Greer

    (@justingreerbbi)

    Hi and thanks for sharing. I am 100% sure that our plugin is PHP7 compatible. Judging by the files that you shared, I am thinking that your server is not setup properly or has some extremely high level reporting.

    Are you by any chance using a Windows OS for your server. Either way, check with your hosting provider. WP 4.8 is PHP7 compatible so for all these errors in the core, there is something wrong with the hosting environment.

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