Support » Plugin: Custom Permalinks » is_numeric warning in plugin API

  • Resolved Parsa

    (@parselearn)


    Hello
    I have this warning:

    "PHP message: PHP Warning: is_numeric() expects exactly 1 parameter, 3 given in /****/wp-includes/rest-api/class-wp-rest-request.php on line 910" while reading response header from upstream, client: **.**.**.**, server: ****.com, request: "GET /wp-json/custom-permalinks/v1/get-permalink/1424906 HTTP/2.0", upstream: "fastcgi://**.**.**.**:****", host: "****.com", referrer: "https://****.com/wp-admin/post.php?post=1424906&action=edit"
    2021/09/09 14:52:44 [error] 3525426#3525426: *115520639 FastCGI sent in stderr: "PHP message: PHP Warning:  is_numeric() expects exactly 1 parameter, 3 given in /****/wp-includes/rest-api/class-wp-rest-request.php on line 910" while reading response header from upstream, client: **.**.**.**, server: ****.com, request: "GET /wp-json/custom-permalinks/v1/get-permalink/1424906 HTTP/2.0", upstream: "fastcgi://**.**.**.**:****", host: "****.com", referrer: "https://****.com/wp-admin/post.php?post=1424906&action=edit"

    I searching for this warning and found this issue:
    https://github.com/WP-API/WP-API/issues/1520#issuecomment-150992204

    • This topic was modified 1 month ago by Parsa.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @parselearn Can you please provide me the scenario to generate this warning?

    Also, please let me know WordPress and PHP version of your website.

    Thanks & Regards,
    Sami

    Thread Starter Parsa

    (@parselearn)

    Base on referrer on warning when saving/update post in Gutenberg editor
    referrer: “https://****.com/wp-admin/post.php?post=1424906&action=edit”

    WordPress 5.8.1
    PHP 7.4.16

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @parselearn Thank you for sharing the referrer. I have tested this with Gutenberg editor but doesn’t get any warning. I am testing this on WordPress 5.8.1.

    I need to check the PHP version of the testing server, It might be using PHP 7.3 if that’s the case I will upgrade the PHP version and test it again.

    Thanks & Regards,
    Sami

    Thread Starter Parsa

    (@parselearn)

    Also, my permalink structure is:
    /%year%/%monthnum%/%day%/%postname%

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @parselearn Thank you for reporting this issue and your patience. I have found the issue in v2.2.0 and fixed it.

    Fix would be released in the upcoming version.

    Thanks,
    Sami

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.