Title: PHP Warning: mktime() expects parameter class-jetpack-seo.php
Last modified: May 15, 2022

---

# PHP Warning: mktime() expects parameter class-jetpack-seo.php

 *  Resolved [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-class-jetpack-seo-php/)
 * I receive this error:
 * [15-May-2022 08:19:30 UTC] 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
 * please help?
 * 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-class-jetpack-seo-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [deathlynotes](https://wordpress.org/support/users/deathlynotes/)
 * (@deathlynotes)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-class-jetpack-seo-php/#post-15650202)
 * Hi [@al3ilm](https://wordpress.org/support/users/al3ilm/)
 * The best way to find out if something is interfering is to test for a theme or
   plugin conflict. You can do that by following these steps:
 * **Temporarily deactivate all plugins except Jetpack, and [clear your browser’s
   cache]([https://wordpress.com/support/browser-issues/#browser-cache](https://wordpress.com/support/browser-issues/#browser-cache)).**
 * – Then, check if the error occurs again. If not, then you know another plugin
   is conflicting here. You can reactivate plugins one by one, checking if the error
   occurs after each one to discover which plugin is causing the problem.
 * You can leave that plugin deactivated and/or contact whoever makes that plugin
   for help resolving the issue it’s causing.
 * If deactivating plugins doesn’t help, it may be your theme.
 * **Temporarily activate a default WordPress theme like [Twenty Twenty-One]([https://wordpress.org/themes/twentytwentyone/](https://wordpress.org/themes/twentytwentyone/)).**
 * – Then, check if the error occurs again. If not, then you know it’s a problem
   with the theme.
 * You can contact whoever makes the theme for help resolving the issue it’s causing.
 * Let me know if you have any questions.
 * My best regards,
 *  Thread Starter [al3ilm](https://wordpress.org/support/users/al3ilm/)
 * (@al3ilm)
 * [4 years ago](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-class-jetpack-seo-php/#post-15652495)
 * Thanks The reason was: Wp-hijri
    [https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/](https://wordpress.org/support/topic/php-warning-mktime-expects-parameter-5-array_key_exists/)
    -  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-class-jetpack-seo-php/#post-15682660)
 * 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’ ) )

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

The topic ‘PHP Warning: mktime() expects parameter class-jetpack-seo.php’ is closed
to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 3 replies
 * 2 participants
 * 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-class-jetpack-seo-php/#post-15682660)
 * Status: resolved