Title: PHP Errors
Last modified: March 6, 2023

---

# PHP Errors

 *  Resolved [Kevin J](https://wordpress.org/support/users/iamkevinjohnson/)
 * (@iamkevinjohnson)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-errors-285/)
 *     ```wp-block-code
       Any idea why this might show?
   
       PHP Fatal error:  Uncaught TypeError: gmdate(): Argument #2 ($timestamp) must be of type ?int, string given in /home/site/wp-content/plugins/post-expirator/src/Views/expire-column.php:54
   
       AND
   
        PHP Warning:  Undefined array key "terms" in /home/site/wp-content/plugins/plugins/post-expirator/src/Views/classic-metabox.php on line 143
       ```
   
    -  This topic was modified 3 years, 3 months ago by [Kevin J](https://wordpress.org/support/users/iamkevinjohnson/).
    -  This topic was modified 3 years, 3 months ago by [Kevin J](https://wordpress.org/support/users/iamkevinjohnson/).

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

 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-errors-285/#post-16534697)
 * Hi [@iamkevinjohnson](https://wordpress.org/support/users/iamkevinjohnson/)
 * Where does this error show? Is it shown in specific admin page?
 *  Thread Starter [Kevin J](https://wordpress.org/support/users/iamkevinjohnson/)
 * (@iamkevinjohnson)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-errors-285/#post-16536190)
 * These are logged to the error log when attempting to edit a post. -Thanks
    -  This reply was modified 3 years, 3 months ago by [Kevin J](https://wordpress.org/support/users/iamkevinjohnson/).
 *  [buzzboldjeremy](https://wordpress.org/support/users/buzzboldjeremy/)
 * (@buzzboldjeremy)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-errors-285/#post-16537865)
 * Hi [@rizaardiyanto](https://wordpress.org/support/users/rizaardiyanto/),
 * 
   We also were experiencing this, which was causing a critical site error. Here
   is what we found:Line 106 of /post-expirator/src/Modules/Expirator/ExpirationScheduler.
   php is $this->datetime->getWpDate(‘r’, $timestamp), but this is passing a string
   to the function that only accepts a number. We commented out the problem line,
   and this resolved our issue. However, we are concerned we may have re-comment
   out this line each time the plugin updates.
 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-errors-285/#post-16553058)
 * Hi [@iamkevinjohnson](https://wordpress.org/support/users/iamkevinjohnson/) [@buzzboldjeremy](https://wordpress.org/support/users/buzzboldjeremy/)
 * Thanks for the details. We will fix this issue in the next release of PublishPress
   Future. Thanks for your report.

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

The topic ‘PHP Errors’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3118683)
 * [Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories](https://wordpress.org/plugins/post-expirator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-expirator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-expirator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-expirator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-expirator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-expirator/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-errors-285/#post-16553058)
 * Status: resolved