Title: php error
Last modified: August 1, 2023

---

# php error

 *  [johannschnagl](https://wordpress.org/support/users/johannschnagl/)
 * (@johannschnagl)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-error-601/)
 * On June 18th I reported the regular php error:
 * WordPress database error Incorrect TIMESTAMP value: ‘1687072582’ for query DELETE
   FROM xxxxxxxxx_oauth_access_tokens WHERE expires <= ‘1687072582’  made by do_action_ref_array(‘
   wpo_global_cleanup’), WP_Hook->do_action, WP_Hook->apply_filters, wpo_global_cleanup_functionality
 * to [support@wp-oauth.com](https://wordpress.org/support/topic/php-error-601/support@wp-oauth.com?output_format=md).
 * On June 18th I was asked by support to send some more info which I did immediately.
   Since then I sent 4 emails asking the status of the topic as I’d like to go productive
   soon.
 * Not a single answer.
 * I’m deeply disappointed.
    -  This topic was modified 2 years, 10 months ago by [johannschnagl](https://wordpress.org/support/users/johannschnagl/).

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

 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-601/#post-16947922)
 * Hi,
 * Sorry about the issues. Can you provide your PHP version and WordPress version?
   We are not seeing this error but if we can replicate the environment I can run
   some tests and check and see.
 *  Thread Starter [johannschnagl](https://wordpress.org/support/users/johannschnagl/)
 * (@johannschnagl)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-601/#post-16947996)
 * It would have been nice, if you told me.
 * I’m running wordpress 6.2.2 on
 * PHP 8.0-latest FPM (8.0.26) (P+)
 * MySQL 8.0 – SSD Ah
 * and I have a multisite with subdomains, but I’m only using the plugin on the 
   main site
 * The error occurs every hour.
 * I have the error for access tokens and for authorization_codes
 * You might consider changing:
 * $expired_auth_codes = $wpdb->query( “DELETE FROM {$wpdb->prefix}oauth_authorization_codes
   WHERE expires <= ‘$current_time’ ” );
 * to
   $expired_auth_codes = $wpdb->query( “DELETE FROM {$wpdb->prefix}oauth_authorization_codes
   WHERE expires <= FROM_UNIXTIME(‘$current_time’) ” );
 * in your cron.php line 31 and analog in line 35.
    -  This reply was modified 2 years, 9 months ago by [johannschnagl](https://wordpress.org/support/users/johannschnagl/).
 *  Thread Starter [johannschnagl](https://wordpress.org/support/users/johannschnagl/)
 * (@johannschnagl)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-601/#post-16948437)
 * By the way, you have to configure logging to a file to see these errors. As the
   error occurs within a cronjob there is no screen to display it.
 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-601/#post-16948780)
 * Thanks for the info. I will dive a bit deeper into it.

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

The topic ‘php error’ is closed to new replies.

 * ![](https://ps.w.org/oauth2-provider/assets/icon-256x256.gif?rev=2603051)
 * [WP OAuth Server (OAuth Authentication)](https://wordpress.org/plugins/oauth2-provider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oauth2-provider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oauth2-provider/)
 * [Active Topics](https://wordpress.org/support/plugin/oauth2-provider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oauth2-provider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oauth2-provider/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-error-601/#post-16948780)
 * Status: not resolved