Title: is_numeric warning in plugin API
Last modified: September 9, 2021

---

# is_numeric warning in plugin API

 *  Resolved [Parsa](https://wordpress.org/support/users/parselearn/)
 * (@parselearn)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/is_numeric-error-for-plugin-api/)
 * 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](https://github.com/WP-API/WP-API/issues/1520#issuecomment-150992204)
    -  This topic was modified 4 years, 9 months ago by [Parsa](https://wordpress.org/support/users/parselearn/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/is_numeric-error-for-plugin-api/#post-14854747)
 * [@parselearn](https://wordpress.org/support/users/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](https://wordpress.org/support/users/parselearn/)
 * (@parselearn)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/is_numeric-error-for-plugin-api/#post-14854815)
 * Base on referrer on warning when saving/update post in Gutenberg editor
    referrer:“
   [https://****.com/wp-admin/post.php?post=1424906&action=edit&#8221](https://****.com/wp-admin/post.php?post=1424906&action=edit&#8221);
 * WordPress 5.8.1
    PHP 7.4.16
 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/is_numeric-error-for-plugin-api/#post-14858825)
 * [@parselearn](https://wordpress.org/support/users/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](https://wordpress.org/support/users/parselearn/)
 * (@parselearn)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/is_numeric-error-for-plugin-api/#post-14861254)
 * Also, my permalink structure is:
    `/%year%/%monthnum%/%day%/%postname%`
 *  Plugin Author [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * (@sasiddiqui)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/is_numeric-error-for-plugin-api/#post-14882012)
 * [@parselearn](https://wordpress.org/support/users/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)

The topic ‘is_numeric warning in plugin API’ is closed to new replies.

 * ![](https://ps.w.org/custom-permalinks/assets/icon.svg?rev=1785367)
 * [Custom Permalinks](https://wordpress.org/plugins/custom-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-permalinks/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 5 replies
 * 2 participants
 * Last reply from: [Sami Ahmed Siddiqui](https://wordpress.org/support/users/sasiddiqui/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/is_numeric-error-for-plugin-api/#post-14882012)
 * Status: resolved