Title: PHP Warning: mktime() expects parameter 5 , array_key_exists()
Last modified: May 17, 2022

---

# PHP Warning: mktime() expects parameter 5 , array_key_exists()

 *  Resolved [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/)
 * If you activate the addition, an error message appears:
 * PHP Warning: mktime() expects parameter 5 to be int, string given in /home/******/
   public_html/wp-content/plugins/jetpack/modules/seo-tools/class-jetpack-seo.php
   on line 206
 * PHP Warning: array_key_exists(): The first argument should be either a string
   or an integer in /home/******/public_html/wp-includes/rest-api/endpoints/class-
   wp-rest-posts-controller.php on line 2512
 * Please Help?
    -  This topic was modified 4 years ago by [al3ilm](https://wordpress.org/support/users/al3ilm/).
    -  This topic was modified 4 years ago by [al3ilm](https://wordpress.org/support/users/al3ilm/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-mktime-expects-parameter-5-array_key_exists%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/#post-15657211)
 * I found the reason for the first message:
    The addition has not been installed
   correctly after its latest update (for multiple sites). The solution: 1- Disable
   it from all sites. 2- Delete the addition. 3- Delete the site’s cache. 4- Installing
   the addition. 5- Activating it in network management only.
 * As for the second message, it is the result of something else other than the 
   addition.
 *  Thread Starter [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/#post-15657635)
 * The problem of the second message was solved as follows:
 * 1- Installation of the adding “Missed Scheduled Posts Publisher by WPBEGINNER”
   in the following link:
    [https://wordpress.org/plugins/missed-scheduled-posts-publisher/](https://wordpress.org/plugins/missed-scheduled-posts-publisher/)
 * 2- Plugins Activation.
 * Source :
    [https://www.wpbeginner.com/plugins/how-to-fix-the-missed-schedule-post-error-in-wordpress/](https://www.wpbeginner.com/plugins/how-to-fix-the-missed-schedule-post-error-in-wordpress/)
    -  This reply was modified 4 years ago by [al3ilm](https://wordpress.org/support/users/al3ilm/).
 *  Thread Starter [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/#post-15664667)
 * Sorry, the error returned again, perhaps he needs more work:
 * PHP Warning: mktime() expects parameter 5 to be int, string given in /home/******/
   public_html/wp-content/plugins/jetpack/modules/seo-tools/class-jetpack-seo.php
   on line 206
    -  This reply was modified 4 years ago by [al3ilm](https://wordpress.org/support/users/al3ilm/).
 *  Thread Starter [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/#post-15682661)
 * PHP Warning: mktime() expects parameter 5 to be int, string given in ….. /wp-
   content/plugins/jetpack/modules/seo-tools/class-jetpack-seo.php on line 206
 * error line:
 *  mktime( 0, 0, 0, get_query_var( ‘monthnum’ ), get_query_var( ‘day’ ), get_query_var(‘
   year’ ) )
 * Fix the error to:
 *  mktime( 0, 0, 0, get_query_var( ‘monthnum’ ), intval( get_query_var( ‘day’ )),
   get_query_var( ‘year’ ) )
 *  Thread Starter [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/#post-15682686)
 * PHP Warning: array_key_exists(): The first argument should be either a string
   or an integer in ….. /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.
   php on line 2512
 * error line:
 *  if ( array_key_exists( $base, $schema[‘properties’] ) ) {
 * Fix the error to:
 *  if ( array_key_exists( intval( $base ), $schema[‘properties’] ) ) {
 *  Thread Starter [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/#post-15682805)
 * Resolved

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

The topic ‘PHP Warning: mktime() expects parameter 5 , array_key_exists()’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-hijri_fbfbfb.svg)
 * [WP-Hijri](https://wordpress.org/plugins/wp-hijri/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hijri/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hijri/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hijri/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hijri/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 6 replies
 * 1 participant
 * Last reply from: [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/#post-15682805)
 * Status: resolved